Skip to content
Snippets Groups Projects
  1. Jul 14, 2022
    • Michael Sun's avatar
      floss: have floss built with libstructuredmetrics · e695da46
      Michael Sun authored
      Update the Floss build process to utilize the new GN flag target_os and
      environmental variable TARGET_OS_VARIENT to include
      libstructuredmetrics when building for ChromeOS. Correct GN syntaxes.
      
      BUG: 232098615
      Tag: #floss
      Test: ./build.py --target test
      Test: emerge-${BOARD} floss
      
      Change-Id: I0bf960751643f12f7e1ef03c7aa844d112fbb5d5
      e695da46
  2. Nov 19, 2021
    • Abhishek Pandit-Subedi's avatar
      floss: Move host build check to parent BUILD file · 4d09c9ef
      Abhishek Pandit-Subedi authored
      On cross-compiles, the main build was failing because //bt:tools was
      dependending on //bt/system:tools which doesn't exist on cross-compile
      builds. Thus, move the condition to //bt:tools instead.
      
      Bug: 201687614
      Tag: #floss
      Test: emerge-arm-generic floss on ChromeOS
      Change-Id: I915ef8f8fa80f4642972a9aec960b428c581360d
      4d09c9ef
  3. Nov 12, 2021
    • Abhishek Pandit-Subedi's avatar
      floss: Change build rules from //bt to //bt/system · 947d4685
      Abhishek Pandit-Subedi authored
      Ran a sed rule to replace most instances of //bt to //bt/system in all
      BUILD.gn and *.gni files. Also made some manual changes to include
      directories using packetgen and dumpsys to include bt/system/gd instead
      of just bt/gd. Added a new BUILD.gn at root that just points to
      system/BUILD.gn.
      
      On the Rust side, updated the Cargo.toml paths and build.rs includes for
      topshim.
      
      Bug: 205591223
      Test: Run `./build.py`
      Tag: #floss
      Change-Id: Ib6b9b991f140742d765a1031c8f4085aba9ce552
      947d4685
    • Abhishek Pandit-Subedi's avatar
      Revert "Floss: Fix build post repo migration" · eb958798
      Abhishek Pandit-Subedi authored
      This reverts commit ddd429fe.
      
      As it turns out, we will need to change //bt to //bt/system after all
      because the ChromeOS ebuild can't easily handle the subdirectory change
      otherwise.
      
      Bug: 205591223
      Test: Run `./build.py`
      Tag: #floss
      Change-Id: I620221cb589712dfc1f84c7ea87a175634a86250
      eb958798
  4. Nov 08, 2021
  5. Jun 14, 2021
    • Abhishek Pandit-Subedi's avatar
      Disable building C++ tests for Linux · 70e43040
      Abhishek Pandit-Subedi authored
      Due to the use of multiple build systems, link dependencies between C++
      and Rust where C++ does the final linking will fail. Until we have full
      Bazel build, we can't enable these tests again.
      
      Bug: 190750167
      Tag: #floss
      Test: Build for Linux
      Change-Id: Iadd7dafe9635f606c2289eb246e3e2eb4931e92c
      70e43040
  6. Jun 01, 2021
    • Hansong Zhang's avatar
      Fix hci_hal_host · 788396de
      Hansong Zhang authored
      Separate hci_hal_host (linux socket-based) and rootcanal
      implementation, since they are different.  We get an entire packet
      through linux socket, but we get a tcp stream from rootcanal, so
      handling of the incoming packets are different.
      
      Fix the crash when we block at reading HCI reset response.
      
      Test: run gd on chrome os
      Tag: #stability
      Bug: 181909671
      Change-Id: I194744e61cf20f003a117405a20570a94382bce6
      788396de
  7. May 03, 2021
    • Abhishek Pandit-Subedi's avatar
      Add rust binaries to link with C++ staticlib · 83f3ba1f
      Abhishek Pandit-Subedi authored
      Rather than using C++ binaries to link with Rust staticlib, we do it the
      other way around. This allows us to write our dbus frontend with Rust
      instead.
      
      Bug: 179821440
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I63037e0aaea152a4855e0a49971c1b2f9c312ac5
      83f3ba1f
    • Abhishek Pandit-Subedi's avatar
      Add TARGET_FLOSS define · d1895cee
      Abhishek Pandit-Subedi authored
      OS_GENERIC is used for host tests and Linux builds but it unfortunately
      puts everything at the current working directory. Add a TARGET_FLOSS
      define so that we can put them at absolute locations (i.e.
      /etc/bluetooth).
      
      Bug: 186442862
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I1c9aaacd1b36b80523437b050d2232b7e5bba47c
      d1895cee
  8. Apr 23, 2021
    • Abhishek Pandit-Subedi's avatar
      Additional changes for Linux build · d801b120
      Abhishek Pandit-Subedi authored
      While building for Linux on cloudtop, a few more problems were
      identified in the build. There were a couple of missing #include and
      some incomplete struct definitions in btm_int_types.h. Also put
      statslog.h behind an #ifdef OS_ANDROID.
      
      Bug: 184975659
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: Ic2272a3acfa66259e692db280b48b4ddadff2171
      d801b120
  9. Mar 04, 2021
    • Abhishek Pandit-Subedi's avatar
      Change libbt-platform-protos dependency · 39c39618
      Abhishek Pandit-Subedi authored
      Move the dependency to use the target included in
      //external/proto_logging instead. This will be provided via cros_workon
      for ChromeOS and in the prepared platform-dir for Linux build.
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I86da8ca8e7b666ccdc4cc36680f90083bbe76dfb
      39c39618
    • Abhishek Pandit-Subedi's avatar
      Add option to build libbluetooth as staticlib · cac9ab3f
      Abhishek Pandit-Subedi authored
      For ChromeOS/Linux, we want to build a static libbluetooth to make it
      easier to find build breakages earlier and to simplify some of the build
      issues. This change adds a compile time define to choose between using
      dlsym to load libbluetooth and using extern to access the symbols
      directly.
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I818c0f4a7baf414e73dc6f6ae73bb3e3bc3f357f
      cac9ab3f
    • Abhishek Pandit-Subedi's avatar
      Build support and abstractions for Linux build · 9bd8242a
      Abhishek Pandit-Subedi authored
      This has a large number of fixes to build on Linux/ChromeOS. In general,
      it is making sure the BUILD.gn and Android.bp for a directory structure
      match and it has all the configs + deps needed to build.
      
      Besides a number of simple fixups (missing headers), there are also
      a few abstractions that need to be noted:
      
      * All of audio HAL is stubbed out (using the host implementation)
      * Parameter provider and system_properties (under gd/os) now have
        a linux variant that changes where configuration files are kept. The
        current location for linux is now /etc/systembt. This implementation
        was copied from the host versions (which seems to be used for host
        testing).
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I1a6b3b362cedbe5f675794a115a330cc7f85f9c1
      9bd8242a
  10. Feb 24, 2021
    • Sonny Sasaka's avatar
      Add gn builds for main/shim · 019ce6f5
      Sonny Sasaka authored
      This adds GN builds for main/shim, along the way adding some fixes:
      * Add message_loop_thread_bridge_header to use Rust's message loop
      * Add some missing includes
      * Build files for dumpsys
      * Add gd/hci gn build
      
      Bug: 176847216
      Tag: #refactor
      Test: atest --host bluetooth_test_common
      
      Change-Id: Ide1edbb70076c4dcc4a4e6ee41303a9e315d52af
      019ce6f5
  11. Feb 05, 2021
    • Sonny Sasaka's avatar
      Update GN files for building on Linux/Chrome OS · 116ae62b
      Sonny Sasaka authored
      * Add missing GN files
      * Move test targets under use.test
      * Move non-standard codec targets under use.bt_nonstandard_codecs
      * Add missing source files
      
      Bug: 177961465
      Tag: #refactor
      Test: atest --host bluetooth_test_common
      
      Change-Id: Ib7ba2705b2fd53d4c4d87916e99f35e7fce6c98e
      116ae62b
  12. Feb 01, 2021
    • Abhishek Pandit-Subedi's avatar
      Fix up files to compile on Linux · c86d26f3
      Abhishek Pandit-Subedi authored
      Fix up all the .gn files so that they will compile on Linux. In order to
      compile with GN, there is a new dependency on common-mk (currently part
      of chromiumos/platform2) and most third-party libraries now use
      pkg-config to include and link. As a result, all build paths are
      prefixed with //bt now.
      
      In addition, also disable building non standard codecs temporarily (i.e.
      ldac, aptx, aac). We will add a way to enable them via build flags later
      but we're disabling them entirely for now.
      
      Bug: 176847216
      Bug: 176846220
      Tag: #refactor
      Test: run --host bluetooth_test_gd
      Test: run --host bluetooth_test_common
      Change-Id: I85e5f8bd64c9ad074537cdd1393d373d5644aca0
      c86d26f3
  13. Jan 10, 2019
    • Jack He's avatar
      Remove code related to Health Device Profile and MCAP Protocol · f58c174c
      Jack He authored
      * Health Device Profile (HDP) and MCAP protocol has been largely
        replaced by BLE. New applications should use Bluetooth Low Energy
        instead of legacy Bluetooth Health Device Profile
      
      Bug: 111562841
      Test: make, unit test, use Bluetooth
      Change-Id: I3da1173a8a928af4b26a29e71746241c22af2236
      Merged-In: I3da1173a8a928af4b26a29e71746241c22af2236
      (cherry picked from commit 8e5dff56)
      f58c174c
  14. Jan 05, 2019
    • Jack He's avatar
      Remove code related to Health Device Profile and MCAP Protocol · 8e5dff56
      Jack He authored
      * Health Device Profile (HDP) and MCAP protocol has been largely
        replaced by BLE. New applications should use Bluetooth Low Energy
        instead of legacy Bluetooth Health Device Profile
      
      Bug: 111562841
      Test: make, unit test, use Bluetooth
      Change-Id: I3da1173a8a928af4b26a29e71746241c22af2236
      8e5dff56
  15. Oct 23, 2017
  16. Oct 20, 2017
  17. May 25, 2017
    • Jack He's avatar
      MCAP: Add a test tool for MCAP · 4e452bac
      Jack He authored
      * Add a command line tool for MCAP related tests
      * This tool can access the Bluetooth stack via a command line program
      * Type "help" to obtain a list of available console commands in this
        Bluetooth
      * Bluetooth must be disabled when this tool is running
      
      Bug: 37867299
      Test: make, PTS MCAP test
      Change-Id: I106e6625ee8a29b7fdad88cdfeb99419054ef771
      4e452bac
  18. Apr 11, 2017
    • Jakub Pawlowski's avatar
      Linux build fix · 16a05435
      Jakub Pawlowski authored
      Test: manual
      Change-Id: I5c86e96b9bb1cee5b535ea1fa6ba0b6d078a9b09
      (cherry picked from commit 17f449dab52a6092422a0405e6fe589488661594)
      16a05435
  19. Apr 10, 2017
  20. Mar 25, 2016
  21. Feb 24, 2016
  22. Nov 04, 2015
  23. Aug 04, 2015
    • Dennis Cheng's avatar
      test_vendor_lib: Use EPOLLOUT · 0fecf8d3
      Dennis Cheng authored
      HciTransport checks for write-readiness before sending any packets
      back to the HCI. Packets are maintained on a queue and only written
      when the EPOLLOUT flag is set in the epoll_event.
      
      Bug: 21586676
      Change-Id: Iebd9599286b62746e2be7e424c522058ae978bb1
      0fecf8d3
  24. Jul 23, 2015
    • Arman Uguray's avatar
      gn-build: Add bluetooth-service target · 6aa7dc21
      Arman Uguray authored
      This patch makes the Bluetooth system service (service/) buildable using GN:
      
      1. Added new BUILD.gn file for service/
      2. Added conditional compilation for global config paths, with TODOs for
      generalizing them later.
      3. Added a shim for loading the Bluetooth library that calls hw_get_module on
      Android and explicitly calls dlopen on OS_GENERIC.
      4. Fixed compile warnings and errors.
      5. Did some minor clean up in gatt_server.cpp for better readability.
      
      Bug: 22124644
      Change-Id: I3226537a3a5211a6762651a35707638df29956b0
      6aa7dc21
  25. May 26, 2015
  26. May 12, 2015
Loading