Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
c871e75
start 2.1.2-develop
kilograham Feb 19, 2025
c7ff325
Merge branch 'master' into develop to pick up doc fix
kilograham Feb 19, 2025
26ab4be
Fix misleading error messages in spin_lock.h (#2326)
lurch Mar 3, 2025
dd1f483
Add upcoming sparkfun board (#2329)
SFE-Brudnerd Mar 5, 2025
b1676c1
fix return type of enable/disable interrupt methods... add host versi…
kilograham Mar 9, 2025
ab12d55
Fix use of PICO_RP2040 macro. (#2356)
eightycc Mar 18, 2025
4f31ef1
Add SparkFun XRP Controller header (#2347)
sfe-SparkFro Mar 18, 2025
a45e1e4
Add board file for Eelectronicparts Pico Mini in 2,4,8,16MB variants …
gsboylan Mar 18, 2025
cc1ac39
Remove assignment of cyw43 last_size/header/backplane_window variable…
dpgeorge Mar 18, 2025
3751bc5
Check for the misuse of '#define PICO_RP2350B' in board headers (#2290)
lurch Mar 18, 2025
6a56480
Remove FIXME delete comment (#2341)
d-c-d Mar 18, 2025
6d8588d
Adjust generated name to match pio_mov_status_type (#2324)
KewlKris Mar 18, 2025
26e7dc5
Add Bazel label flag for overriding tusb_config.h (#2264)
mbrase Mar 18, 2025
a995b97
Missed doc change in #850 (#2302)
kilograham Mar 18, 2025
7d0f44b
Fix tools/build_all_headers.py to cope with chip-specific headers (#2…
lurch Mar 18, 2025
ba936d3
pico_lwip_arch is actually what depends on pico_rand (#2303)
kilograham Mar 18, 2025
3241bdc
Fix PICO_PREVIOUS_PLATFORM error (#2357)
will-v-pi Mar 18, 2025
645b33c
Update hellbender_0001.h (#2359)
lurch Mar 19, 2025
005759d
Fix #2253 cybt_printf by wrapping with NDEBUG (#2323)
d-c-d Mar 19, 2025
332eb53
Add new feature defines to pico_stdio_usb (#2296)
mbrase Mar 22, 2025
bbb94e5
Add rom_pick_ab_update_partition function (#2182)
will-v-pi Mar 22, 2025
f81851a
Throw a warning when using the example signing/encryption keys (#2352)
will-v-pi Mar 22, 2025
e43b753
Add new stdio_usb_call_chars_available_callback() function (#2300)
mbrase Mar 22, 2025
fa94f64
Look for PICO_CONFIG: entries in .S files too (#2368)
lurch Mar 24, 2025
39fafaa
Add SPARE_IRQs to the SVD (#2271)
kilograham Mar 25, 2025
a5ba689
Initial commit pulled in a bunch of stuff - see description
will-v-pi Mar 26, 2025
bb5b5f9
Move unique_id (configurably) earlier in the static init process (#2379)
byteit101 Mar 29, 2025
472c781
Fix sign conversion error introduced by #2233 (#2392)
will-v-pi Apr 2, 2025
ac3c458
move irq_has_handler() so it can be used without shared handlers (#2383)
kilograham Apr 3, 2025
f154f58
unclaim alarm on correct timer in ta_disable_irq_handler (#2382)
kilograham Apr 3, 2025
f62bc4f
Properly respect setting PICO_DEFAULT_BINARY_TYPE (#2381)
kilograham Apr 3, 2025
ad0bca9
Fix bug in extract_configs.py (#2389)
lurch Apr 4, 2025
5edf1a0
Fix WindowsCI (again) (#2388)
lurch Apr 4, 2025
c88bd53
Ensure that all RP2350 board-headers explicitly define PICO_RP2350A (…
lurch Apr 4, 2025
701c193
Set default GATT path to CMAKE_CURRENT_LIST_DIR if not specified (#2385)
will-v-pi Apr 4, 2025
5912699
Lots of small doxygen fixes (#2390)
lurch Apr 4, 2025
950a68f
define __force_inline in host compiles (#2396)
kilograham Apr 4, 2025
93ea261
Force inline critical_section_{enter,exit} (#2393)
tannewt Apr 6, 2025
d47c0c8
Update mbedtls, lwip and cyw43-driver (#2405)
peterharperuk Apr 11, 2025
f674850
Fix DST bug in aon_timer_get_time for rp2040 (#2409)
peterharperuk Apr 11, 2025
1721f9d
Add some docs for pico_set_lwip_httpd_content (#2411)
peterharperuk Apr 11, 2025
6fea77f
Change BT flash storage default for rp2350 A2 (#2412)
peterharperuk Apr 11, 2025
1ff6321
Fix #2413 - Misleading comment about bootloader in rp2350/memmap_copy…
d-c-d Apr 11, 2025
5592322
Add --recursive flag to git submodule cmd (#2416)
peterharperuk Apr 12, 2025
fed7188
Rework use of pico_cmake_set in board headers to make it slightly les…
kilograham Apr 14, 2025
65a8907
Make doxygen buildable again (#2423)
lurch Apr 15, 2025
829c067
add word alignment for rtwopi (#2429)
kilograham Apr 21, 2025
8421b45
Revert "Make doxygen buildable again (#2423)" (#2437)
lurch Apr 23, 2025
eee72cd
Fix submodule path typos (#2424)
lurch Apr 23, 2025
174cafc
Add CYW43_WL_GPIO_SMPS_PIN for pico_w and pico2_w (#2410)
peterharperuk Apr 23, 2025
ae332b3
Ensure each test has a unique name (followup to #2208) (#2443)
lurch Apr 26, 2025
082d9f7
More board-header checks (followup to #2397) (#2442)
lurch Apr 26, 2025
333944a
Update hellbender_2350A_devboard.h for release version of the board. …
CBJamo Apr 29, 2025
6e31579
Add script to extract CMake function descriptions (#2422)
will-v-pi Apr 29, 2025
31fadf4
Revert "Add --recursive flag to git submodule cmd (#2416)" (#2445)
peterharperuk May 1, 2025
0de8847
Crashes after calling btstack_cyw43_deinit (#2446)
peterharperuk May 1, 2025
4bbd533
Fix sha build issues with mbedtls 3.x (#2447)
peterharperuk May 2, 2025
ec25563
Fix binary_info compilation in C++ due to out-of-order designated ini…
brokeh May 4, 2025
25789c4
Fix wrong value used for lposc_freq_khz_frac and xosc_freq_khz_frac
tommy-gilligan May 4, 2025
0779dfe
Small PICO_CONFIG tweak (#2456)
lurch May 6, 2025
7cdb8ec
Add PICO_CRT0_NO_RESET_SECTION (#2453)
kilograham May 7, 2025
799225d
Add PICO_CRT0_NEAR_CALLS to indicate that crt0 can call runtimine_ini…
kilograham May 7, 2025
792f556
Use cyw43_delay_ms() in cyw43_spi_reset() instead of sleep_ms() (#2431)
mbrase May 8, 2025
550aa09
fix typo in PICO_RUNTIME_SKIP_INIT_POST_CLOCK_RESETS (was missing INI…
kilograham May 12, 2025
14d75c0
Add printout of picotool location (#2475)
will-v-pi May 20, 2025
66540fe
Fix pioasm build failure caused by GCC 15 changes (#2448) (#2468)
onion108 May 20, 2025
8066bee
give user more control over embedded_start_block.S contents (#2470)
kilograham May 20, 2025
cbd7656
Minor fixups to compile with TF-M (#2403)
will-v-pi May 20, 2025
47f288b
Add support for wiznet_w5100s_evb_pico2 (#2458)
scaprile May 20, 2025
3515dad
Fix multicore_lockout features so that the victim core cannot become …
jwhitham May 20, 2025
c9c3825
remove assembler warning if StackSize or HeapSize are explicitly set …
kilograham May 21, 2025
9fdfe11
Remove accidental comment words in stdio.h (#2480)
lurch May 23, 2025
6613aa4
Add support for creating self-decrypting binaries (#2315)
will-v-pi May 29, 2025
0722de3
add new M33 processor exception handlers (#2482)
kilograham May 29, 2025
67f89e4
Update Bazel pin, ignore build-* directories (#2461)
armandomontanez May 29, 2025
6860f0d
Call enable_interrupts when initialising IRQs (#2491)
will-v-pi May 30, 2025
6841d4d
Remove DEPENDS argument from add_custom_command(TARGET functions (#2489)
will-v-pi May 30, 2025
1ae2f0e
Don't include the picobin end block when sealing (#2492)
will-v-pi May 30, 2025
a9146b6
fix(async_context_threadsafe_background_execute_sync): prevent use-af…
schkovich Jun 3, 2025
d7abd66
Fix typo (#2508)
marek22k Jun 9, 2025
a1faacf
Remove reference to wafer_id (#2512)
will-v-pi Jun 10, 2025
e6d1892
RP2040 and RP2350 have different maximum watchdog delays (#2500)
lurch Jun 12, 2025
be54918
Bazel build implementation, doesn't provide options for the compilati…
NolanBrad Jun 12, 2025
a9851a1
remove unnecessary escaping (#2526)
markhermeling Jun 16, 2025
a7ec8c3
Fix the "type" of SYS_CLK_VREG_VOLTAGE_AUTO_ADJUST_DELAY_US (#2531)
lurch Jun 18, 2025
2871965
Add config check action (#2525)
will-v-pi Jun 18, 2025
7d58f95
Add board definition for Adafruit Feather RP2040 Adalogger (#2524)
b4shful Jun 18, 2025
dddb514
Adafruit Fruit Jam board (#2363)
dhalbert Jun 18, 2025
893a06b
Add UUGear Witty Pi 5 HAT+ board header file (#2518)
uugear Jun 18, 2025
5ddb441
async_context_freertos: Add support for configSUPPORT_STATIC_ALLOCATI…
mbrase Jun 18, 2025
c3c6267
Clean extra output files (#2504)
will-v-pi Jun 18, 2025
24af10a
Use cyw43 macros for bluetooth logging (#2490)
peterharperuk Jun 18, 2025
d45a090
Fix ms/us confusion around watchdog time_remaining functions (#2533)
lurch Jun 19, 2025
a24bc13
Add board header for Waveshare RP2350-USB-A (#2435)
sonodima Jun 19, 2025
b1ca434
async_context_threadsafe_background: fix incorrect mutex assertion in…
schkovich Jun 19, 2025
44527b4
fix compiler warning
kilograham Jun 19, 2025
52ec9ec
downgrade hard_assert to assert
kilograham Jun 19, 2025
7b4b2b7
Add POWMAN_PASSWORD_BITS to pico_bootsel_via_double_reset. (#2532)
Gadgetoid Jun 19, 2025
8fb131a
Fix powman powman_configure_wakeup_state and powman_get_power_state (…
eightycc Jun 20, 2025
6f856ee
Add Board Header Check Action (#2519)
will-v-pi Jun 26, 2025
d7c26e6
add armv8m.main_soft_nofp_unaligned as a supporter clang runtime (for…
kilograham Jun 30, 2025
e5acd29
Added Olimex RP2350-PICO2-XL&XXL boards (#2541)
bog-dan-ro Jul 2, 2025
214c243
Add a "quick start" section for RISC-V to the readme (#2537)
peterharperuk Jul 2, 2025
4ee0972
Use platform/generator agnostic CMake commands (#2539)
will-v-pi Jul 14, 2025
69e0185
Add PR branch check action (#2536)
will-v-pi Jul 14, 2025
b3aed37
Provide an easy way to disable cyw43 logging (#2535)
peterharperuk Jul 14, 2025
a72865b
Allow pio_encode_sideset_opt(0, value) (#2485)
magy00 Jul 14, 2025
19904be
Update makefsdata.py to support content encoding Fixes #2548 (#2549)
rbryson74 Jul 14, 2025
d2cdf6c
add pioasm --version, and print version number in generated files (#2…
kilograham Jul 15, 2025
d70cccd
Add FLASH option to pico_package_uf2_output (#2545)
will-v-pi Jul 15, 2025
c1981f5
Fix Windows CI (#2563)
will-v-pi Jul 16, 2025
e62cd02
Powman fix (#2499)
peterharperuk Jul 16, 2025
c7f37fc
make gpio_acknowledge_irq inline (#2562)
kilograham Jul 16, 2025
8fd7c60
Add WeAct RP2350B Core board support. (#2570)
tjko Jul 17, 2025
820a33a
Add Wi-Fi firmware partition support for Pico 2 W (#1969)
will-v-pi Jul 17, 2025
d32d315
minor tidying of hardware_rcp header; add an `rcp_is_true()` that is …
kilograham Jul 17, 2025
af518de
add missing libraries to test/kitchen_sink and auto-gen includes (#2567)
kilograham Jul 17, 2025
9682896
Gpio to gpout clock handle (#2561)
kilograham Jul 17, 2025
f5e0371
Make spacer sections allocatable (#2515)
will-v-pi Jul 17, 2025
4003a64
Merge style and grammar updates
JeuneseRPi Jul 18, 2025
4242010
Misc cleanup (#2569)
kilograham Jul 18, 2025
175abe7
Clarify pio_gpio_init doxygen (fixes #2387) (#2574)
Wren6991 Jul 18, 2025
dfc26a0
hardware_flash: preserve QSPI pad state over flash access calls. (#2565)
Wren6991 Jul 20, 2025
2e2651f
add default implementation of `_get_entropy()` that returns -1 to avo…
kilograham Jul 22, 2025
2afa251
fix typo "serialzed" -> "serialized" (#2583)
fadhil-riyanto Jul 23, 2025
9b876bb
Fix location of map file on Ninja (#2584)
will-v-pi Jul 23, 2025
f194749
Update and expand docs/weblinks_page.md (#2575)
lurch Jul 23, 2025
bf4906b
Improve error code description for some cyw43 connection methods (#2586)
peterharperuk Jul 23, 2025
58d000f
Improve rom_pick_ab_update_partition docs (#2577)
will-v-pi Jul 23, 2025
c650739
Look for other possible "missing PICO_CONFIG" lines, and make message…
lurch Jul 23, 2025
d011e8a
add a task completion semaphore to guarantee async_context task is fi…
kilograham Jul 23, 2025
b51a993
Improve pico_use_wifi_firmware_partition docs (#2580)
will-v-pi Jul 24, 2025
dad0112
Fix typo: IMAGEDEF → IMAGE_DEF, as it is defined in the datasheet (#2…
vazhnov Jul 24, 2025
59d2b02
add some doxygen to hard_assert (#2582)
kilograham Jul 24, 2025
327586a
Fix minor typos in error header (#2593)
andygpz11 Jul 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .bazelignore

This file was deleted.

4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ common --host_per_file_copt=external/.*@-w

# Produce useful output when the build fails.
common --verbose_failures

# Silence warnings about old bazel_dep pins. Bazel 8 brings along newer ones,
# but we can support Bazel 7 (for now).
common --check_direct_dependencies=off
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.1
8.1.0
27 changes: 27 additions & 0 deletions .github/workflows/check_board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Board Headers

on:
push:
paths:
- 'src/boards/include/boards/**'
- 'tools/check_board_header.py'
- 'tools/check_all_board_headers.sh'
- '.github/workflows/check_board.yml'
pull_request:
paths:
- 'src/boards/include/boards/**'
- 'tools/check_board_header.py'
- 'tools/check_all_board_headers.sh'
- '.github/workflows/check_board.yml'

jobs:
check-board-headers:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check Board Headers
run: |
tools/check_all_board_headers.sh
33 changes: 33 additions & 0 deletions .github/workflows/check_configs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Configs

on:
push:
pull_request:

jobs:
check-configs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check Build Defines
if: always()
run: |
tools/extract_build_defines.py .

- name: Check CMake Configs
if: always()
run: |
tools/extract_cmake_configs.py .

- name: Check CMake Functions
if: always()
run: |
tools/extract_cmake_functions.py .

- name: Check Configs
if: always()
run: |
tools/extract_configs.py .
1 change: 0 additions & 1 deletion .github/workflows/choco_packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
<packages>
<package id="gcc-arm-embedded" version="10.2.1" />
<package id="mingw" version="12.2.0" />
<package id="ninja" version="1.11.1" />
</packages>
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4

- name: Checkout submodules
run: git submodule update --init
run: git submodule update --init --recursive

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Make sure PRs target the develop branch

on:
pull_request_target:

# By default, pull_request_target gets write permissions to the repo - this prevents that
permissions:
pull-requests: write

jobs:
check-branch:
if: github.event.pull_request.base.ref == 'master'
runs-on: ubuntu-latest
steps:
- name: Add comment
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Please do not submit against `master`, use `develop` instead'
})
- name: Throw error
run: |
echo "::error title=wrong-branch::Please do not submit against 'master', use 'develop' instead"
exit 1
13 changes: 10 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "pico-sdk",
version = "2.1.1",
version = "2.1.2-develop",
)

bazel_dep(name = "platforms", version = "0.0.9")
Expand Down Expand Up @@ -106,18 +106,25 @@ new_git_repository(
new_git_repository(
name = "cyw43-driver",
build_file = "//src/rp2_common/pico_cyw43_driver:cyw43-driver.BUILD",
commit = "c1075d4bc440422cf2b2fd12c64a1f53f77660ee", # keep-in-sync-with-submodule: lib/cyw43-driver
commit = "dd7568229f3bf7a37737b9e1ef250c26efe75b23", # keep-in-sync-with-submodule: lib/cyw43-driver
remote = "https://github.com/georgerobotics/cyw43-driver.git",
)

# TODO: Provide lwip as a proper Bazel module.
new_git_repository(
name = "lwip",
build_file = "//src/rp2_common/pico_lwip:lwip.BUILD",
commit = "0a0452b2c39bdd91e252aef045c115f88f6ca773", # keep-in-sync-with-submodule: lib/lwip
commit = "77dcd25a72509eb83f72b033d219b1d40cd8eb95", # keep-in-sync-with-submodule: lib/lwip
remote = "https://github.com/lwip-tcpip/lwip.git",
)

new_git_repository(
name = "mbedtls",
build_file = "//src/rp2_common/pico_mbedtls:mbedtls.BUILD",
commit = "107ea89daaefb9867ea9121002fbbdf926780e98", # keep-in-sync-with-submodule: lib/mbedtls
remote = "https://github.com/Mbed-TLS/mbedtls.git",
)

register_toolchains(
"//bazel/toolchain:linux-aarch64-rp2040",
"//bazel/toolchain:linux-aarch64-rp2350",
Expand Down
32 changes: 26 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,11 @@ instructions for other platforms, and just in general, we recommend you see [Ras
1. Setup a CMake build directory.
For example, if not using an IDE:
```
$ mkdir build
$ cd build
$ cmake ..
```
$ cmake -S . -B build
```
> The cmake -S flag indicates the source directory, and the -B flag tells cmake the name of the output-directory to create. This doesn't have to be named "build", you can call it whatever you want.

When building for a board other than the Raspberry Pi Pico, you should pass `-DPICO_BOARD=board_name` to the `cmake` command above, e.g. `cmake -DPICO_BOARD=pico2 ..` or `cmake -DPICO_BOARD=pico_w ..` to configure the SDK and build options accordingly for that particular board.
When building for a board other than the Raspberry Pi Pico, you should pass `-DPICO_BOARD=board_name` to the `cmake` command above, e.g. `cmake -S . -B build -DPICO_BOARD=pico2` or `cmake -S . -B build -DPICO_BOARD=pico_w` to configure the SDK and build options accordingly for that particular board.

Specifying `PICO_BOARD=<boardname>` sets up various compiler defines (e.g. default pin numbers for UART and other hardware) and in certain
cases also enables the use of additional libraries (e.g. wireless support when building for `PICO_BOARD=pico_w`) which cannot
Expand All @@ -193,11 +192,32 @@ instructions for other platforms, and just in general, we recommend you see [Ras

1. Make your target from the build directory you created.
```sh
$ make hello_world
$ cmake --build build --target hello_world
```
> The directory-name supplied to the `--build` flag needs to match the directory-name that was passed to the `-B` flag in the earlier cmake command.

1. You now have `hello_world.elf` to load via a debugger, or `hello_world.uf2` that can be installed and run on your Raspberry Pi Pico-series device via drag and drop.

# RISC-V support on RP2350

See [Raspberry Pi Pico-series C/C++ SDK](https://rptl.io/pico-c-sdk) for information on setting up a build environment for RISC-V on RP2350.

## RISC-V quick start

The [pico-sdk-tools](https://github.com/raspberrypi/pico-sdk-tools/releases) repository contains some prebuilt versions of the RISC-V compiler.

You can use these to get a working RISC-V compiler on Raspberry Pi OS for example.

```
wget https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-aarch64-lin.tar.gz
sudo mkdir -p /opt/riscv/riscv-toolchain-14
sudo chown $USER /opt/riscv/riscv-toolchain-14
tar xvf riscv-toolchain-14-aarch64-lin.tar.gz -C /opt/riscv/riscv-toolchain-14
```

To use the RISC-V compiler to build code you need to set a couple of environment variables and run cmake from fresh.

```
export PICO_TOOLCHAIN_PATH=/opt/riscv/riscv-toolchain-14/
export PICO_PLATFORM=rp2350-riscv
```
10 changes: 10 additions & 0 deletions REPO.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ignore_directories(
[
# Don't accidentally pick up external CMake deps with Bazel build files.
"cmake-*",
"build",
"build-*",
# Don't treat submodules as part of this project.
"lib",
],
)
30 changes: 30 additions & 0 deletions bazel/config/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ int_flag(
build_setting_default = 0,
)

# PICO_BAZEL_CONFIG: PICO_TINYUSB_CONFIG, [Bazel only] The library that provides TinyUSB config header (e.g. tusb_config.h), default=//src/rp2_common/pico_stdio_usb:tusb_config, group=build
label_flag(
name = "PICO_TINYUSB_CONFIG",
build_setting_default = "//src/rp2_common/pico_stdio_usb:tusb_config",
)

# PICO_BAZEL_CONFIG: PICO_TINYUSB_LIB, [Bazel only] The library that provides TinyUSB, default=@tinyusb//:tinyusb, group=build
label_flag(
name = "PICO_TINYUSB_LIB",
Expand Down Expand Up @@ -288,3 +294,27 @@ label_flag(
name = "PICO_FREERTOS_LIB",
build_setting_default = "//bazel:empty_cc_lib",
)

# PICO_BAZEL_CONFIG: PICO_MBEDTL_CONFIG, [Bazel only] The cc_library that provides mbedtls_config.h, default=//bazel:empty_cc_lib, group=pico_mbedtls
label_flag(
name = "PICO_MBEDTLS_CONFIG",
build_setting_default = "//bazel:empty_cc_lib",
)

# PICO_BAZEL_CONFIG: PICO_COMPILATION_NO_OPT_ARGS, Makes the opt compilation mode a no-op so custom optimization arguments can be injected via the --copt flag instead, type=bool, default=0, group=build
bool_flag(
name = "PICO_COMPILATION_NO_OPT_ARGS",
build_setting_default = False,
)

# PICO_BAZEL_CONFIG: PICO_COMPILATION_NO_DEBUG_ARGS, Makes the debug compilation mode a no-op so custom debug arguments can be injected via the --copt flag instead, type=bool, default=0, group=build
bool_flag(
name = "PICO_COMPILATION_NO_DEBUG_ARGS",
build_setting_default = False,
)

# PICO_BAZEL_CONFIG: PICO_COMPILATION_NO_FASTBUILD_ARGS, Makes the fastbuild compilation mode a no-op so custom fastbuild arguments can be injected via the --copt flag instead, type=bool, default=0, group=build
bool_flag(
name = "PICO_COMPILATION_NO_FASTBUILD_ARGS",
build_setting_default = False,
)
21 changes: 21 additions & 0 deletions bazel/constraint/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,24 @@ label_flag_matches(
flag = "//bazel/config:PICO_FREERTOS_LIB",
value = "//bazel:empty_cc_lib",
)

label_flag_matches(
name = "pico_mbedtls_config_unset",
flag = "//bazel/config:PICO_MBEDTLS_CONFIG",
value = "//bazel:empty_cc_lib",
)

config_setting(
name = "pico_compilation_no_opt_args_set",
flag_values = {"//bazel/config:PICO_COMPILATION_NO_OPT_ARGS": "True"},
)

config_setting(
name = "pico_compilation_no_debug_args_set",
flag_values = {"//bazel/config:PICO_COMPILATION_NO_DEBUG_ARGS": "True"},
)

config_setting(
name = "pico_compilation_no_fastbuild_args_set",
flag_values = {"//bazel/config:PICO_COMPILATION_NO_FASTBUILD_ARGS": "True"},
)
Loading
Loading