diff --git a/build/soong/Android.bp b/build/soong/Android.bp index 5b14b230..14d3ce9c 100644 --- a/build/soong/Android.bp +++ b/build/soong/Android.bp @@ -111,23 +111,6 @@ gralloc_10_usage_bits { }, } -soong_config_module_type { - name: "vendor_init", - module_type: "cc_defaults", - config_namespace: "lineageGlobalVars", - 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: "trust_usb_control", module_type: "cc_defaults", diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 8993e200..9acac854 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -31,7 +31,6 @@ SOONG_CONFIG_lineageGlobalVars += \ additional_gralloc_10_usage_bits \ bootloader_message_offset \ camera_override_format_from_reserved \ - target_init_vendor_lib \ target_trust_usb_control_path \ target_trust_usb_control_enable \ target_trust_usb_control_disable @@ -43,7 +42,6 @@ SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_ BOOTLOADER_MESSAGE_OFFSET ?= 0 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false -TARGET_INIT_VENDOR_LIB ?= vendor_init TARGET_TRUST_USB_CONTROL_PATH ?= /proc/sys/kernel/deny_new_usb TARGET_TRUST_USB_CONTROL_ENABLE ?= 1 TARGET_TRUST_USB_CONTROL_DISABLE ?= 0 @@ -51,7 +49,6 @@ TARGET_TRUST_USB_CONTROL_DISABLE ?= 0 # Soong value variables SOONG_CONFIG_lineageGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS) SOONG_CONFIG_lineageGlobalVars_bootloader_message_offset := $(BOOTLOADER_MESSAGE_OFFSET) -SOONG_CONFIG_lineageGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB) SOONG_CONFIG_lineageGlobalVars_target_trust_usb_control_path := $(TARGET_TRUST_USB_CONTROL_PATH) SOONG_CONFIG_lineageGlobalVars_target_trust_usb_control_enable := $(TARGET_TRUST_USB_CONTROL_ENABLE) SOONG_CONFIG_lineageGlobalVars_target_trust_usb_control_disable := $(TARGET_TRUST_USB_CONTROL_DISABLE) @@ -102,3 +99,8 @@ endif ifneq ($(TARGET_SURFACEFLINGER_UDFPS_LIB),) $(call soong_config_set,surfaceflinger,udfps_lib,$(TARGET_SURFACEFLINGER_UDFPS_LIB)) endif + +# Vendor init +ifneq ($(TARGET_INIT_VENDOR_LIB),) + $(call soong_config_set,libinit,vendor_init_lib,$(TARGET_INIT_VENDOR_LIB)) +endif