Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72e785f2 authored by Spandan Das's avatar Spandan Das Committed by Automerger Merge Worker
Browse files

Merge "New product config flag to gate blueprint modules" am: ed055c7f am:...

Merge "New product config flag to gate blueprint modules" am: ed055c7f am: c98a1d93 am: dbc3322e

Original change: https://android-review.googlesource.com/c/platform/build/+/2296764



Change-Id: Iebe8e51f960770059ffa302ff2f2ec13538a765b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8dab9b1c dbc3322e
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -263,6 +263,9 @@ _product_list_vars += PRODUCT_FORCE_PRODUCT_MODULES_TO_SYSTEM_PARTITION
# This flag implies PRODUCT_USE_DYNAMIC_PARTITIONS.
# This flag implies PRODUCT_USE_DYNAMIC_PARTITIONS.
_product_single_value_vars += PRODUCT_RETROFIT_DYNAMIC_PARTITIONS
_product_single_value_vars += PRODUCT_RETROFIT_DYNAMIC_PARTITIONS


# List of tags that will be used to gate blueprint modules from the build graph
_product_list_vars += PRODUCT_INCLUDE_TAGS

# When this is true, various build time as well as runtime debugfs restrictions are enabled.
# When this is true, various build time as well as runtime debugfs restrictions are enabled.
_product_single_value_vars += PRODUCT_SET_DEBUGFS_RESTRICTIONS
_product_single_value_vars += PRODUCT_SET_DEBUGFS_RESTRICTIONS


+8 −0
Original line number Original line Diff line number Diff line
@@ -274,6 +274,14 @@ endif
current_product_makefile :=
current_product_makefile :=


#############################################################################
#############################################################################
# Check product include tag allowlist
BLUEPRINT_INCLUDE_TAGS_ALLOWLIST := com.android.mainline_go com.android.mainline
.KATI_READONLY := BLUEPRINT_INCLUDE_TAGS_ALLOWLIST
$(foreach include_tag,$(PRODUCT_INCLUDE_TAGS), \
	$(if $(filter $(include_tag),$(BLUEPRINT_INCLUDE_TAGS_ALLOWLIST)),,\
	$(call pretty-error, $(include_tag) is not in BLUEPRINT_INCLUDE_TAGS_ALLOWLIST: $(BLUEPRINT_INCLUDE_TAGS_ALLOWLIST))))
#############################################################################

# Quick check and assign default values
# Quick check and assign default values


TARGET_DEVICE := $(PRODUCT_DEVICE)
TARGET_DEVICE := $(PRODUCT_DEVICE)
+2 −0
Original line number Original line Diff line number Diff line
@@ -300,6 +300,8 @@ $(call add_json_bool, GenerateAidlNdkPlatformBackend, $(filter true,$(NEED_AIDL_


$(call add_json_bool, IgnorePrefer32OnDevice, $(filter true,$(IGNORE_PREFER32_ON_DEVICE)))
$(call add_json_bool, IgnorePrefer32OnDevice, $(filter true,$(IGNORE_PREFER32_ON_DEVICE)))


$(call add_json_list, IncludeTags,                $(PRODUCT_INCLUDE_TAGS))

$(call json_end)
$(call json_end)


$(file >$(SOONG_VARIABLES).tmp,$(json_contents))
$(file >$(SOONG_VARIABLES).tmp,$(json_contents))