Enforce that PRODUCT_ variables aren't modified by module makefiles

This eliminates one of the way a module could insert itself into
a build without going through a product definition file.

Change-Id: I1d537764d73c52ceaec96b64b6b6925e2f6a8d8e
This commit is contained in:
Jean-Baptiste Queru 2010-10-07 16:08:46 -07:00
parent 4c5f5df2c2
commit 95e743a6c0
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,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