treewide: migrate more to bzlmod

This does migrate nearly everything to bzlmod and away from the "old"
WORKSPACE system. We do have to use some workarounds and there is no
good way to get the path to a repository. This definitively requires
some more love in future CLs but this should cover the basics. See
monogon-dev/monogon#343 for more information.

Change-Id: I0e188d8708b66fcdbdf0adc9143c93160e3395ae
Reviewed-on: https://review.monogon.dev/c/monogon/+/3357
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/third_party/intel_ucode/BUILD.repo b/third_party/intel_ucode/BUILD.repo
new file mode 100644
index 0000000..351b565
--- /dev/null
+++ b/third_party/intel_ucode/BUILD.repo
@@ -0,0 +1,2 @@
+# Anything other than family 6 is not interesting to us
+filegroup(name = "fam6h", srcs = glob(["intel-ucode/06-*"]), visibility = ["//visibility:public"])
\ No newline at end of file
diff --git a/third_party/intel_ucode/external.bzl b/third_party/intel_ucode/external.bzl
deleted file mode 100644
index f94a1e9..0000000
--- a/third_party/intel_ucode/external.bzl
+++ /dev/null
@@ -1,21 +0,0 @@
-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
-
-def intel_ucode_external(name, version):
-    sums = {
-        "20220207": "532527bd17f3ea6664452b536699818a3bf896e4ace689a43a73624711b7c921",
-        "20230214": "3a3cfe2c7642339af9f4c2ad69f5f367dfa4cd1f7f9fd4124dedefb7803591d4",
-        "20230808": "fe49bb719441f20335ed6004090ab38cdc374134d36d4f5d30be7ed93b820313",
-        "20231114": "cee26f311f7e2c039dd48cd30f995183bde9b98fb4c3039800e2ddaf5c090e55",
-    }
-    all_content = """
-# Anything other than family 6 is not interesting to us
-filegroup(name = "fam6h", srcs = glob(["intel-ucode/06-*"]), visibility = ["//visibility:public"])
-    """
-
-    http_archive(
-        name = name,
-        build_file_content = all_content,
-        sha256 = sums[version],
-        strip_prefix = "Intel-Linux-Processor-Microcode-Data-Files-microcode-" + version,
-        urls = ["https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-%s.tar.gz" % version],
-    )