OSDN Git Service

Omit ramdisk from boot.img if building without ramdisk
authorRom Lemarchand <romlem@android.com>
Wed, 8 Apr 2015 22:11:47 +0000 (15:11 -0700)
committerRom Lemarchand <romlem@google.com>
Wed, 8 Apr 2015 22:11:47 +0000 (15:11 -0700)
Change-Id: I1940e3fd5f05dec555db04a556ed1fac58b2c15b

core/Makefile

index 3485c86..b832879 100644 (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))