aboutsummaryrefslogtreecommitdiff
path: root/build/Android.bp
AgeCommit message (Collapse)Author
2021-04-08Update to use CXX 1.0Matthew Maurer
Test: m Bug: 184799689 Tag: #refactor Change-Id: I93c7c2e8f754501771fe13c9f30408940dfe66a6
2021-03-10Move Common Criteria mode dependency to Android only.weichinweng
Bug: 181293964 Test: atest BluetoothInstrumentationTests Tag: #feature Change-Id: I92deb21350f9ec963d7d5985aed31563b7384bbd
2021-03-04Some dependencies are host supportedHansong Zhang
Bug: 181590011 Tag: #refactor Test: compile Change-Id: I247a300c3ba35715b5ddb8c06523e71189ba0ab5
2021-02-23Support Bluetooth HAL 1.1 in GDJakub Pawlowski
Because ISO support is coming Bug: 177907117 Tag: #feature Test: run GD stack on device supporting 1.1HAL, verify it's choosen Change-Id: I5c8ad512b93be443e09c02a435f9fd08179e4367
2021-02-14[LSC] Add LOCAL_LICENSE_KINDS to system/btBob Badour
Added SPDX-license-identifier-Apache-2.0 to: apex/Android.bp audio_a2dp_hw/Android.bp audio_bluetooth_hw/Android.bp audio_hal_interface/Android.bp audio_hearing_aid_hw/Android.bp binder/Android.bp bta/Android.bp btcore/Android.bp btif/Android.bp build/Android.bp common/Android.bp conf/Android.bp device/Android.bp embdrv/g722/fuzzer/Android.bp embdrv/sbc/Android.bp embdrv/sbc/decoder/Android.bp embdrv/sbc/encoder/Android.bp gd/att/Android.bp gd/common/Android.bp gd/dumpsys/Android.bp gd/dumpsys/bundler/Android.bp gd/fuzz/Android.bp gd/hal/Android.bp gd/hci/Android.bp gd/iso/Android.bp gd/l2cap/Android.bp gd/l2cap/fuzz/Android.bp gd/neighbor/Android.bp gd/os/Android.bp gd/packet/Android.bp gd/packet/parser/Android.bp gd/packet/parser/test/Android.bp gd/proto/Android.bp gd/rust/common/Android.bp gd/rust/facade/Android.bp gd/rust/gddi/Android.bp gd/rust/hal/Android.bp gd/rust/hci/Android.bp gd/rust/link/Android.bp gd/rust/main/Android.bp gd/rust/shim/Android.bp gd/security/Android.bp gd/security/channel/Android.bp gd/security/pairing/Android.bp gd/security/record/Android.bp gd/shim/Android.bp gd/storage/Android.bp hci/Android.bp include/Android.bp internal_include/Android.bp main/Android.bp main/shim/Android.bp osi/test/fuzzers/Android.bp osi/test/fuzzers/alarm/Android.bp osi/test/fuzzers/allocation_tracker/Android.bp osi/test/fuzzers/allocator/Android.bp osi/test/fuzzers/array/Android.bp osi/test/fuzzers/buffer/Android.bp osi/test/fuzzers/compat/Android.bp osi/test/fuzzers/fixed_queue/Android.bp osi/test/fuzzers/future/Android.bp osi/test/fuzzers/list/Android.bp osi/test/fuzzers/ringbuffer/Android.bp packet/Android.bp packet/avrcp/Android.bp packet/base/Android.bp packet/tests/fuzzers/Android.bp profile/avrcp/Android.bp profile/sdp/Android.bp service/Android.bp service/common/Android.bp stack/test/fuzzers/Android.bp stack/test/fuzzers/a2dp/Android.bp stack/test/fuzzers/a2dp/codec/Android.bp stack/test/fuzzers/sdp/Android.bp test/Android.bp test/headless/Android.bp test/rootcanal/Android.bp test/suite/Android.bp types/Android.bp udrv/Android.bp utils/Android.bp vendor_libs/Android.bp vendor_libs/linux/Android.bp vendor_libs/linux/interface/Android.bp vendor_libs/test_vendor_lib/Android.bp vendor_libs/test_vendor_lib/types/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: gd/Android.bp gd/crypto_toolbox/Android.bp stack/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_unencumbered to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_unencumbered to: embdrv/g722/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: osi/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I883bd6b68223a5bc77fdac89e0280993f617d6d0
2021-02-04rust: Refactor modules for static_lib propagation.Ivan Lozano
rust_library modules now bundle their static lib dependencies. As a result, many of these static_lib listings are no longer necessary. This CL also includes libcxxbridge05 in libbt_common_sys_prop_cxx and libbt_shim_ffi in libbluetooth_rust_interop, both static libraries, to avoid having to add these to dependencies. Test: mma Bug: 175886967 Bug: 179122837 Change-Id: I77c53e62d19bcda7a8ace81d7c576eed383b7c87
2021-01-22Merge "Explicitly add static dependencies"Jeffrey Vander Stoep
2021-01-21Explicitly add static dependenciesJoel Galenson
Soong does not propagate dependencies through static targets, which can cause linker errors. Until this is fixed, add the dependencies explicitly. Test: Build with and without coverage locally Test: Will run TreeHugger and Forrest Change-Id: Icab6568f3cc0783bf2a550ecd15b08f57c0d77b2
2021-01-13rusty-gd: back message loop thread with rust, if rust enabledZach Johnson
the rust code runs in a single threaded environment. since the main thread is now implicitly running in this environment too, this means we no longer need to transfer contexts in the shim Bug: 171749953 Tag: #gd-refactor Test: gd/cert/run Change-Id: I05ec50c525184c29627e1eaff2b62bac0b879416
2020-12-15rusty-gd: refine stack ffi a bitZach Johnson
Bug: 171749953 Tag: #gd-refactor Test: gd/cert/run --rhost SimpleHalTest Change-Id: If1e078bdb64a41ee0a77e352617f39a0ab3155d5
2020-12-09Revert "Revert "rusty-gd: add stack start stubs, define shim lib..."Zach Johnson
Revert submission 1518559-revert-1512686-LIHRZNOOWL Reason for revert: build system fixed Reverted Changes: I760eea76d:Revert "rusty-gd: add stack start stubs, define sh... I5740575cf:Revert "rusty-gd: move init_flag parsing to rust" I0cfbe779c:Revert "rusty-gd: compile into libbluetooth" Change-Id: I5f0f76450889d7906e9a763a4ebc5a46daf673b7
2020-12-09Revert^2 "rusty-gd: move init_flag parsing to rust"Zach Johnson
126ad36e2b8cd19d41cd60d056e704d7a5042f71 Change-Id: I93a7ee9a2fb6afda535f25348a7f94fac1a1d116
2020-12-04Revert "rusty-gd: move init_flag parsing to rust"Jeff DeCew
Revert submission 1512686 Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules&lkgb=7010703&lkbb=7011903&fkbb=7010786, bug b/174815635 Bug: 174815635 Reverted Changes: I163111bc8:rusty-gd: move init_flag parsing to rust I54cffe93d:rusty-gd: compile into libbluetooth I5207f4df9:rusty-gd: add stack start stubs, define shim libra... Change-Id: I5740575cf7790ed1ab43cc3f521e86f4ef6966e6
2020-12-04Revert "rusty-gd: add stack start stubs, define shim library"Jeff DeCew
Revert submission 1512686 Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules&lkgb=7010703&lkbb=7011903&fkbb=7010786, bug b/174815635 Bug: 174815635 Reverted Changes: I163111bc8:rusty-gd: move init_flag parsing to rust I54cffe93d:rusty-gd: compile into libbluetooth I5207f4df9:rusty-gd: add stack start stubs, define shim libra... Change-Id: I760eea76d21b768acb76b8b9dd7f58c2519e0723
2020-12-02rusty-gd: add stack start stubs, define shim libraryZach Johnson
to avoid duplicate symbols, all CXX FFI integrated into the native code needs to be from a single library. Move init_flags FFI into libbt_shim too. Bug: 171749953 Tag: #gd-refactor Test: gd/cert/run --rhost SimpleHalTest Change-Id: I5207f4df903cf434b470be84133179b04d5c9483
2020-12-02rusty-gd: move init_flag parsing to rustZach Johnson
all that macro goodness comes to life Bug: 171749953 Tag: #gd-refactor Test: gd/cert/run --rhost SimpleHalTest Change-Id: I163111bc87267d8d35ed454c2d9a100f9290f274
2020-11-05libstatslog (libbinder) users disable on darwinSteven Moreland
libbinder doesn't support mac. Bug: 172023026 Test: N/A Change-Id: Ib39fa195b9313d9d75ce903f2a871a5110abde68
2020-10-06GD-Logging: Add INIT flags to configure debug loggingJack He
* Three flags: - INIT_logging_debug_enabled_for_all - INIT_logging_debug_enabled_for_tags - INIT_logging_debug_disabled_for_tags * If a tag is explicitly disabled or enabled, we will follow that setting. Otherwise, we check the global enable flag * This setup allows us to enable/disable individual tags as well as enable or disable debug logging for all tags * This affects only DEBUG and VERBOSE level logs Bug: 170163727 Test: atest bluetooth_test_gd Tag: #gd-refactor Change-Id: Idb99ef1ca0a2d14c73069fcba396ac76a61ee39d
2019-10-24Add avrcp_device_fuzz.Mitch Phillips
This fuzz target exercises the avrcp bluetooth packet parser. Callbacks are basic fakes that do nothing (as generally this is an interaction layer with the JNI). Bug: N/A Test: m avrcp_device_fuzz Change-Id: Ib78ea8cacf2c3ca18f8a515c8b37db2f976930bd
2019-08-26Merge "Revert "Turn off the new pass manager for coverage builds""Yi Kong
2019-08-26Revert "Turn off the new pass manager for coverage builds"Yi Kong
This reverts commit 4dd3d1c50abfbfa8bec174f88b2513f27606b7fd. The updated compiler has fixed the issue that new PM and -fprofile-instr-generate cannot work together. Change-Id: I1668afe65f633fddb71ac1a0c94c563cb94f1327 Test: presubmit Bug: 131132095
2019-05-28Merge changes I42c47d98,If38ad50dTreehugger Robot
* changes: Fix mac build bpfmt -w $(find . -name Android.bp)
2019-05-23bpfmt -w $(find . -name Android.bp)Colin Cross
Test: none Change-Id: If38ad50d848c9e40f07c6598272a354312d9efea
2019-05-23Turn off the new pass manager for coverage buildsYi Kong
The new pass manager crashes if `-fprofile-instr-generat` cflag is set on the current stable Android compiler. Turn it off until we roll past the revision with the fix. Test: build Bug: 131855431 Bug: 131132095 Change-Id: I92f36b73747cca898e104118a2721a4796511282
2019-03-28Run code coverage only on host targetHansong Zhang
Bug: 129421924 Test: run code coverage Change-Id: I1dc681c72d8af29e43ccb1441ffd218059b8056c
2019-01-16Metric: Add logging for link layer connection eventsJack He
* Logs when there is an event affecting Bluetooth device's link layer connection. Triggerred when there is a related HCI command or event * Users of this metrics can deduce Bluetooth device's connection state from these events * HCI commands are logged before the command is sent, after receiving, command status, and after receiving command complete event comes back * HCI events are logged when they arrive * Simplifies logic in btu_hcif_hdl_command_status() since p_cmd is never null and we always ignore parameter total length field * Call btm_identity_addr_to_random_pseudo() when parsing command status packet for LE create connection, extended create connection, add/remove/clear whitelist commands DETAILS: * Bluetooth classic commands: - CMD_CREATE_CONNECTION - CMD_DISCONNECT - CMD_CREATE_CONNECTION_CANCEL - CMD_ACCEPT_CONNECTION_REQUEST - CMD_REJECT_CONNECTION_REQUEST - CMD_SETUP_ESCO_CONNECTION - CMD_ACCEPT_ESCO_CONNECTION - CMD_REJECT_ESCO_CONNECTION - CMD_ENH_SETUP_ESCO_CONNECTION - CMD_ENH_ACCEPT_ESCO_CONNECTION * Bluetooth low energy commands: - CMD_BLE_CREATE_LL_CONN [Only logged when there is an error or initiator filter policy is 0x00] - CMD_BLE_CREATE_CONN_CANCEL [Only logged when there is an error] - CMD_BLE_EXTENDED_CREATE_CONNECTION [Only logged on error or when initiator filter policy is 0x00] - CMD_BLE_CLEAR_WHITE_LIST - CMD_BLE_ADD_WHITE_LIST - CMD_BLE_REMOVE_WHITE_LIST * Bluetooth classic events: - EVT_CONNECTION_COMP - EVT_CONNECTION_REQUEST - EVT_DISCONNECTION_COMP - EVT_ESCO_CONNECTION_COMP - EVT_ESCO_CONNECTION_CHANGED * Bluetooth low energy meta events: - BLE_EVT_CONN_COMPLETE_EVT - BLE_EVT_ENHANCED_CONN_COMPLETE_EVT Bug: 112969790 Test: make and test drive statsd Change-Id: Ib843dfa95bb6448c41dac261dabcf17947efda06
2018-12-14List test_config_template to android platform only.Dan Shi
This allows host side test config to be auto-generated from the right template. Bug: 120993548 Test: m -j net_test_avrcp && atest net_test_avrcp --host Change-Id: I003713ea3c1c4c1c0686551828d817227ec19019
2018-11-09Enable bounds sanitization in Bluetooth.Ivan Lozano
This enables UBSan bounds sanitization in our bluetooth modules. This adds run-time bounds checks where the compiler can statically determine the array bounds. Bug: 116517182 Test: Pairing devices, playing audio, sharing files. Change-Id: I9a3ac98aaa6092ac0ad8d1ba080a76b3203bdb26
2018-11-05Add code coverage report support to BluetoothAjay Panicker
Allow the generation of code coverage reports for any code that has native tests. In order to add coverage support to code do the following steps. 1. Add "clang_file_coverage" as a default to the source library(s) you want statistics for. 2. Add "clang_coverage_bin" as a default to the host supported test. 3. Add the test name and the files you want covered to "gen_coverage.py" - The files covered can either be a directory or files. - Avoid using / at the beginning of a covered file/dir as this breaks how the coverage generator resolves filenames. Bug: 114751344 Test: run ./gen_coverage.py and test arguments manually Change-Id: I9dd04f6ee2fd642531e301e3bfd52713f862cd4b
2018-09-27Add TEST_MAPPING to system/btJack He
* Add "postsubmit" test group to TEST_MAPPING in system/bt * Developer can run tests mannually in system/bt via: system/bt$ atest :postsubmit * Remove legacy configuration files spread across system/bt * Created unified configuration file system/bt/AndroidTestTemplate.xml and add it to the default build config so that developers don't have to configure it Bug: 113359343 Test: atest :postsubmit Change-Id: I0fdd55b47ef176b5c4ce3d2cd217ffa67cf9bc23
2018-09-27Move Bluetooth to using C++17Ajay Panicker
C++ 17 has a bunch of features that will help us refactor the Bluetooth stack to be much more safe and stable. Bug: 115895445 Test: Compile and testtracker/201115 Change-Id: Ia1e8e179fa1df116969606d119cb8abe11f44761
2018-02-13Factor out libchrome_support_defaultsMyles Watson
Disable Mac support for host binaries in one place, since the dependency is based on libchrome support. Test: build Change-Id: I6641e18deffdff5205da181ad97e8b2892073a8f
2018-02-09Build: Remove DCHECK_ALWAYS_ON flagJack He
* According to libchrome documentation, DCHECK_ALWAYS_ON must be set or unset on both our library and libchrome. Flag mis-match may cause hard-to-debug segfaults which we experience when using base::Thread Change-Id: If3740196340b02d2d0bb41e08f0b551d47f49864 Fixes: 73147157 Test: make
2018-01-31BUILD: Disable build for mac-host targetJack He
* Move disable darwin (mac) options to "fluoride_defaults". * mac-host target is disabled across fluoride, but developer can still build for non-mac targets on a mac host. * Remove vendor_libs/Android.mk that is no longer used. Bug: 72618679 Test: make Change-Id: Ibad9fad3df169e9c4e418a4511c42066fcb10fdc
2017-10-26Revert "Build only for current architecture by default"Pavlin Radoslavov
This reverts commit 862095819ffac9e5e543c114b6f0d4a7d89f6938. The result audio.a2dp.default.so shared library is only 64-bit, and it can't be used by the audioserver which is still 32-bit only Bug: 68127690 Change-Id: I60b15c32425db3b2ada687fa8d0dcb728cf1812f Test: A2DP streaming
2017-10-20Build only for current architecture by defaultJakub Pawlowski
From now on, libbluetooth.so, and all unit tests will be compiled for the current device platform only. libbluetooth-types is an exception from rule, as some vendor libraries are still compiled for 32bit. Bug: 68028239 Test: compile and run Bluetooth Change-Id: I51bb4da2a9e1e4e9a03c43f2825bd1dbd4a5ca58
2017-10-19hw/bluetooth.default.so -> libbluetooth.so (1/2)Jakub Pawlowski
Also rename the build goal for both the library and headers. Bug: 67853426 Test: run Bluetooth Merged-In: Iaffeebc1d3f2761e13f6d66d4e855dc342603054 Change-Id: Iaffeebc1d3f2761e13f6d66d4e855dc342603054 (cherry picked from commit 842ff8ed7f5b00d5f6da9d975f37e65c41bb8ebc)
2017-10-19Revert "Add -fno-exceptions to default build config"Jack He
This reverts commit d4b1d66dbe28818df3408a920ef37a3e0afca0aa. Change Ie53b82e5d670f44a2460880c32dd9102d1caad7d is a better fix. This flag won't disable exceptions in pre-compiled STL library. Bug: 67963594 Test: build Change-Id: I8c8cf0ebeb79bae697f0074de2d2e39f8e8f8703
2017-10-19Move Bluetooth headers to system/bt (1/3)Jakub Pawlowski
Bug: 67853426 Test: run Bluetooth Change-Id: I75748d29a35d10d377d39e0441116dbfd04c82e9
2017-10-18Remove tabs from build/Android.bpJack He
Test: make Change-Id: I02dc1cf5a5e6c0ed2df60fcc3fb79edbb026cf8c
2017-10-18Add -fno-exceptions to default build configJack He
* C++ exceptions are expensive and are not used in our code * We need to disable exception to achieve desired behavior for std::stoi, which we don't want it to crash when failing to parse an incoming integer Test: make, net_test_osi Change-Id: Idc363ff1f25f085c75df3c473ee4d2a210af3b17
2017-10-05Remove -Wno-typedef-redefinitionMyles Watson
Test: build Change-Id: I42cc5ad8f77061bdce8906f7e454c8120f4e71b2
2017-07-06Make RawAddress into a class (1/3)Jakub Pawlowski
* Add libbluetooth-types - library containing types implementation, that is common between stystem/bt and packages/apps/Bluetooth. It must be included in every project using btif interface. * Put Raw Address implementation into libbluetooth-types * Unify all "to/from string" helper methods into ToString and FromString * bd_addr_empty -> RawAddress::kEmpty * bd_addr_any -> RawAddress::kAny Also fix leaks in jni str2addr by adding ReleaseStringUTFChars Test: types_unittest Change-Id: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043 Merged-In: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
2017-02-09Enable DLOG on eng and userdebug buildsJakub Pawlowski
Test: manual Change-Id: I1ff4ad6b2543246351d4d34919ba443e5617a9c0
2017-01-18Convert build system to soong using Android.bpJack He
* Convert top level Android.mk into build templates in build/Android.bp and build/fluoride.go * Initial conversion is done by "androidmk Android.mk > Android.bp" * Android.bp does not allow source inclusion from external directories and therefore they have to be made in to cc_library_static in their respective sub-directories and linked using whole_static_libs in the modules where they are used * As Android.bp does not allow multiple modules of the same name, same-name mudules for different target are merged into one definition with target specific setup * Generated proto header path has to be changed in osi/src/metrics.cc as Android.bp only generate header path relative to the Android.bp file instead of top-level directory such as system/bt * Android.bp does not support resource copying yet and hence conf files are left un-touched. * Android.bp does support conditional module declaration and therefore test-vendor libs are left untouched except for unit tests * The goal of this CL is to direct (almost) translate Android.mk to Android.bp first with Android.bp specific optimizations coming later Bug: 32958753 Test: Code compilation, manual testing by test team Change-Id: I5249e1f2135c4121205619b1d735ce448feb7499