mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-03-04 08:24:30 +01:00
[bazel] Run buildifier on Bazel build files (#2825)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
This is an automated change with the following commands:
$ find . -name "BUILD.bazel" -o -name "*.bzl" \
-exec buildifier -lint=fix {} \;
* Add missing `load()` statements for things provided by @rules_cc. This
is required for Bazel >9.
* Sort attributes on build targets.
* Add missing trailing commas where applicable.
This commit is contained in:
parent
a1e9cf05b2
commit
6262b49c74
149 changed files with 272 additions and 77 deletions
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("@rules_python//python:defs.bzl", "py_binary")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
load("@bazel_skylib//rules:write_file.bzl", "write_file")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
|
||||
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
|
||||
|
||||
def _pico_generate_pio_header_impl(ctx):
|
||||
generated_headers = []
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
load("@rules_cc//cc:find_cc_toolchain.bzl", "find_cpp_toolchain", "use_cc_toolchain")
|
||||
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
|
||||
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
|
||||
|
||||
def _pico_btstack_make_gatt_header_impl(ctx):
|
||||
cc_toolchain = find_cpp_toolchain(ctx)
|
||||
|
|
@ -21,7 +23,6 @@ def _pico_btstack_make_gatt_header_impl(ctx):
|
|||
"-I",
|
||||
ctx.file._btstack_hdr.dirname,
|
||||
] + [
|
||||
|
||||
],
|
||||
inputs = [
|
||||
ctx.file.src,
|
||||
|
|
@ -37,7 +38,7 @@ def _pico_btstack_make_gatt_header_impl(ctx):
|
|||
|
||||
return [
|
||||
DefaultInfo(files = depset(direct = [out])),
|
||||
CcInfo(compilation_context = cc_ctx)
|
||||
CcInfo(compilation_context = cc_ctx),
|
||||
]
|
||||
|
||||
pico_btstack_make_gatt_header = rule(
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ cc_args(
|
|||
"-Og",
|
||||
"-g3",
|
||||
],
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
||||
cc_args(
|
||||
|
|
@ -115,7 +115,7 @@ cc_args(
|
|||
"-O2",
|
||||
"-DNDEBUG",
|
||||
],
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
||||
cc_args(
|
||||
|
|
@ -128,7 +128,7 @@ cc_args(
|
|||
"//bazel/constraint:pico_compilation_no_fastbuild_args_set": [],
|
||||
# The conditions default are kept as nothing here, The bazel docs default are -gmlt -Wl,-S.
|
||||
"//conditions:default": [],
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
||||
configurable_toolchain_feature(
|
||||
|
|
@ -163,7 +163,6 @@ configurable_toolchain_feature(
|
|||
linkopts = ["-Wl,-z,max-page-size=4096"],
|
||||
)
|
||||
|
||||
|
||||
cc_feature(
|
||||
name = "dbg",
|
||||
args = [":debug_args"],
|
||||
|
|
@ -203,7 +202,6 @@ _HOST_CPU_CONSTRAINTS = {
|
|||
|
||||
[cc_toolchain(
|
||||
name = "arm_gcc_{}-{}_toolchain_cortex-m".format(host_os, host_cpu),
|
||||
tool_map = "@arm_gcc_{}-{}//:all_tools".format(host_os, host_cpu),
|
||||
args = select({
|
||||
"//bazel/constraint:rp2040": [":cortex-m0"],
|
||||
"//bazel/constraint:rp2350": [":cortex-m33"],
|
||||
|
|
@ -211,22 +209,6 @@ _HOST_CPU_CONSTRAINTS = {
|
|||
}) + [
|
||||
":bazel_no_absolute_paths",
|
||||
],
|
||||
exec_compatible_with = [
|
||||
_HOST_CPU_CONSTRAINTS[host_cpu],
|
||||
_HOST_OS_CONSTRAINTS[host_os],
|
||||
],
|
||||
tags = ["manual"], # Don't try to build this in wildcard builds.
|
||||
known_features = [
|
||||
"@rules_cc//cc/toolchains/args:experimental_replace_legacy_action_config_features",
|
||||
"@pico-sdk//bazel/toolchain:dbg",
|
||||
"@pico-sdk//bazel/toolchain:opt",
|
||||
"@pico-sdk//bazel/toolchain:fastbuild",
|
||||
"@pico-sdk//bazel/toolchain:gc_sections",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_exceptions",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_rtti",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_cxa_atexit",
|
||||
"@pico-sdk//bazel/toolchain:override_max_page_size",
|
||||
],
|
||||
enabled_features = [
|
||||
"@rules_cc//cc/toolchains/args:experimental_replace_legacy_action_config_features",
|
||||
] + select({
|
||||
|
|
@ -245,11 +227,27 @@ _HOST_CPU_CONSTRAINTS = {
|
|||
"//bazel/constraint:pico_use_default_max_page_size_enabled": [],
|
||||
"//conditions:default": [":override_max_page_size"],
|
||||
}),
|
||||
exec_compatible_with = [
|
||||
_HOST_CPU_CONSTRAINTS[host_cpu],
|
||||
_HOST_OS_CONSTRAINTS[host_os],
|
||||
],
|
||||
known_features = [
|
||||
"@rules_cc//cc/toolchains/args:experimental_replace_legacy_action_config_features",
|
||||
"@pico-sdk//bazel/toolchain:dbg",
|
||||
"@pico-sdk//bazel/toolchain:opt",
|
||||
"@pico-sdk//bazel/toolchain:fastbuild",
|
||||
"@pico-sdk//bazel/toolchain:gc_sections",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_exceptions",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_rtti",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_cxa_atexit",
|
||||
"@pico-sdk//bazel/toolchain:override_max_page_size",
|
||||
],
|
||||
tags = ["manual"], # Don't try to build this in wildcard builds.
|
||||
tool_map = "@arm_gcc_{}-{}//:all_tools".format(host_os, host_cpu),
|
||||
) for host_os, host_cpu in HOSTS]
|
||||
|
||||
[cc_toolchain(
|
||||
name = "clang_{}-{}_toolchain_cortex-m".format(host_os, host_cpu),
|
||||
tool_map = "@clang_{}-{}//:all_tools".format(host_os, host_cpu),
|
||||
args = select({
|
||||
"//bazel/constraint:rp2040": [
|
||||
":armv6m-none-eabi",
|
||||
|
|
@ -264,22 +262,6 @@ _HOST_CPU_CONSTRAINTS = {
|
|||
":bazel_no_absolute_paths",
|
||||
":llvm-libc_args",
|
||||
],
|
||||
exec_compatible_with = [
|
||||
_HOST_CPU_CONSTRAINTS[host_cpu],
|
||||
_HOST_OS_CONSTRAINTS[host_os],
|
||||
],
|
||||
tags = ["manual"], # Don't try to build this in wildcard builds.
|
||||
known_features = [
|
||||
"@rules_cc//cc/toolchains/args:experimental_replace_legacy_action_config_features",
|
||||
"@pico-sdk//bazel/toolchain:dbg",
|
||||
"@pico-sdk//bazel/toolchain:opt",
|
||||
"@pico-sdk//bazel/toolchain:fastbuild",
|
||||
"@pico-sdk//bazel/toolchain:gc_sections",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_exceptions",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_rtti",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_cxa_atexit",
|
||||
"@pico-sdk//bazel/toolchain:override_max_page_size",
|
||||
],
|
||||
enabled_features = [
|
||||
"@rules_cc//cc/toolchains/args:experimental_replace_legacy_action_config_features",
|
||||
] + select({
|
||||
|
|
@ -298,6 +280,23 @@ _HOST_CPU_CONSTRAINTS = {
|
|||
"//bazel/constraint:pico_use_default_max_page_size_enabled": [],
|
||||
"//conditions:default": [":override_max_page_size"],
|
||||
}),
|
||||
exec_compatible_with = [
|
||||
_HOST_CPU_CONSTRAINTS[host_cpu],
|
||||
_HOST_OS_CONSTRAINTS[host_os],
|
||||
],
|
||||
known_features = [
|
||||
"@rules_cc//cc/toolchains/args:experimental_replace_legacy_action_config_features",
|
||||
"@pico-sdk//bazel/toolchain:dbg",
|
||||
"@pico-sdk//bazel/toolchain:opt",
|
||||
"@pico-sdk//bazel/toolchain:fastbuild",
|
||||
"@pico-sdk//bazel/toolchain:gc_sections",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_exceptions",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_rtti",
|
||||
"@pico-sdk//bazel/toolchain:cxx_no_cxa_atexit",
|
||||
"@pico-sdk//bazel/toolchain:override_max_page_size",
|
||||
],
|
||||
tags = ["manual"], # Don't try to build this in wildcard builds.
|
||||
tool_map = "@clang_{}-{}//:all_tools".format(host_os, host_cpu),
|
||||
) for host_os, host_cpu in HOSTS]
|
||||
|
||||
[toolchain(
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ load("@rules_cc//cc/toolchains:args_list.bzl", "cc_args_list")
|
|||
load("@rules_cc//cc/toolchains:feature.bzl", "cc_feature")
|
||||
|
||||
def configurable_toolchain_feature(name, copts = [], cxxopts = [], linkopts = []):
|
||||
|
||||
all_args = []
|
||||
|
||||
if copts:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "OBJ_COPY_ACTION_NAME")
|
||||
load("@rules_cc//cc:find_cc_toolchain.bzl", "find_cpp_toolchain", "use_cc_toolchain")
|
||||
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
|
||||
|
||||
def _objcopy_to_bin_impl(ctx):
|
||||
cc_toolchain = find_cpp_toolchain(ctx)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
"""A wrapper that enables a `config_setting` matcher for label_flag flags."""
|
||||
|
||||
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
|
||||
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain")
|
||||
|
||||
def _match_label_flag_impl(ctx):
|
||||
matches = str(ctx.attr.expected_value.label) == str(ctx.attr.flag.label)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
|
||||
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
|
||||
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
|
||||
|
||||
def _pico_sdk_define_impl(ctx):
|
||||
val = ctx.attr.from_flag[BuildSettingInfo].value
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ rp2040_bootloader_binary = declare_transtion(
|
|||
"_allowlist_function_transition": attr.label(
|
||||
default = "@bazel_tools//tools/allowlists/function_transition_allowlist",
|
||||
),
|
||||
"_link_extra_libs": attr.label(default = "//bazel:empty_cc_lib"),
|
||||
"_link_extra_libs": attr.label(default = "//bazel:empty_cc_lib"),
|
||||
},
|
||||
flag_overrides = {
|
||||
# We don't want --custom_malloc to ever apply to the bootloader, so
|
||||
|
|
@ -104,7 +104,7 @@ rp2040_bootloader_binary = declare_transtion(
|
|||
# binary via `link_extra_libs`, so we must drop these deps when
|
||||
# building the bootloader binaries themselves in order to avoid a
|
||||
# circular dependency.
|
||||
"@bazel_tools//tools/cpp:link_extra_libs": "_link_extra_libs",
|
||||
"@bazel_tools//tools/cpp:link_extra_libs": "_link_extra_libs",
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "pico_board_config")
|
||||
load("//bazel/util:multiple_choice_flag.bzl", "declare_flag_choices", "flag_choice")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# This needs to remain compatible with the host build since it's used by
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel/util:sdk_define.bzl", "pico_sdk_define")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# This exists to break dependency cycles between
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# Use //host/pico_stdlib or //rp2_common/pico_stdlib to get the
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
load("@pico-sdk//bazel:defs.bzl", "incompatible_with_config")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
load("@pico-sdk//bazel:defs.bzl", "incompatible_with_config")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
load("@pico-sdk//bazel:defs.bzl", "incompatible_with_config")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# This is currently unused in Bazel.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
_DEFINES = [
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
@ -10,4 +12,3 @@ cc_library(
|
|||
"//src/host/hardware_gpio",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
|
||||
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
|
||||
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("@rules_python//python:defs.bzl", "py_binary")
|
||||
load("//bazel/toolchain:objcopy.bzl", "objcopy_to_bin")
|
||||
load("//bazel/util:multiple_choice_flag.bzl", "declare_flag_choices", "flag_choice")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# Always include these libraries through //src/rp2_common:*!
|
||||
# This ensures that you'll get the right headers for the MCU you're targeting.
|
||||
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//src/rp2040:__subpackages__",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# Always include these libraries through //src/rp2_common:*!
|
||||
# This ensures that you'll get the right headers for the MCU you're targeting.
|
||||
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//src/rp2040:__subpackages__",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//src/rp2040:__subpackages__",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
|
||||
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
|
||||
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("@rules_python//python:defs.bzl", "py_binary")
|
||||
load("//bazel/toolchain:objcopy.bzl", "objcopy_to_bin")
|
||||
load("//bazel/util:multiple_choice_flag.bzl", "declare_flag_choices", "flag_choice")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# Always include these libraries through //src/rp2_common:*!
|
||||
# This ensures that you'll get the right headers for the MCU you're targeting.
|
||||
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//src/rp2350:__subpackages__",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# Always include these libraries through //src/rp2_common:*!
|
||||
# This ensures that you'll get the right headers for the MCU you're targeting.
|
||||
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//src/rp2350:__subpackages__",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//src/rp2350:__subpackages__",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -8,8 +9,8 @@ cc_library(
|
|||
hdrs = ["include/hardware/boot_lock.h"],
|
||||
includes = ["include"],
|
||||
tags = ["manual"],
|
||||
deps = ["//src:pico_platform_internal"],
|
||||
visibility = ["//src/rp2_common/pico_bootrom:__pkg__"],
|
||||
deps = ["//src:pico_platform_internal"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -11,8 +12,8 @@ cc_library(
|
|||
target_compatible_with = compatible_with_rp2(),
|
||||
deps = [
|
||||
"//src/rp2_common:hardware_structs",
|
||||
"//src/rp2_common/hardware_xip_cache",
|
||||
"//src/rp2_common:pico_platform",
|
||||
"//src/rp2_common/hardware_xip_cache",
|
||||
"//src/rp2_common/pico_bootrom",
|
||||
"//src/rp2_common/pico_multicore",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
load("//bazel/util:sdk_define.bzl", "pico_sdk_define")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -12,8 +13,8 @@ cc_library(
|
|||
includes = ["include"],
|
||||
target_compatible_with = compatible_with_rp2(),
|
||||
deps = [
|
||||
"//src/common/pico_util",
|
||||
"//src/common/pico_time",
|
||||
"//src/common/pico_util",
|
||||
"//src/rp2_common:hardware_regs",
|
||||
"//src/rp2_common:pico_platform",
|
||||
"//src/rp2_common/hardware_irq",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2", "incompatible_with_config")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -17,8 +18,8 @@ cc_library(
|
|||
deps = [
|
||||
"//src/rp2_common/boot_bootrom_headers",
|
||||
"//src/rp2_common/hardware_boot_lock:hardware_boot_lock_headers",
|
||||
"//src/rp2_common/pico_flash:pico_flash_headers",
|
||||
"//src/rp2_common/hardware_rcp:hardware_rcp_headers",
|
||||
"//src/rp2_common/pico_flash:pico_flash_headers",
|
||||
] + select({
|
||||
"//bazel/constraint:host": ["//src/host/hardware_sync"],
|
||||
"//conditions:default": ["//src/rp2_common/hardware_sync"],
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_pico_w", "incompatible_with_config")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -11,6 +12,7 @@ package(default_visibility = ["//visibility:public"])
|
|||
# --@pico-sdk//bazel/constraint:PICO_BT_ENABLE_MESH
|
||||
cc_library(
|
||||
name = "pico_btstack",
|
||||
target_compatible_with = incompatible_with_config("//bazel/constraint:pico_btstack_config_unset"),
|
||||
deps = ["pico_btstack_base"] + select({
|
||||
"//bazel/constraint:pico_bt_enable_ble_enabled": [":pico_btstack_ble"],
|
||||
"//conditions:default": [],
|
||||
|
|
@ -21,7 +23,6 @@ cc_library(
|
|||
"//bazel/constraint:pico_bt_enable_mesh_enabled": [":pico_btstack_mesh"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
target_compatible_with = incompatible_with_config("//bazel/constraint:pico_btstack_config_unset"),
|
||||
)
|
||||
|
||||
# Prefer these aliases to directly referencing @btstack, as it's possible that
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files(
|
||||
|
|
@ -6,7 +8,7 @@ exports_files(
|
|||
"memmap_copy_to_ram.ld",
|
||||
"memmap_default.ld",
|
||||
"memmap_no_flash.ld",
|
||||
]
|
||||
],
|
||||
)
|
||||
|
||||
# It's possible to set linker scripts globally or on a per-binary basis.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files(
|
||||
|
|
@ -5,7 +7,7 @@ exports_files(
|
|||
"memmap_copy_to_ram.ld",
|
||||
"memmap_default.ld",
|
||||
"memmap_no_flash.ld",
|
||||
]
|
||||
],
|
||||
)
|
||||
|
||||
# It's possible to set linker scripts globally or on a per-binary basis.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_rp2")
|
||||
load("//bazel/util:sdk_define.bzl", "pico_sdk_define")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_pico_w", "incompatible_with_config")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -7,7 +8,7 @@ alias(
|
|||
actual = select({
|
||||
"//bazel/constraint:pico_lwip_config_unset": ":select_no_lwip",
|
||||
"//conditions:default": ":select_lwip",
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
||||
alias(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//bazel:defs.bzl", "compatible_with_pico_w", "pico_generate_pio_header")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
@ -40,7 +41,7 @@ cc_library(
|
|||
] + select({
|
||||
"//bazel/constraint:pico_btstack_config_unset": [],
|
||||
"//conditions:default": [
|
||||
"//src/rp2_common/pico_btstack:pico_btstack",
|
||||
"//src/rp2_common/pico_btstack",
|
||||
],
|
||||
}),
|
||||
alwayslink = True,
|
||||
|
|
@ -51,8 +52,8 @@ cc_library(
|
|||
srcs = select({
|
||||
"//bazel/constraint:pico_btstack_config_unset": [],
|
||||
"//conditions:default": [
|
||||
"btstack_cyw43.c",
|
||||
"btstack_chipset_cyw43.c",
|
||||
"btstack_cyw43.c",
|
||||
"btstack_hci_transport_cyw43.c",
|
||||
],
|
||||
}),
|
||||
|
|
@ -70,10 +71,10 @@ cc_library(
|
|||
"//bazel/constraint:pico_btstack_config_unset": [],
|
||||
"//conditions:default": [
|
||||
"//bazel/config:PICO_BTSTACK_CONFIG",
|
||||
"//src/rp2_common/pico_cyw43_driver/cybt_shared_bus:cybt_shared_bus_driver",
|
||||
"//src/rp2_common/pico_btstack",
|
||||
"//src/rp2_common/pico_btstack:btstack_run_loop_async_context",
|
||||
"//src/rp2_common/pico_btstack:pico_btstack",
|
||||
"//src/rp2_common/pico_btstack:pico_btstack_flash_bank",
|
||||
"//src/rp2_common/pico_cyw43_driver/cybt_shared_bus:cybt_shared_bus_driver",
|
||||
],
|
||||
}),
|
||||
alwayslink = True,
|
||||
|
|
@ -89,7 +90,7 @@ pico_generate_pio_header(
|
|||
filegroup(
|
||||
name = "pico_use_partition_firmware",
|
||||
srcs = [
|
||||
"wifi_firmware.S",
|
||||
"include/cyw43_partition_firmware.h",
|
||||
]
|
||||
"wifi_firmware.S",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue