m/n/b/fwprune: process links from metadata file
The linux-firmware repository has a metadata file called WHENCE which
contains mostly license and origin information, but critically it also
contains data for symbolic links which are not materialized inside the
repo itself. So we need to parse that file and create these symlinks
ourselves.
Change-Id: I9e6973e60d6f06e844dc879f658c9dd1913c432d
Reviewed-on: https://review.monogon.dev/c/monogon/+/555
Reviewed-by: Mateusz Zalega <mateusz@monogon.tech>
diff --git a/third_party/linux-firmware/external.bzl b/third_party/linux-firmware/external.bzl
index ddd7de3..44018c0 100644
--- a/third_party/linux-firmware/external.bzl
+++ b/third_party/linux-firmware/external.bzl
@@ -6,6 +6,7 @@
}
all_content = """
filegroup(name = "all_files", srcs = glob(["**"]), visibility = ["//visibility:public"])
+filegroup(name = "metadata", srcs = ["WHENCE"], visibility = ["//visibility:public"])
filegroup(name = "amd_ucode", srcs = glob(["amd-ucode/*.bin"]), visibility = ["//visibility:public"])
"""