third_party: expose firmware and ucode targets
That way we don't have to redefine it with every target that does
any kind of takeover.
Change-Id: I816b42a87c755da7b42944b2768f71b53d8d77f3
Reviewed-on: https://review.monogon.dev/c/monogon/+/2929
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/third_party/BUILD.bazel b/third_party/BUILD.bazel
index e69de29..7d507bc 100644
--- a/third_party/BUILD.bazel
+++ b/third_party/BUILD.bazel
@@ -0,0 +1,20 @@
+load("//metropolis/node/build/fwprune:def.bzl", "fsspec_linux_firmware")
+
+fsspec_linux_firmware(
+ name = "firmware",
+ firmware_files = ["@linux-firmware//:all_files"],
+ kernel = "//third_party/linux",
+ metadata = "@linux-firmware//:metadata",
+ visibility = ["//visibility:public"],
+)
+
+load("//metropolis/node/build/mkucode:def.bzl", "cpio_ucode")
+
+cpio_ucode(
+ name = "ucode",
+ ucode = {
+ "@linux-firmware//:amd_ucode": "AuthenticAMD",
+ "@intel_ucode//:fam6h": "GenuineIntel",
+ },
+ visibility = ["//visibility:public"],
+)