Skip to content
Snippets Groups Projects
  1. Jul 17, 2023
  2. Jun 21, 2023
    • Katherine Lai's avatar
      [Floss] Add and fix btstack unit tests · f189da44
      Katherine Lai authored
      Add system/gd/rust/linux/stack to Cargo file and fix advertising
      unit tests.
      
      Bug: 287248056
      Tag: #floss
      Test: ./build.py --target test
      Change-Id: Ibeef79e5ceeb2866bd7fb61776001a6a54e42015
      f189da44
  3. Feb 10, 2023
    • Abhishek Pandit-Subedi's avatar
      floss: Add hcidoc tool to read snoop files · 2a9a9167
      Abhishek Pandit-Subedi authored
      Hcidoc will be used to analyze snoop files and snooz files to identify
      errors and other behaviors. This commit simply sets up the hcidoc crate
      and a simple snoop reader.
      
      Bug: 262928525
      Tag: #floss
      Test: ./build.py --target utils
      Change-Id: I7eeae136a35d51a01ac2ab137dbf114e07f800e9
      2a9a9167
  4. 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
  5. Nov 08, 2021
  6. May 28, 2021
    • Sonny Sasaka's avatar
      Add command line client · d6077220
      Sonny Sasaka authored
      This adds the minimal command line client with Bluetooth stack embedded
      into the client. Future work will add support for the Bluetooth stack
      over D-Bus.
      
      Bug: 188718349
      Tag: #floss
      Test: manual - Build floss on Linux, run btclient
      
      Change-Id: If525ab7653b85d108b4eb3303fe5e1761a43f2c8
      d6077220
  7. May 21, 2021
    • Sonny Sasaka's avatar
      Cleanup floss code · b0903dbf
      Sonny Sasaka authored
      This cleans up compiler warnings and removes unused binary in "adapter"
      crate.
      
      Bug: 186492781
      Tag: #floss
      Test: manual - build on Linux and Chrome OS
      
      Change-Id: I0ecc7c525e3403cc68180198bd19e78e2a2df4b5
      b0903dbf
  8. May 04, 2021
    • Sonny Sasaka's avatar
      Add D-Bus daemon binary · bac6a529
      Sonny Sasaka authored
      The D-Bus daemon connects the RPC-agnostic API implementations in
      `btstack` crate with the `dbus_projection` to make a D-Bus projection of
      the API implementation.
      
      Bug: 186492781
      Tag: #floss
      Test: manual - Use dbus-send util
      Change-Id: I12391f4e9739a5d1ed6167990fc016429e7280d4
      bac6a529
  9. May 03, 2021
    • Abhishek Pandit-Subedi's avatar
      Add topshim for bluetooth interface · d61f2117
      Abhishek Pandit-Subedi authored
      In order for the Rust front-end to use the bluetooth interface, add
      a topshim to give Rust code access to C++.
      
      Also includes some debug code in adapter/main.rs which will eventually
      be replaced with a proper dbus frontend.
      
      Bug: 183208689
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      BYPASS_LONG_LINES_REASON: Bluetooth likes 120 char lines
      
      Change-Id: I58caec1ffadcc1d8d7e92f7c9669fa4f4d5bb91f
      d61f2117
    • 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
  10. Mar 04, 2021
    • Abhishek Pandit-Subedi's avatar
      Build support for Rust via Cargo · 011171d7
      Abhishek Pandit-Subedi authored
      ChromeOS is missing support for mixing C++ and Rust in GN so we compile
      Rust in a separate step using Cargo. Currently, only the direct code
      portions were copied to the Cargo.toml and tests are still missing. The
      final output from the Rust build is the libbt_shim_ffi staticlib.
      
      Some BUILD.gn rules for rust libraries were also added (to try to make
      it work with an experimental Rust toolchain in GN) but was abandonded
      because dependencies couldn't be built. Leaving this in since it will be
      useful when GN supports building Rust as well on ChromeOS.
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I4d1ab599309b153b2304cb87c4526bc476dc2637
      011171d7
Loading