build: Fixes to restore compatibility with Bazel 9

- Add a missing load of py_binary from rules_python.
- Add missing loads of cc_library from rules_cc in third_party files.
- Inject a missing load of rules_cc in hal_rpi_pico.
- Use .realpath to locate files more consistently with Bazel 9
- Register native_sim as an execution platform for ztests.
- Disable a warning including the C header file
  "zephyr/arch/riscv/csr.h" from C++ code, where a "register" variable
  was used and no longer allowed in C++17 or newer.

Test: presubmit
Bug: 491945168
Change-Id: I4c1bd047c4ec46d1e9e75335eb1785c6f4f73d94
Reviewed-on: https://pigweed-review.googlesource.com/c/zephyr/zephyr-bazel/+/430736
7 files changed
tree: 507dc71a418714e1a5f76d7228845cfbab468c14
  1. .vscode/
  2. bazel/
  3. bazel_overlay/
  4. build_config/
  5. designs/
  6. docs/
  7. examples/
  8. modules/
  9. pw_tests/
  10. scripts/
  11. tests/
  12. third_party/
  13. toolchain/
  14. tools/
  15. ztests/
  16. .bazelignore
  17. .bazelrc
  18. .bazelversion
  19. .gitignore
  20. AUTHORS
  21. BUILD.bazel
  22. common.bazelrc
  23. CONTRIBUTING.md
  24. generate_diff.py
  25. LICENSE
  26. MODULE.bazel
  27. MODULE.bazel.lock
  28. naming.bzl
  29. OWNERS
  30. pigweed_dep.MODULE.bazel
  31. pw
  32. README.md
  33. setup.bzl
  34. workflows.json
  35. WORKSPACE
README.md

Zephyr-Bazel

The way this repository works is by overlaying itself on top of Zephyr to provide Bazel build capability to the underlying Zephyr repository.

Getting Started

User Guide

For more information on the architecture and internal design of Zephyr-Bazel, see the design documents in the designs folder of this repository: