blob: f94a1e991b6da67af420399ed3a9d81e06c9223b [file] [log] [blame]
Lorenz Brun80deba52022-02-24 17:07:13 +01001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3def intel_ucode_external(name, version):
4 sums = {
5 "20220207": "532527bd17f3ea6664452b536699818a3bf896e4ace689a43a73624711b7c921",
Lorenz Brun07319372023-03-27 17:56:41 +02006 "20230214": "3a3cfe2c7642339af9f4c2ad69f5f367dfa4cd1f7f9fd4124dedefb7803591d4",
Lorenz Brun009b1262023-08-09 13:40:11 +02007 "20230808": "fe49bb719441f20335ed6004090ab38cdc374134d36d4f5d30be7ed93b820313",
Lorenz Brun087152b2023-12-21 16:04:24 +01008 "20231114": "cee26f311f7e2c039dd48cd30f995183bde9b98fb4c3039800e2ddaf5c090e55",
Lorenz Brun80deba52022-02-24 17:07:13 +01009 }
10 all_content = """
11# Anything other than family 6 is not interesting to us
12filegroup(name = "fam6h", srcs = glob(["intel-ucode/06-*"]), visibility = ["//visibility:public"])
13 """
14
15 http_archive(
16 name = name,
17 build_file_content = all_content,
18 sha256 = sums[version],
19 strip_prefix = "Intel-Linux-Processor-Microcode-Data-Files-microcode-" + version,
20 urls = ["https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-%s.tar.gz" % version],
21 )