From fb0a347b747a91173c8a9f845a0362e3f8a9701f Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 25 Aug 2010 16:06:06 -0700 Subject: [PATCH] Disable building OTA package if there is no kernel. Change-Id: I9a10cba92dd7f9cccd8cca58a5fa2d3a8b4620eb --- core/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Makefile b/core/Makefile index d732a619fd..e6abae7550 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1016,6 +1016,7 @@ target-files-package: $(BUILT_TARGET_FILES_PACKAGE) ifneq ($(TARGET_SIMULATOR),true) ifneq ($(TARGET_PRODUCT),sdk) ifneq ($(TARGET_DEVICE),generic) +ifneq ($(TARGET_NO_KERNEL),true) name := $(TARGET_PRODUCT) ifeq ($(TARGET_BUILD_TYPE),debug) @@ -1045,6 +1046,7 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(OTATOOLS) .PHONY: otapackage otapackage: $(INTERNAL_OTA_PACKAGE_TARGET) +endif # TARGET_NO_KERNEL != true endif # TARGET_DEVICE != generic endif # TARGET_PRODUCT != sdk endif # TARGET_SIMULATOR != true