-
- Downloads
Expand bazel build to include configuration options and broader support. (#1731)
* Add host Bazel build Updates target_compatible_with across the repo to ensure that wildcard builds for both host and rp2040 succeed. * Get unit tests building * Add Python script to identify build system differences Uses the build system tags to make it easier to identify differences between the CMake and Bazel builds. * Temporarily disable pico divider test * Support PICO_BARE_METAL in Bazel * Support PICO_NO_GC_SECTIONS in Bazel * Support boot2 configuration in Bazel Adds support for PICO_DEFAULT_BOOT_STAGE2 and PICO_DEFAULT_BOOT_STAGE2_FILE in the Bazel build. * Allowlist some CMake-only options * Support CXX configuration options in Bazel * Move multiple_choice_flag.bzl * Support all pico boards * Support linking multiple stdio implementations Changes the Bazel build so stdio implementations are no longer mutually exclusive. * Add PICO_BOOT_STAGE2_LINK_IMAGE * Support PICO_CMSIS_PATH in Bazel * Support PICO_USE_DEFAULT_MAX_PAGE_SIZE in Bazel * Silence PICO_CMSIS_VENDOR and PICO_CMSIS_DEVICE differences * Support PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS in Bazel * Properly support version defines * Support embedding binary info in Bazel * Embed build type in binary * Support different linker scripts in Bazel build * Finish out missing PICO_BUILD_DEFINE in Bazel build * Support PICO_NO_TARGET_NAME * Reorganize initial configuration options in Bazel Cleans up and reorganizes some of the initial configuration options added to the Bazel build so everything is consistent. * Add builds for pioasm and elf2uf2 * Use Python rules from rules_python * Actually link in output formats in pioasm tool * Make tools have public visibility * Add UF2 Bazel aspect * Add TODOs for pioasm/uf2 helpers * Fix compile flag typo * Update Bazel SDK configuration strings to match recent CMake changes * Fix pico_divider test * Clean up straggling TODOs * Clarify pico_stdio_test compatibility * Initial Bazel Pico W support * Add new files from develop * Clean up compatibility expressions in Bazel build * Clean up rp2 constraint handling in Bazel * More Bazel docs cleanup * Format Bazel build files * Consolidate transitions in the Pico SDK * Make every _allowlist_function_transition explicit * More docs cleanup * Add a few missing defines * Improve PICO_CONFIG_HEADER correctness in Bazel * Minor docs clarifications
Showing
- MODULE.bazel 28 additions, 1 deletionMODULE.bazel
- bazel/BUILD.bazel 27 additions, 4 deletionsbazel/BUILD.bazel
- bazel/README.md 36 additions, 57 deletionsbazel/README.md
- bazel/config/BUILD.bazel 140 additions, 33 deletionsbazel/config/BUILD.bazel
- bazel/constraint/BUILD.bazel 74 additions, 25 deletionsbazel/constraint/BUILD.bazel
- bazel/defs.bzl 116 additions, 0 deletionsbazel/defs.bzl
- bazel/include/pico/config_autogen.h 4 additions, 4 deletionsbazel/include/pico/config_autogen.h
- bazel/toolchain/BUILD.bazel 45 additions, 0 deletionsbazel/toolchain/BUILD.bazel
- bazel/toolchain/configurable_feature.bzl 54 additions, 0 deletionsbazel/toolchain/configurable_feature.bzl
- bazel/util/multiple_choice_flag.bzl 38 additions, 0 deletionsbazel/util/multiple_choice_flag.bzl
- bazel/util/sdk_define.bzl 43 additions, 0 deletionsbazel/util/sdk_define.bzl
- bazel/util/transition.bzl 91 additions, 35 deletionsbazel/util/transition.bzl
- src/boards/BUILD.bazel 91 additions, 95 deletionssrc/boards/BUILD.bazel
- src/common/pico_base/BUILD.bazel 63 additions, 12 deletionssrc/common/pico_base/BUILD.bazel
- src/common/pico_binary_info/BUILD.bazel 0 additions, 2 deletionssrc/common/pico_binary_info/BUILD.bazel
- src/common/pico_binary_info/binary_info.bzl 39 additions, 0 deletionssrc/common/pico_binary_info/binary_info.bzl
- src/common/pico_bit_ops/BUILD.bazel 5 additions, 7 deletionssrc/common/pico_bit_ops/BUILD.bazel
- src/common/pico_divider/BUILD.bazel 1 addition, 1 deletionsrc/common/pico_divider/BUILD.bazel
- src/common/pico_stdlib/BUILD.bazel 26 additions, 19 deletionssrc/common/pico_stdlib/BUILD.bazel
- src/common/pico_sync/BUILD.bazel 8 additions, 7 deletionssrc/common/pico_sync/BUILD.bazel
bazel/defs.bzl
0 → 100644
bazel/toolchain/configurable_feature.bzl
0 → 100644
bazel/util/multiple_choice_flag.bzl
0 → 100644
bazel/util/sdk_define.bzl
0 → 100644
src/common/pico_binary_info/binary_info.bzl
0 → 100644
Please register or sign in to comment