add vendor_init

Change-Id: Ic8e2db11fc0dd18259a009c2d34c34a4d5c3f2e4
This commit is contained in:
nebrassy
2021-06-07 17:20:36 +02:00
parent 014f3e152a
commit 869a43f5d5
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)