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
This commit is contained in:
Ajay Dudani 2014-01-06 12:33:23 -08:00
parent 5d71b32f0c
commit 4182828dba
1 changed files with 2 additions and 0 deletions

View File

@ -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