diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-09-26 13:05:41 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-09-26 13:16:35 -0700 |
commit | 0944771fb0de7510046e252b59f4afa7d24b212f (patch) | |
tree | 792b29a3dc910886139bd91d7dbc68a1cd42d5b9 /core/main.mk | |
parent | 509d28b2b3cb3eb4d8bbd36a365457cb7b14f658 (diff) | |
download | build-0944771fb0de7510046e252b59f4afa7d24b212f.zip build-0944771fb0de7510046e252b59f4afa7d24b212f.tar.gz build-0944771fb0de7510046e252b59f4afa7d24b212f.tar.bz2 |
Issue an error when unknown files are added to ALL_PREBUILT
Change-Id: I72b086ed7a3ad04227ce429f4d367b726d573432
Diffstat (limited to 'core/main.mk')
-rw-r--r-- | core/main.mk | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/core/main.mk b/core/main.mk index 428fa76..113bf4b 100644 --- a/core/main.mk +++ b/core/main.mk @@ -472,7 +472,7 @@ endif # !SDK_ONLY # Before we go and include all of the module makefiles, stash away # the PRODUCT_* values so you can't get to them. -stash_product_vars:=#true +stash_product_vars:=true ifeq ($(stash_product_vars),true) $(call stash-product-vars, __STASHED, DO_NOT_USE_IN_ANDROID_MK_) endif @@ -512,6 +512,22 @@ ifeq ($(stash_product_vars),true) $(call restore-product-vars, __STASHED) endif +include $(BUILD_SYSTEM)/legacy_prebuilts.mk +ifneq ($(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),) + $(warning *** Some files have been added to ALL_PREBUILT.) + $(warning *) + $(warning * ALL_PREBUILT is a depracated mechanism that) + $(warning * should not be used for new files.) + $(warning * As an alternative, use PRODUCT_COPY_FILES in) + $(warning * the appropriate product definition.) + $(warning * build/target/product/core.mk is the product) + $(warning * definition used in all products.) + $(warning *) + $(foreach bad_prebuilt,$(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),$(warning * unexpected $(bad_prebuilt) in ALL_PREBUILT)) + $(warning *) + $(error ALL_PREBUILT contains unexpected files) +endif + # ------------------------------------------------------------------- # All module makefiles have been included at this point. # ------------------------------------------------------------------- |