blob: 6c596854fa3f2bae8b2afed205d014e39e618790 [file] [log] [blame]
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +02001# third_party external repositories
2
Tim Windelschmidtf5c45102025-02-08 22:30:58 +00003github_repository = use_repo_rule("//build/github_repository:def.bzl", "github_repository")
4
5github_repository(
6 name = "edk2",
7 build_file = "//third_party/edk2:edk2.bzl",
8 integrity = "sha256-vid2bYN5OEJvcIstC5iQKZqwH1/jnXFM8FN3mjDU20k=",
9 owner = "tianocore",
10 patch_args = ["-p1"],
11 patches = [
12 "//third_party/edk2/patches:disable-werror.patch",
13 "//third_party/edk2/patches:remove-brotli-build.patch",
14 ],
15 ref = "b24306f15daa2ff8510b06702114724b33895d3c", # stable202202
16 repo = "edk2",
17 submodules = {
18 "CryptoPkg/Library/OpensslLib/openssl": "sha256-WoyWOXrAhTcXJRNpcEZ7y+hwrCXWHIcJA2N1NxoORsY=",
19 "ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3": "sha256-+q6ImBTqaikvfKA9mzbmx+lbqypkd3gEiDzIIrjUh1c=",
20 "UnitTestFrameworkPkg/Library/CmockaLib/cmocka": "sha256-Wc1LgauvrjXZSsXZHPSuWwUSLmiHE81ttR5eTO9HHY8=",
21 "MdeModulePkg/Universal/RegularExpressionDxe/oniguruma": "sha256-7ql3OA67GHHV3jjE9/FUQu5pDJC995BZDZMKa780fyg=",
22 "MdeModulePkg/Library/BrotliCustomDecompressLib/brotli": "sha256-bWyszgUIa33r51EnQV/5w2YYSfVk/i9fOwOD1Iqk7Xc=",
23 "BaseTools/Source/C/BrotliCompress/brotli": "sha256-bWyszgUIa33r51EnQV/5w2YYSfVk/i9fOwOD1Iqk7Xc=",
24 "RedfishPkg/Library/JsonLib/jansson": "sha256-55NcDZHW0i9t7nEKJrI+Io7MT+jvfo91ZVjDWZ9ow7Q=",
25 },
26)
27
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020028git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
Tim Windelschmidt6b1b79a2024-08-27 00:04:18 +020029
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020030http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Tim Windelschmidt6b1b79a2024-08-27 00:04:18 +020031
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020032http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
33
34# Used by tests in cloud/takeover
35http_file(
36 name = "debian_11_cloudimage",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020037 integrity = "sha256-FMruxoujEpoRWptXOW0I3AlzzJ9WnOBJIy19FddorUE=",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020038 urls = [
39 "https://cloud.debian.org/images/cloud/bullseye/20230124-1270/debian-11-genericcloud-amd64-20230124-1270.qcow2",
40 ],
41)
42
43# Used to include staticcheck as nogo analyzer
44http_archive(
45 name = "com_github_sluongng_nogo_analyzer",
Tim Windelschmidt677de972024-09-25 05:30:04 +020046 integrity = "sha256-Dca16GCU0IHgW80MPkH8J1ojmMZOVFN2FmE5QSGB8VA=",
47 strip_prefix = "nogo-analyzer-0.0.3",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020048 urls = [
Tim Windelschmidt677de972024-09-25 05:30:04 +020049 "https://github.com/sluongng/nogo-analyzer/archive/refs/tags/v0.0.3.tar.gz",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020050 ],
51)
52
Tim Windelschmidt492434a2024-10-22 14:29:55 +020053# Used in swtpm
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020054git_repository(
55 name = "boringssl",
56 commit = "d7278cebad5b8eda0901246f2215344cffece4f4",
57 remote = "https://boringssl.googlesource.com/boringssl",
58)
59
60# CockroachDB binary used for tests.
61#
62# WARNING: Not distributed under an OSI certified license. Must only be used in
63# tests, not be redistributed!
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020064COCKROACH_VERSION = "22.1.6"
65
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020066http_archive(
67 name = "cockroach",
Tim Windelschmidte4895292025-02-04 03:10:39 +010068 build_file = "//third_party/cockroach:cockroach.bzl",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020069 integrity = "sha256-CCHP9XcEAPuUyLbCqzONlvQRT78rMga8im3PYvnA9Oo=",
70 strip_prefix = "cockroach-v%s.linux-amd64" % COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020071 urls = [
72 # TODO: select() to pick other host architectures.
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020073 "https://binaries.cockroachdb.com/cockroach-v%s.linux-amd64.tgz" % COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020074 ],
75)
76
77# CockroachDB repository used for linter passes.
78http_archive(
79 name = "com_github_cockroachdb_cockroach",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020080 integrity = "sha256-bDVo7yRM5rh0aU7u7Lg+1PXV3/bPA3yVLs3naCimxQI=",
81 strip_prefix = "cockroach-" + COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020082 urls = [
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020083 "https://github.com/cockroachdb/cockroach/archive/v%s.tar.gz" % COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020084 ],
85)
86
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020087# Derived from Mozilla NSS, currently needed for containerd to be able to pull images
88http_file(
89 name = "cacerts",
Lorenz Brun15c46cc2025-01-16 17:41:42 +000090 integrity = "sha256-o/Mowh453dHyvhzqQ6wN7IGeqiCpBCXX2pAaEVMbOqU=",
91 urls = ["https://curl.se/ca/cacert-2024-12-31.pem"],
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020092)
93
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020094# ini.h, a tiny ini parser library
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020095INIH_VERSION = "r53"
96
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020097http_archive(
98 name = "inih",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020099 build_file = "//third_party/inih:inih.bzl",
100 integrity = "sha256-AbA2b9/fY2PvwHDC+Fbxr6M+emVGVIutpUVq2UpRYkE=",
101 strip_prefix = "inih-" + INIH_VERSION,
102 urls = ["https://github.com/benhoyt/inih/archive/%s.tar.gz" % INIH_VERSION],
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +0200103)
104
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +0200105git_repository(
106 name = "gperf",
107 commit = "de9373c2d48a3edf29862eb8be44764a7f7d24c6",
108 remote = "https://github.com/monogon-dev/gperf.git",
109 shallow_since = "1615306886 +0100",
110)
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200111
Lorenz Brunf92158e2025-01-16 17:33:51 +0000112LINUX_VERSION = "6.6.71"
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200113
114http_archive(
115 name = "linux",
Tim Windelschmidte4895292025-02-04 03:10:39 +0100116 build_file = "//third_party/linux:linux.bzl",
Lorenz Brunf92158e2025-01-16 17:33:51 +0000117 integrity = "sha256-IZcVui3PplOfugmtP5ISdy81Bxietg13+OibBsMuck4=",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200118 patch_args = ["-p1"],
119 patches = [
Tim Windelschmidte4895292025-02-04 03:10:39 +0100120 "//third_party/linux/patches:0001-block-partition-expose-PARTUUID-through-uevent.patch",
121 "//third_party/linux/patches:disable-static-ifs.patch",
122 "//third_party/linux/patches:enable-pmsg.patch",
123 "//third_party/linux/patches:lacp_fix.patch",
124 "//third_party/linux/patches:fb-devs-knob.patch",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200125 ],
126 strip_prefix = "linux-" + LINUX_VERSION,
127 urls = ["https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-%s.tar.xz" % LINUX_VERSION],
128)
129
Lorenz Brun25458952024-09-11 16:35:28 +0000130LINUX_FIRMWARE_VERSION = "20240909"
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200131
132http_archive(
133 name = "linux-firmware",
Tim Windelschmidte4895292025-02-04 03:10:39 +0100134 build_file = "//third_party/linux-firmware:linux-firmware.bzl",
Lorenz Brun25458952024-09-11 16:35:28 +0000135 integrity = "sha256-k+m2riJAZhY5yHT1/Dj2d9GK/jZbF6E/7mtPxPukLBA=",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200136 strip_prefix = "linux-firmware-" + LINUX_FIRMWARE_VERSION,
137 urls = ["https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-%s.tar.gz" % LINUX_FIRMWARE_VERSION],
138)
139
Lorenz Brunc752ec62024-09-11 16:36:43 +0000140INTEL_UCODE_VERSION = "20240910"
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200141
142http_archive(
143 name = "intel_ucode",
Tim Windelschmidte4895292025-02-04 03:10:39 +0100144 build_file = "//third_party/intel_ucode:intel_ucode.bzl",
Lorenz Brunc752ec62024-09-11 16:36:43 +0000145 integrity = "sha256-i3WC6sfpppE1bhizvcvHstsJSU4EDsmApKX7bQ2iYb8=",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200146 strip_prefix = "Intel-Linux-Processor-Microcode-Data-Files-microcode-" + INTEL_UCODE_VERSION,
147 urls = ["https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-%s.tar.gz" % INTEL_UCODE_VERSION],
148)
149
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200150MUSL_VERSION = "1.1.24"
151
152http_archive(
153 name = "musl",
Tim Windelschmidte4895292025-02-04 03:10:39 +0100154 build_file = "//third_party/musl:musl.bzl",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200155 integrity = "sha256-E3DJqBKyzyp9koAlEMygBYzDfmanvt1wBR8KNAFQIqM=",
156 strip_prefix = "musl-" + MUSL_VERSION,
157 urls = ["https://www.musl-libc.org/releases/musl-%s.tar.gz" % MUSL_VERSION],
158)
159
160UTIL_LINUX_VERSION = "2.36.2"
161
162http_archive(
163 name = "util_linux",
164 build_file = "//third_party/util-linux:util-linux.bzl",
165 integrity = "sha256-CEvG+b1Hm/146JJOY/hbsXlTaBvx2tJA5NhgGiEpTQs=",
166 patch_args = ["-p1"],
167 patches = ["//third_party/util-linux/patches:bazel_cc_fix.patch"],
168 strip_prefix = "util-linux-" + UTIL_LINUX_VERSION,
169 urls = ["https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/snapshot/util-linux-%s.tar.gz" % UTIL_LINUX_VERSION],
170)
171
172URCU_VERSION = "0.14.0"
173
174http_archive(
175 name = "urcu",
176 build_file = "//third_party/urcu:urcu.bzl",
177 integrity = "sha256-QvtRKaP//lpLeQ3+HqOnNMae4JX++/ZJMmJpu6lMJi0=",
178 patch_args = ["-p1"],
179 patches = ["//third_party/urcu/patches:generated-files.patch"],
180 strip_prefix = "userspace-rcu-" + URCU_VERSION,
181 urls = ["https://github.com/urcu/userspace-rcu/archive/refs/tags/v%s.tar.gz" % URCU_VERSION],
182)
183
184XFSPROGS_VERSION = "6.9.0"
185
186http_archive(
187 name = "xfsprogs",
188 build_file = "//third_party/xfsprogs:xfsprogs.bzl",
189 integrity = "sha256-/nIGlou9gXd1S6cy9jn4Ubacj3CsX5a7DhgtiGZBQL8=",
190 patch_args = ["-p1"],
191 patches = ["//third_party/xfsprogs/patches:bazel_cc_fix.patch"],
192 strip_prefix = "xfsprogs-dev-" + XFSPROGS_VERSION,
193 urls = ["https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-%s.tar.gz" % XFSPROGS_VERSION],
194)
195
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200196# NOTE: Remember to update seccomp.bzl's seccomp.h template rule
197# with the correct version.
198SECCOMP_VERSION = "2.5.1"
199
200http_archive(
201 name = "seccomp",
202 build_file = "//third_party/seccomp:seccomp.bzl",
203 integrity = "sha256-dq1U4x0UOzmpkINWQEUhKpZeAmoQEKdC7deT0m1pmCk=",
204 patch_args = ["-p1"],
205 patches = [
206 "//third_party/seccomp/patches:bazel_cc_fix.patch",
207 "//third_party/seccomp/patches:fix_generated_includes.patch",
208 ],
209 strip_prefix = "libseccomp-" + SECCOMP_VERSION,
210 # We cannot use the actual release tarball as it contains files generated incorrectly for our environment
211 urls = ["https://github.com/seccomp/libseccomp/archive/v%s.tar.gz" % SECCOMP_VERSION],
212)
213
214GLIB_VERSION = "2.67.5"
215
216http_archive(
217 name = "glib",
218 integrity = "sha256-QQlm23EmONx0kFTAo8MIdUXVEGZDE5wlgGOZpRqNSrE=",
219 patch_args = [
220 "-p1",
221 "-u",
222 ],
223 patches = [
224 "//third_party/glib/patches:bazel_cc_fix.patch",
225 "//third_party/glib/patches:bazel_support.patch",
226 ],
227 strip_prefix = "glib-" + GLIB_VERSION,
228 # We cannot use the actual release tarball as it contains files generated incorrectly for our environment
229 urls = ["https://gitlab.gnome.org/GNOME/glib/-/archive/%s/glib-%s.tar.gz" % (GLIB_VERSION, GLIB_VERSION)],
230)
231
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200232# ONCHANGE(//third_party/chrony:chrony.bzl): version needs to be kept in sync
233CHRONY_VERSION = "4.1"
234
235http_archive(
236 name = "chrony",
237 build_file = "//third_party/chrony:chrony.bzl",
238 integrity = "sha256-7Xby0/k0esYiGpGtS9VT3QVlrBiM10kNCAHQj3FxFkw=",
239 patch_args = ["-p1"],
240 patches = [
241 "//third_party/chrony/patches:disable_defaults.patch",
242 "//third_party/chrony/patches:support_fixed_uids.patch",
243 ],
244 strip_prefix = "chrony-" + CHRONY_VERSION,
Tim Windelschmidtccabae92024-12-17 22:25:33 +0100245 urls = ["https://chrony-project.org/releases/chrony-%s.tar.gz" % CHRONY_VERSION],
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200246)
247
248CAP_VERSION = "1.2.55"
249
250http_archive(
251 name = "cap",
252 build_file = "//third_party/cap:cap.bzl",
253 integrity = "sha256-4pMiAy6pTpBpauLRdTDtyRTHF2UjLuj9T944umOcslY=",
254 patch_args = ["-p1"],
255 patches = [
256 "//third_party/cap/patches:add_go_codegen.patch",
257 ],
258 strip_prefix = "libcap-cap/v%s/libcap" % CAP_VERSION,
259 urls = ["https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v%s.tar.gz" % CAP_VERSION],
260)
261
262GNUEFI_VERSION = "3.0.14"
263
264http_archive(
265 name = "gnuefi",
266 build_file = "//third_party/gnuefi:gnuefi.bzl",
267 integrity = "sha256-V4XneCX+xeZm5MINeqqa9M2VI1GywJWTlydE/oQ2+Vc=",
268 strip_prefix = "gnu-efi-%s" % GNUEFI_VERSION,
269 urls = ["https://github.com/ncroxon/gnu-efi/archive/refs/tags/%s.tar.gz" % GNUEFI_VERSION],
270)
271
272# Developed in the systemd monorepo, pinned to master as there have been a bunch of critical fixes for the
273# EFI stub since 249.
274EFISTUB_VERSION = "3542da2442d8b29661b47c42ad7e5fa9bc8562ec"
275
276http_archive(
277 name = "efistub",
278 build_file = "//third_party/efistub:efistub.bzl",
279 integrity = "sha256-AhwTW+45ynNG0fCZI758BEo9NYZv9BGnyWJnAv9MlSM=",
280 patch_args = ["-p1"],
281 patches = [
282 "//third_party/efistub/patches:use-sysv-for-kernel.patch",
283 "//third_party/efistub/patches:remove-wrong-cmdline-assertion.patch",
284 "//third_party/efistub/patches:ab-slot-handling.patch",
285 ],
286 strip_prefix = "systemd-%s" % EFISTUB_VERSION,
287 urls = ["https://github.com/systemd/systemd/archive/%s.zip" % EFISTUB_VERSION],
288)
289
290LIBPG_QUERY_VERSION = "15-4.2.3"
291
292http_archive(
293 name = "libpg_query",
Tim Windelschmidte4895292025-02-04 03:10:39 +0100294 build_file = "//third_party/libpg_query:libpg_query.bzl",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200295 integrity = "sha256-i4INY0QrFnfOTw3yqVs/r9vFIKgpAd74EhdVnsTfnms=",
296 strip_prefix = "libpg_query-" + LIBPG_QUERY_VERSION,
297 urls = ["https://github.com/pganalyze/libpg_query/archive/refs/tags/%s.tar.gz" % LIBPG_QUERY_VERSION],
298)
299
300DOSFSTOOLS_VERSION = "c888797b1d84ffbb949f147e3116e8bfb2e145a7"
301
302http_archive(
303 name = "com_github_dosfstools_dosfstools",
304 build_file = "//third_party/dosfstools:dosfstools.bzl",
305 integrity = "sha256-SkC0iMDCWcEftUeD/G8B5e6RJYK7SdM9DRGxH4WkLo0=",
306 strip_prefix = "dosfstools-" + DOSFSTOOLS_VERSION,
307 urls = ["https://github.com/dosfstools/dosfstools/archive/%s.zip" % DOSFSTOOLS_VERSION],
308)
309
310# master at 2024/01/09 (0.10.0 prerelease).
311LIBTPMS_VERSION = "93a827aeccd3ab2178281571b1545dcfffa2991b"
312
313http_archive(
314 name = "libtpms",
315 integrity = "sha256-5QnguhCfd9pRe15YqfCTvrBAUl5r5R3gbRFTyCeMcNE=",
316 patch_args = ["-p1"],
317 patches = [
318 "//third_party/libtpms/patches:0001-boringssl-compat-new-SHA-types.patch",
319 "//third_party/libtpms/patches:0002-boringssl-compat-removed-const_DES_cblock.patch",
320 "//third_party/libtpms/patches:0003-boringssl-compat-removed-EC_POINTs_mul.patch",
321 "//third_party/libtpms/patches:0004-boringssl-compat-removed-camellia-support.patch",
322 "//third_party/libtpms/patches:0005-boringssl-compat-remove-constant-time-flags-UNSAFE.patch",
323 "//third_party/libtpms/patches:0006-bazel-support-implement.patch",
324 ],
325 strip_prefix = "libtpms-" + LIBTPMS_VERSION,
326 urls = ["https://github.com/stefanberger/libtpms/archive/%s.tar.gz" % LIBTPMS_VERSION],
327)
328
329# master at 2024/06/04
330SWTPM_VERSION = "0c9a6c4a12a63b86ab472e69e95bd75853d4fa96"
331
332http_archive(
333 name = "swtpm",
334 integrity = "sha256-Fp3bE5WX+oCOES1FJFdEXHntUhuzT5mQZtIN6SFAVs4=",
335 patch_args = ["-p1"],
336 patches = [
337 "//third_party/swtpm/patches:0001-bazel-compat-glib.h-glib-glib.h.patch",
338 "//third_party/swtpm/patches:0002-swtpm_localca-replace-gmp-mpz-dependency-with-boring.patch",
339 "//third_party/swtpm/patches:0003-swtpm_setup-replace-dep-on-JSON-GLib-with-sheredom-j.patch",
340 "//third_party/swtpm/patches:0004-bazel-support-implement.patch",
341 ],
342 strip_prefix = "swtpm-" + SWTPM_VERSION,
343 urls = ["https://github.com/stefanberger/swtpm/archive/%s.tar.gz" % SWTPM_VERSION],
344)