config: Move USB restrictions to select()

Change-Id: I0dd6ccca2493ac50019d7d077c25302d62ea4ab3
This commit is contained in:
Michael Bestas
2025-04-24 23:00:03 +03:00
committed by Bruno Martins
parent 712c75560f
commit 2bd35f62c1
2 changed files with 12 additions and 37 deletions

View File

@@ -111,33 +111,6 @@ gralloc_10_usage_bits {
},
}
soong_config_module_type {
name: "trust_usb_control",
module_type: "cc_defaults",
config_namespace: "lineageGlobalVars",
value_variables: [
"target_trust_usb_control_path",
"target_trust_usb_control_enable",
"target_trust_usb_control_disable",
],
properties: ["cppflags"],
}
trust_usb_control {
name: "trust_usb_control_defaults",
soong_config_variables: {
target_trust_usb_control_path: {
cppflags: ["-DUSB_CONTROL_PATH=\"%s\""],
},
target_trust_usb_control_enable: {
cppflags: ["-DUSB_CONTROL_ENABLE=\"%s\""],
},
target_trust_usb_control_disable: {
cppflags: ["-DUSB_CONTROL_DISABLE=\"%s\""],
},
},
}
soong_config_module_type {
name: "bootloader_message_offset",
module_type: "cc_defaults",