Omit ramdisk from boot.img if building without ramdisk

Change-Id: I1940e3fd5f05dec555db04a556ed1fac58b2c15b
This commit is contained in:
Rom Lemarchand 2015-04-08 15:11:47 -07:00 committed by Rom Lemarchand
parent a510428ead
commit f9c9266c75
1 changed files with 6 additions and 2 deletions

View File

@ -464,8 +464,12 @@ ifneq ($(strip $(TARGET_NO_KERNEL)),true)
# the boot image, which is a collection of other images.
INTERNAL_BOOTIMAGE_ARGS := \
$(addprefix --second ,$(INSTALLED_2NDBOOTLOADER_TARGET)) \
--kernel $(INSTALLED_KERNEL_TARGET) \
--ramdisk $(INSTALLED_RAMDISK_TARGET)
--kernel $(INSTALLED_KERNEL_TARGET)
ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
INTERNAL_BOOTIMAGE_ARGS += --ramdisk $(INSTALLED_RAMDISK_TARGET)
endif
INTERNAL_BOOTIMAGE_FILES := $(filter-out --%,$(INTERNAL_BOOTIMAGE_ARGS))