From 4182828dba5f7f5edc01ec59f4b4c27a8c6f163d Mon Sep 17 00:00:00 2001 From: Ajay Dudani Date: Mon, 6 Jan 2014 12:33:23 -0800 Subject: [PATCH] Disable generating dt.img if TARGET_NO_KERNEL is defined as true TARGET_NO_KERNEL implies the kernel is not present/compiled with the rest of the build. In absence of a kernel, it does not make much sense to compile a device tree either. Make dt.img generation tied to TARGET_NO_KERNEL flag. Change-Id: Ie0421c7630f30c39019bebd63fd82fe52e11e982 --- generate_extra_images.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generate_extra_images.mk b/generate_extra_images.mk index 12bcb7b9..e8e1ffb0 100644 --- a/generate_extra_images.mk +++ b/generate_extra_images.mk @@ -81,6 +81,7 @@ endif #---------------------------------------------------------------------- # Generate device tree image (dt.img) #---------------------------------------------------------------------- +ifneq ($(strip $(TARGET_NO_KERNEL)),true) ifeq ($(strip $(BOARD_KERNEL_SEPARATED_DT)),true) ifeq ($(strip $(BUILD_TINY_ANDROID)),true) include device/qcom/common/dtbtool/Android.mk @@ -105,6 +106,7 @@ $(INSTALLED_DTIMAGE_TARGET): $(DTBTOOL) $(INSTALLED_KERNEL_TARGET) ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_DTIMAGE_TARGET) ALL_MODULES.$(LOCAL_MODULE).INSTALLED += $(INSTALLED_DTIMAGE_TARGET) endif +endif #--------------------------------------------------------------------- # Generate usbdisk.img FAT32 image