blob: ababb53b6ba9ac7cdc853cf35f0237aff797c78d [file] [log] [blame]
Lorenz Brun5d40c672021-09-28 15:06:37 +02001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3def efistub_external(name, version):
4 sums = {
5 "3542da2442d8b29661b47c42ad7e5fa9bc8562ec": "021c135bee39ca7346d1f09923be7c044a3d35866ff411a7c9626702ff4c9523",
6 }
7
8 http_archive(
9 name = name,
10 build_file = "@//third_party/efistub:efistub.bzl",
11 sha256 = sums[version],
12 strip_prefix = "systemd-%s" % version,
13 patch_args = ["-p1"],
14 patches = [
15 "//third_party/efistub/patches:use-sysv-for-kernel.patch",
16 "//third_party/efistub/patches:remove-wrong-cmdline-assertion.patch",
Lorenz Brun35fcf032023-06-29 04:15:58 +020017 "//third_party/efistub/patches:ab-slot-handling.patch",
Lorenz Brun5d40c672021-09-28 15:06:37 +020018 ],
19 urls = ["https://github.com/systemd/systemd/archive/%s.zip" % version],
20 )