Skip to content
Snippets Groups Projects
  1. 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
      Update the readme to use build.py and explain Rust · cb34dc46
      Abhishek Pandit-Subedi authored
      Updated the README to build using build.py and explain how the Rust
      portion is built on Linux.
      
      Bug: 179821440
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: Ibb58fae9b9ca8aaaf1dcce7c5d33204c46fd9678
      cb34dc46
    • Abhishek Pandit-Subedi's avatar
      Add build.py to simplify building locally · f52cf665
      Abhishek Pandit-Subedi authored
      This adds a script that can build system/bt locally on your Linux
      machine. Please see required folder layout in the script on how to
      prepare your environment and check the help text on how to use it.
      
      In its simplest form (for example):
        ./build.py --out ../build --platform-dir ../staging --clang
      
      This will build all of systembt in ../build using the ../staging
      directory as your source directory and will use the clang compiler to do
      the build.
      
      Bug: 179821440
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      
      Change-Id: I9c6a9fa30235b2fc661a0fe327154f18a03ca026
      f52cf665
    • 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
    • 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
      Prevent building some codecs when not supported · d3b679dc
      Abhishek Pandit-Subedi authored
      When building outside Android, we may not have support for the non
      Bluetooth standard codecs (i.e. everything except SBC). So put all
      references to aptx, ldac, aac and vendor codecs inside the
      EXCLUDE_NONSTANDARD_CODECS ifdef.
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I80914f2944b5466b88e221ba10ceae4dd30c16cf
      d3b679dc
    • 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
    • Abhishek Pandit-Subedi's avatar
      Add source_root parameter to bluetooth_packetgen · b3fe88bf
      Abhishek Pandit-Subedi authored
      In packetgen, add a source-root parameter that we use to rebase paths
      from. This was necessary to get the same directory output structure on
      Linux builds with GN.
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I75cdb1693655356ad1470d29a8a45440c775df8f
      b3fe88bf
    • Abhishek Pandit-Subedi's avatar
      Fix bison 3.7 incompatability · 423a2e3d
      Abhishek Pandit-Subedi authored
      On bison 3.7, YYSTYPE and YYLTYPE don't get defined in the header so
      define them directly in the lexer
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I02b9b615dc6d013efdace733491e7a73c3e1eb69
      423a2e3d
    • Abhishek Pandit-Subedi's avatar
      Host tools support · e2009c7d
      Abhishek Pandit-Subedi authored
      This adds support for the dumpsys bundler tool (which combines multiple
      flatbuffer schemas) and the packetgen tool (which converts pdls to
      a language parser).
      
      Bug: 176847256
      Tag: #floss
      Test: atest --host bluetooth_test_gd
      Change-Id: I1315979093668f60a476b85f41bb1d707995b2a7
      e2009c7d
    • Chienyuan's avatar
      gd: Fix address manager bug · a41cd707
      Chienyuan authored
      Tag: #gd-refactor
      Bug: 180869951
      Test: gd/cert/run
      Change-Id: Ia04aea10c686c8c4ec8985f2ba3f3424691ea825
      a41cd707
    • Myles Watson's avatar
      d9279d66
  2. Mar 03, 2021
  3. Mar 02, 2021
Loading