Lorenz Brun | 5d40c67 | 2021-09-28 15:06:37 +0200 | [diff] [blame^] | 1 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 2 | |
| 3 | def 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", |
| 17 | ], |
| 18 | urls = ["https://github.com/systemd/systemd/archive/%s.zip" % version], |
| 19 | ) |