Merge "add vendor_init" into android-11

This commit is contained in:
bigbiff
2021-06-12 23:47:38 +00:00
committed by Gerrit Code Review
2 changed files with 25 additions and 1 deletions
+17
View File
@@ -49,6 +49,23 @@ cc_library_headers {
recovery_available: true,
}
soong_config_module_type {
name: "vendor_init",
module_type: "cc_defaults",
config_namespace: "twrpGlobalVars",
value_variables: ["target_init_vendor_lib"],
properties: ["whole_static_libs"],
}
vendor_init {
name: "vendor_init_defaults",
soong_config_variables: {
target_init_vendor_lib: {
whole_static_libs: ["%s"],
},
},
}
soong_config_module_type {
name: "enforce_ab_ota_partition_list",
module_type: "cc_defaults",
+8 -1
View File
@@ -28,7 +28,14 @@ $(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
SOONG_CONFIG_NAMESPACES += twrpGlobalVars
SOONG_CONFIG_twrpGlobalVars += \
target_enforce_ab_ota_partition_list
target_enforce_ab_ota_partition_list \
target_init_vendor_lib
# Soong bool variables
SOONG_CONFIG_twrpGlobalVars_target_enforce_ab_ota_partition_list := $(TARGET_ENFORCE_AB_OTA_PARTITION_LIST)
# Set default values
TARGET_INIT_VENDOR_LIB ?= vendor_init
# Soong value variables
SOONG_CONFIG_twrpGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)