Skip to content

Commit

Permalink
Minor docs clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomontanez committed Jun 12, 2024
1 parent 048e206 commit 0c436ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions bazel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ $ bazelisk build --platforms=//bazel/platform:rp2040 --@pico-sdk//bazel/config:P

If you have a bespoke board definition, you can configure the Pico SDK to use it
by pointing `--@pico-sdk//bazel/config:PICO_CONFIG_HEADER` to a `cc_library`
that defines `PICO_BOARD` and `PICO_CONFIG_HEADER`, also providing any necessary
`includes`.
that defines `PICO_BOARD` and either a `PICO_CONFIG_HEADER` define or a
`pico/config_autogen.h` header. Make sure any required `includes`, `hdrs`, and
`deps` are also provided.

## Generating UF2 firmware images
Creation of UF2 images can be done as explicit build steps on a per-binary
Expand Down
4 changes: 2 additions & 2 deletions bazel/config/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ label_flag(
build_setting_default = "//bazel:no_extra_headers",
)

# PICO_BAZEL_CONFIG: PICO_CONFIG_PLATFORM_HEADER, [Bazel only] The cc_library that provides "pico_config_platform_headers.h", default=//src/common/pico_base:default_platform_headers, group=pico_base
# PICO_BAZEL_CONFIG: PICO_CONFIG_PLATFORM_HEADER, [Bazel only] The cc_library that provides "pico_config_platform_headers.h" and defines PICO_BOARD, default=//src/common/pico_base:default_platform_headers, group=pico_base
label_flag(
name = "PICO_CONFIG_PLATFORM_HEADER",
build_setting_default = "//src/boards:default",
)

# PICO_BAZEL_CONFIG: PICO_CONFIG_HEADER, [Bazel only] The cc_library that defines PICO_BOARD, PICO_CONFIG_HEADER, and other SDK critical defines (overrides PICO_BOARD setting), default=//bazel:generate_config_header, group=pico_base
# PICO_BAZEL_CONFIG: PICO_CONFIG_HEADER, [Bazel only] The cc_library that defines PICO_CONFIG_HEADER or pico/config_autogen.h and other SDK critical defines (overrides PICO_BOARD setting), default=//bazel:generate_config_header, group=pico_base
label_flag(
name = "PICO_CONFIG_HEADER",
build_setting_default = "//bazel:generate_config_header",
Expand Down
1 change: 0 additions & 1 deletion src/common/pico_base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ cc_library(
deps = [
":common_sdk_defines",
":version",
"//bazel:generate_config_header",
"//bazel/config:PICO_CONFIG_HEADER",
],
)
Expand Down

0 comments on commit 0c436ba

Please sign in to comment.