Skip to content
Snippets Groups Projects
Unverified Commit e3b4d905 authored by Kujou Yuko's avatar Kujou Yuko Committed by Simão Gomes Viana
Browse files

soong: Optionally disable Bluetooth LE_READ_BUFFER_SIZE_V2 and SET_HOST_FEATURE


Signed-off-by: default avatarKujou Yuko <i@779.moe>
Change-Id: I4c2fa81f67b24f60b625bd7f5d23146d63985fd4
Signed-off-by: default avatarSimão Gomes Viana <devel@superboring.dev>
parent 885a8e68
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,40 @@ nvidia_enhancements {
},
}
soong_config_module_type {
name: "disable_bluetooth_le_read_buffer_size_v2",
module_type: "cc_defaults",
config_namespace: "customGlobalVars",
bool_variables: ["disable_bluetooth_le_read_buffer_size_v2"],
properties: ["cppflags"],
}
disable_bluetooth_le_read_buffer_size_v2 {
name: "disable_bluetooth_le_read_buffer_size_v2_defaults",
soong_config_variables: {
disable_bluetooth_le_read_buffer_size_v2: {
cppflags: ["-DDISABLE_LE_READ_BUFFER_SIZE_V2"],
},
},
}
soong_config_module_type {
name: "disable_bluetooth_le_set_host_feature",
module_type: "cc_defaults",
config_namespace: "customGlobalVars",
bool_variables: ["disable_bluetooth_le_set_host_feature"],
properties: ["cppflags"],
}
disable_bluetooth_le_set_host_feature {
name: "disable_bluetooth_le_set_host_feature_defaults",
soong_config_variables: {
disable_bluetooth_le_set_host_feature: {
cppflags: ["-DDISABLE_LE_SET_HOST_FEATURE"],
},
},
}
// QCOM specific config modules
soong_config_module_type {
name: "librmnetctl_pre_uplink",
......
......@@ -29,6 +29,8 @@ $(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
SOONG_CONFIG_NAMESPACES += customGlobalVars
SOONG_CONFIG_customGlobalVars += \
additional_gralloc_10_usage_bits \
disable_bluetooth_le_read_buffer_size_v2 \
disable_bluetooth_le_set_host_feature \
gralloc_handle_has_reserved_size \
target_init_vendor_lib \
target_ld_shim_libs \
......@@ -71,6 +73,8 @@ TARGET_TRUST_USB_CONTROL_DISABLE ?= 0
# Soong value variables
SOONG_CONFIG_customGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS)
SOONG_CONFIG_customGlobalVars_disable_bluetooth_le_read_buffer_size_v2 := $(TARGET_DISABLE_BLUETOOTH_LE_READ_BUFFER_SIZE_V2)
SOONG_CONFIG_customGlobalVars_disable_bluetooth_le_set_host_feature := $(TARGET_DISABLE_BLUETOOTH_LE_SET_HOST_FEATURE)
SOONG_CONFIG_customGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)
SOONG_CONFIG_customGlobalVars_target_ld_shim_libs := $(subst $(space),:,$(TARGET_LD_SHIM_LIBS))
SOONG_CONFIG_customGlobalVars_target_surfaceflinger_udfps_lib := $(TARGET_SURFACEFLINGER_UDFPS_LIB)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment