|
| 1 | +module(name = "pico-sdk", version = "1.6.0-rc1") |
| 2 | + |
| 3 | +bazel_dep(name = "platforms", version = "0.0.8") |
| 4 | + |
| 5 | +bazel_dep(name = "bazel_skylib", version = "1.6.1") |
| 6 | + |
| 7 | +# Note: rules_cc is special-cased repository; a dependency on rules_cc in a |
| 8 | +# module will not ensure that the root Bazel module has that same version of |
| 9 | +# rules_cc. For that reason, this primarily acts as a FYI. You'll still need |
| 10 | +# to explicitly list this dependency in your own project's MODULE.bazel file. |
| 11 | +bazel_dep(name = "rules_cc", version = "0.0.9") |
| 12 | + |
| 13 | +# rules_cc v0.0.10 is not yet cut, so manually pull in the desired version. |
| 14 | +# This does not apply to dependent projects, so it needs to be copied to your |
| 15 | +# project's MODULE.bazel too. |
| 16 | +archive_override( |
| 17 | + module_name = "rules_cc", |
| 18 | + urls = "https://github.com/bazelbuild/rules_cc/archive/1acf5213b6170f1f0133e273cb85ede0e732048f.zip", |
| 19 | + strip_prefix = "rules_cc-1acf5213b6170f1f0133e273cb85ede0e732048f", |
| 20 | + integrity = "sha256-NddP6xi6LzsIHT8bMSVJ2NtoURbN+l3xpjvmIgB6aSg=", |
| 21 | +) |
| 22 | + |
| 23 | +http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 24 | + |
| 25 | +http_archive( |
| 26 | + name = "arm_gcc_linux-x86_64", |
| 27 | + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz", |
| 28 | + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi", |
| 29 | + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", |
| 30 | + sha256 = "6cd1bbc1d9ae57312bcd169ae283153a9572bd6a8e4eeae2fedfbc33b115fdbb", |
| 31 | +) |
| 32 | + |
| 33 | +http_archive( |
| 34 | + name = "arm_gcc_win-x86_64", |
| 35 | + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip", |
| 36 | + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi", |
| 37 | + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", |
| 38 | + sha256 = "51d933f00578aa28016c5e3c84f94403274ea7915539f8e56c13e2196437d18f", |
| 39 | +) |
| 40 | + |
| 41 | +http_archive( |
| 42 | + name = "arm_gcc_mac-x86_64", |
| 43 | + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz", |
| 44 | + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-darwin-x86_64-arm-none-eabi", |
| 45 | + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", |
| 46 | + sha256 = "075faa4f3e8eb45e59144858202351a28706f54a6ec17eedd88c9fb9412372cc", |
| 47 | +) |
| 48 | + |
| 49 | +http_archive( |
| 50 | + name = "arm_gcc_mac-aarch64", |
| 51 | + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz", |
| 52 | + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-darwin-arm64-arm-none-eabi", |
| 53 | + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", |
| 54 | + sha256 = "39c44f8af42695b7b871df42e346c09fee670ea8dfc11f17083e296ea2b0d279", |
| 55 | +) |
| 56 | + |
| 57 | +# TODO: Provide tinyusb as a proper Bazel module. |
| 58 | +http_archive( |
| 59 | + name = "tinyusb", |
| 60 | + url = "https://github.com/hathach/tinyusb/archive/86c416d4c0fb38432460b3e11b08b9de76941bf5.zip", |
| 61 | + strip_prefix = "tinyusb-86c416d4c0fb38432460b3e11b08b9de76941bf5", |
| 62 | + build_file = "//src/rp2_common/tinyusb:tinyusb.BUILD", |
| 63 | + sha256 = "ac57109bba00d26ffa33312d5f334990ec9a9a4d82bf890ed8b825b4610d1da2", |
| 64 | +) |
| 65 | + |
| 66 | +# TODO: Provide btstack as a proper Bazel module. |
| 67 | +http_archive( |
| 68 | + name = "btstack", |
| 69 | + url = "https://github.com/bluekitchen/btstack/archive/72ef1732c954d938091467961e41f4aa9b976b34.zip", |
| 70 | + strip_prefix = "btstack-72ef1732c954d938091467961e41f4aa9b976b34", |
| 71 | + build_file = "//src/rp2_common/pico_btstack:btstack.BUILD", |
| 72 | + sha256 = "f45d72b5d404dd2f8e311287de6f2ba3561fc8ae956737eeb611b277aadc2391", |
| 73 | +) |
| 74 | + |
| 75 | +# TODO: Provide btstack as a proper Bazel module. |
| 76 | +http_archive( |
| 77 | + name = "cyw43-driver", |
| 78 | + url = "https://github.com/georgerobotics/cyw43-driver/archive/8ef38a6d32c54f850bff8f189bdca19ded33792a.zip", |
| 79 | + strip_prefix = "cyw43-driver-8ef38a6d32c54f850bff8f189bdca19ded33792a", |
| 80 | + build_file = "//src/rp2_common/pico_cyw43_driver:cyw43-driver.BUILD", |
| 81 | + sha256 = "0b44a19ea58537ee954357606cde5ed20c3a42be77adfebb07b7c0e4740f6228", |
| 82 | +) |
| 83 | + |
| 84 | +# TODO: Provide lwip as a proper Bazel module. |
| 85 | +http_archive( |
| 86 | + name = "lwip", |
| 87 | + url = "https://github.com/lwip-tcpip/lwip/archive/239918ccc173cb2c2a62f41a40fd893f57faf1d6.zip", |
| 88 | + strip_prefix = "lwip-239918ccc173cb2c2a62f41a40fd893f57faf1d6", |
| 89 | + build_file = "//src/rp2_common/pico_lwip:lwip.BUILD", |
| 90 | + sha256 = "7ee9e02f2719c0422377e1fcce5a21716ca2e2e855cca56695f9ef7cb020e5dd", |
| 91 | +) |
| 92 | + |
| 93 | +register_toolchains( |
| 94 | + "//bazel/toolchain:arm_gcc_linux-x86_64", |
| 95 | + "//bazel/toolchain:arm_gcc_win-x86_64", |
| 96 | + "//bazel/toolchain:arm_gcc_mac-x86_64", |
| 97 | + "//bazel/toolchain:arm_gcc_mac-aarch64", |
| 98 | +) |
0 commit comments