| 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", |
| Lorenz Brun | ae7ad94 | 2024-05-14 18:21:55 +0200 | [diff] [blame] | 22 | "6.6.30": "b66a5b863b0f8669448b74ca83bd641a856f164b29956e539bbcb5fdeeab9cc6", |
| Lorenz Brun | e166fa3 | 2024-07-25 13:29:12 +0000 | [diff] [blame] | 23 | "6.6.42": "8801c8c297d774e76044977ec3d0684399dc4e7cce347d730874ec78b774e683", |
| Serge Bazanski | 2fb13a8 | 2020-02-11 12:41:37 +0100 | [diff] [blame] | 24 | } |
| 25 | http_archive( |
| 26 | name = name, |
| 27 | build_file = "//third_party/linux/external:BUILD.repo", |
| 28 | patch_args = ["-p1"], |
| 29 | patches = [ |
| Mateusz Zalega | b7f8e9a | 2021-10-20 13:41:41 +0200 | [diff] [blame] | 30 | "//third_party/linux/external:0001-block-partition-expose-PARTUUID-through-uevent.patch", |
| Lorenz Brun | 333cb8b | 2023-04-20 23:10:39 +0200 | [diff] [blame] | 31 | "//third_party/linux/external:disable-static-ifs.patch", |
| Lorenz Brun | d1f82e9 | 2024-02-08 19:27:46 +0100 | [diff] [blame] | 32 | "//third_party/linux/external:enable-pmsg.patch", |
| Lorenz Brun | 8bc8286 | 2024-04-30 11:47:09 +0000 | [diff] [blame] | 33 | "//third_party/linux/external:lacp_fix.patch", |
| Serge Bazanski | 2fb13a8 | 2020-02-11 12:41:37 +0100 | [diff] [blame] | 34 | ], |
| 35 | sha256 = sums[version], |
| 36 | strip_prefix = "linux-" + version, |
| Lorenz Brun | 4811e70 | 2023-10-09 22:13:34 +0200 | [diff] [blame] | 37 | 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] | 38 | ) |