| Serge Bazanski | 2fb13a8 | 2020-02-11 12:41:37 +0100 | [diff] [blame] | 1 | # Copyright 2020 The Monogon Project Authors. |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 18 | |
| 19 | def linux_external(name, version): |
| 20 | sums = { |
| Lorenz Brun | 38b959f | 2024-02-08 17:53:45 +0100 | [diff] [blame] | 21 | "6.6.13": "88b89e7dd41ead4e3ab1e411c8bb8d592575acf815cf1df3c0dc57e2e882c0bc", |
| Serge Bazanski | 2fb13a8 | 2020-02-11 12:41:37 +0100 | [diff] [blame] | 22 | } |
| 23 | http_archive( |
| 24 | name = name, |
| 25 | build_file = "//third_party/linux/external:BUILD.repo", |
| 26 | patch_args = ["-p1"], |
| 27 | patches = [ |
| Mateusz Zalega | b7f8e9a | 2021-10-20 13:41:41 +0200 | [diff] [blame] | 28 | "//third_party/linux/external:0001-block-partition-expose-PARTUUID-through-uevent.patch", |
| Lorenz Brun | 333cb8b | 2023-04-20 23:10:39 +0200 | [diff] [blame] | 29 | "//third_party/linux/external:disable-static-ifs.patch", |
| Lorenz Brun | d1f82e9 | 2024-02-08 19:27:46 +0100 | [diff] [blame] | 30 | "//third_party/linux/external:enable-pmsg.patch", |
| Lorenz Brun | 8bc8286 | 2024-04-30 11:47:09 +0000 | [diff] [blame] | 31 | "//third_party/linux/external:lacp_fix.patch", |
| Serge Bazanski | 2fb13a8 | 2020-02-11 12:41:37 +0100 | [diff] [blame] | 32 | ], |
| 33 | sha256 = sums[version], |
| 34 | strip_prefix = "linux-" + version, |
| Lorenz Brun | 4811e70 | 2023-10-09 22:13:34 +0200 | [diff] [blame] | 35 | urls = ["https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-%s.tar.xz" % version], |
| Serge Bazanski | 2fb13a8 | 2020-02-11 12:41:37 +0100 | [diff] [blame] | 36 | ) |