diff options
author | 2023-09-18 18:53:16 +0800 | |
---|---|---|
committer | 2023-10-02 15:50:26 +0800 | |
commit | 762f820dd4600c5af6288303ac98eb63075756de (patch) | |
tree | d79cb6ed483f4b1e9b0e37be3e8c17cc5db3c120 | |
parent | 6d1a864124d15251d5e2304eb49fc26c336e9a0a (diff) |
floss: Introduce Rootcanal
Specify the USE flag floss_rootcanal to build the floss with rootcanal
HCIHAL.
Bug: 289480188
Tag: #floss
Test: m Bluetooth
Change-Id: I402b588d85236be1b80ffb5ad8d6c6e2eb7837d3
-rwxr-xr-x | build.py | 6 | ||||
-rw-r--r-- | system/gd/hal/BUILD.gn | 15 |
2 files changed, 16 insertions, 5 deletions
@@ -44,17 +44,21 @@ COMMON_MK_USES = [ 'coverage', 'cros_host', 'cros_debug', + 'floss_rootcanal', + 'function_elimination_experiment', 'fuzzer', 'fuzzer', + 'lto_experiment', 'msan', 'profiling', + 'proto_force_optimize_speed', 'tcmalloc', 'test', 'ubsan', ] # Use a specific commit version for common-mk to avoid build surprises. -COMMON_MK_COMMIT = "136c3e114b65f2c6c5f026376c2e75c73c2478a3" +COMMON_MK_COMMIT = "d014d561eaf5ece08166edd98b10c145ef81312d" # Default use flags. USE_DEFAULTS = { diff --git a/system/gd/hal/BUILD.gn b/system/gd/hal/BUILD.gn index fa9f3a64f6..29dac1ad5b 100644 --- a/system/gd/hal/BUILD.gn +++ b/system/gd/hal/BUILD.gn @@ -27,10 +27,17 @@ source_set("BluetoothHalSources") { } source_set("BluetoothHalSources_hci_host") { - sources = [ - "hci_hal_host.cc", - "mgmt.cc", - ] + if (use.floss_rootcanal) { + sources = [ + "hci_hal_host_rootcanal.cc", + "mgmt.cc", + ] + } else { + sources = [ + "hci_hal_host.cc", + "mgmt.cc", + ] + } configs += [ "//bt/system/gd:gd_defaults" ] deps = [ "//bt/system/gd:gd_default_deps" ] |