forked from openkylin/platform_build
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:
parent
4c5f5df2c2
commit
95e743a6c0
|
@ -474,7 +474,7 @@ endif # !SDK_ONLY
|
||||||
|
|
||||||
# Before we go and include all of the module makefiles, stash away
|
# Before we go and include all of the module makefiles, stash away
|
||||||
# the PRODUCT_* values so you can't get to them.
|
# the PRODUCT_* values so you can't get to them.
|
||||||
stash_product_vars:=#true
|
stash_product_vars:=true
|
||||||
ifeq ($(stash_product_vars),true)
|
ifeq ($(stash_product_vars),true)
|
||||||
$(call stash-product-vars, __STASHED, DO_NOT_USE_IN_ANDROID_MK_)
|
$(call stash-product-vars, __STASHED, DO_NOT_USE_IN_ANDROID_MK_)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue