Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel/
Date: Mon, 03 Feb 2020 05:37:37
Message-Id: 1580708237.5864716b889bb6b8e75384b431ab3fe01dfbef9f.mgorny@gentoo
1 commit: 5864716b889bb6b8e75384b431ab3fe01dfbef9f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 3 05:18:46 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 3 05:37:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5864716b
7
8 sys-kernel/gentoo-kernel: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-kernel/gentoo-kernel/Manifest | 18 -----
13 .../gentoo-kernel/gentoo-kernel-4.19.96.ebuild | 83 ----------------------
14 .../gentoo-kernel/gentoo-kernel-4.19.97.ebuild | 83 ----------------------
15 .../gentoo-kernel/gentoo-kernel-4.19.98.ebuild | 83 ----------------------
16 .../gentoo-kernel/gentoo-kernel-4.19.99.ebuild | 75 -------------------
17 .../gentoo-kernel/gentoo-kernel-5.4.12.ebuild | 81 ---------------------
18 .../gentoo-kernel/gentoo-kernel-5.4.13.ebuild | 81 ---------------------
19 .../gentoo-kernel/gentoo-kernel-5.4.14.ebuild | 81 ---------------------
20 .../gentoo-kernel/gentoo-kernel-5.4.15.ebuild | 81 ---------------------
21 9 files changed, 666 deletions(-)
22
23 diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
24 index 390a5195a7d..dfe76211dcb 100644
25 --- a/sys-kernel/gentoo-kernel/Manifest
26 +++ b/sys-kernel/gentoo-kernel/Manifest
27 @@ -1,23 +1,7 @@
28 DIST genpatches-4.19-100.base.tar.xz 2992824 BLAKE2B 02722c5568726284afa812be3d9cb4555bad11133dd5876d8ee09771e584e73dfb6e7bd8a2829126ff2dada931856a07429715a918a0fe88786fa98fb6ad6edb SHA512 621a9294c3377720723e89b175bb4f0f2812e566b73952a81112bc1ef675862842e00f642ba37f728ae8aa0e5e5cc17b347cea564821c02c88c532668007b5cc
29 DIST genpatches-4.19-100.extras.tar.xz 17492 BLAKE2B c896c916f2dfad38b35f1ebd080cb5b66f6bd51b28a77535fc2ae44b11a1a5bee1be52a7d6d5e30b80c635b59e43f40d99c2cea98cf0744374412626a939cc00 SHA512 169dea4d9c41057807c63a8d66aa7fb94d783e841a94a700bc0eb1995e620e6b529658d3899ffc54e5cfde4e9267e385dc2e36786ff0c31acecc0593456f8909
30 -DIST genpatches-4.19-95.base.tar.xz 2780232 BLAKE2B cc5ba5e36acb8834ca2313ec134ad4156b543cfda08f08677b5f6efcda8a7b5b9bcdc70691e33698af1e81a9e381916bd5e41e2c5218c2930a928df82d44b7fd SHA512 5f935cc3cd1ecafaeca148010b28d0742dcbbf50d28f77ae1255016548fe921a83befcf577a52553f161cfa54da2c9df204abbbc2004378bc0f8ac58fbafdf04
31 -DIST genpatches-4.19-95.extras.tar.xz 17492 BLAKE2B 5138c0138058e5dde744a056bf5068cc1db98cd3a52375d30ca72007d89d5c2b87e1493f1c3cc83cc7d0f1f489783ddf98f1b6d76b33ced4a7f18ae13e1b61cc SHA512 a1d5428a4aa5484dd26e4548a8796f54884541d4012e7591e0bf3c5f63fd9af242fa1719c5bda8e956e0be69f207adedfd0061ccbc00963ceb1272c03edb0e1a
32 -DIST genpatches-4.19-96.base.tar.xz 2796188 BLAKE2B 6f8506b0a275b8ae1d215fe4d3812a5d895c05f07db16f560e6cfb8d4945e9a9bc10afcf537c165f96fc111657ba2191c6720be15a49726e92cf6277f9aa1e5d SHA512 62334fd0c23acbbf3c0bfcecc6970501b7c500e24e628130e2d541b29363782757feb3b915e9b3d1210c538fde87d9eb6b64694af5110d55789efd29c8ccce5e
33 -DIST genpatches-4.19-96.extras.tar.xz 17496 BLAKE2B 11ccad1f1a7d67cbf5f39023b90321bfe8df1bbdb00a2e213f6a2dcb83445cf4e375de7465b266908f50540fe1e16280eeba99b03e2da8dfd96d72396c3a5ec6 SHA512 cd95d65fa56236e6303a22d5a9749912f70aeaee899c57f9c545e13696111dbcfbfee3757a42184164cae56f703b2af9072298dfaba35419bf05fe196692007d
34 -DIST genpatches-4.19-97.base.tar.xz 2820340 BLAKE2B ff5f1b20776414a30d1f24291c6ae75887e6d63ed6501f400a0d55b375ed18172f1eddbb9aa3426c9bbc23f0cb6766d2152c05bf97f511ba6e25ce7a8238c1df SHA512 e27450fa0af491e06206fa911f52c61dd9fa74c8a1003bd2fa7212cba30050f85501825f9855962684903cb7cd817e8f42c649b85fd791d78596608ceb5e15a5
35 -DIST genpatches-4.19-97.extras.tar.xz 17488 BLAKE2B a96cac0a53187a9b05216e66122e70f828889b7a955282309f4e27bb44a90ceaba4b66acd1a9bf9a2a3d7b97be2eb62be6c6d4c0a71475a9dc05dc3b4b6c3820 SHA512 aef2f865e488d96c73c35f9f26a801eef4f41ac7f0ce78fa3263f3dbfdaecc67fa6a9d46c8fa4f0b1e7d0e8815743385de0c7105fe1851830498400ae1309209
36 -DIST genpatches-4.19-98.base.tar.xz 2954268 BLAKE2B e96dfdcebaadb6f503e22017ed29a655c0e48fcc31f05743a968e6cc397fb90f4d644f75a520cf54f3178a59e59812344693ac799d87c9b1232782112ce506bb SHA512 c9a6a0d31e527a3e8001cecdd41c11b5fe147fdafe9dc9c4c852e1e4f87ded61f319051a0434036821d1e872c83a00d1b744df3cfbda2a1758a0ac08a0a7ef95
37 -DIST genpatches-4.19-98.extras.tar.xz 17492 BLAKE2B 93240a4e143b61666ccff5e7de74834e2e88b7e56808e284b3d10295463d74a3e55ed0547bd5fdad8d885531cea249e2a1f6da915d0b83b66c870f38778364bd SHA512 088b33a9c145496fcdf62f9b6dd3dad4f4f7f45b272c91dd3b58dfa51fad5f5a8da3462e07afcd97fd77395d54b2480f4cc17165dae57e4212dbe352d1442836
38 DIST genpatches-4.19-99.base.tar.xz 2980172 BLAKE2B 2da82ccc1a3a9f874f30046c4d7ea01730398d27c34be741b3fa64ca7e05972a4ef33f76e28383c488d71489c1eabd33e462c2fbbc8248e6d53486eabb1956e6 SHA512 481042c47ca0f56a3262e9920a1e245197672c51ac32624668974a8af5273d3ff593047bbbb6476b741de611c83c19ad6e4a09e1c1331baaf67c1998ef64bade
39 DIST genpatches-4.19-99.extras.tar.xz 17488 BLAKE2B d57f278109d3ea0cbe324e15666f119e2a9ef4ebfe6f9581dffdd6e9f4c11fca47dc08f2375da62928076647352772cedad41a8ab97b312b59a03956dd4a3954 SHA512 ae1f8f8fd8f9da3860e82d8838714248983014257386bab802ec3adf86d694db50db8d6cc9a9d01a2a6936e2ceb740a4f4732e48b1c40eebc8ffd523745d5dca
40 -DIST genpatches-5.4-12.base.tar.xz 449796 BLAKE2B c0d88dd19d2e71c877bfc4320801a4ed617444accad16440512ceb721e127200db522153db73640e3b00c66561eb497a09775f71d4a3ba528718850350ad9ad1 SHA512 edc638f64933078b2a6601b88ba030283cceed5e739ce43d1748d6d46196d75e02477ae30775f653bf664bc046b117164cd62572f32099a82816c536bdde4c2d
41 -DIST genpatches-5.4-12.extras.tar.xz 1740 BLAKE2B c9586b5120c0b177ce236f469ffc7412e7fa94cc97fd7b67b7bd888758c238fea15eb457fea847c6b4b7bc9475377c6c24c8a617e4cecee3360340234872d445 SHA512 771bb67ccc837bbfb3aeb129fb9110e3dc9972868fc43a6a5f2dc5ea2bcdacfecf65151e32427af34411238bcc1683438a99081bf09e1733cd5c8a09968a8d09
42 -DIST genpatches-5.4-13.base.tar.xz 505168 BLAKE2B bf428eef66887c47006dd9713d7b5ffc4ed508d2d9a4e5a8f81eec5d39953779067307b30f5c2a94be047a1f7e149b02df8bfaebba9674474e3e44b4501c86db SHA512 e5690f03ea20f250443f9ff4857bd9c104637dfb4df15615841843035eca7283a4c12380db78cb7f6f9e3cc772a6d256d00584ad26ed72afe4706d3365ff2dcd
43 -DIST genpatches-5.4-13.extras.tar.xz 1744 BLAKE2B 44af74d2ccb864674909ba913cce68a64bdd20d83ef8241df30d5140d0fcf704b28360709b3b1314832cc58589504cf416949ed468af603ae572e41da9d2b998 SHA512 e9a00184a5b5658fcc6a4207de67e6141048baea34b91a728f0c4c596f437873650772688c3e2d1a2f2bd7c3e2dce92cf60d4b76802f0b389a7996538aae2600
44 -DIST genpatches-5.4-14.base.tar.xz 557776 BLAKE2B 80ec7786242b9ee0d27b46261de9f6b654de79f9168f3a4345a8f134488cfd3b93e63ff62395d5f8646c95bfedbab8e7add63d7829aa523e2960e7d41dabe3fb SHA512 660dfd666018cd703c4b999d329d429a39bbe352fdc5acf79fcfeb21e6f45047bbb8568eb5c329adcb47c79eca3dfc087e3d5d251e32058c26fbdac1aab3968f
45 -DIST genpatches-5.4-14.extras.tar.xz 1744 BLAKE2B f7b13f3e5dacea7f4342d5dab2ebac1266a86f7e34b0bc24191bd2637d0ab74f9a1494c8f56172b4fbf47070da3cdd2f8ea1e2a1dd7e8475c618382415ee4e7a SHA512 c083b1a282df88f049970e28bb2a2f176e8adf0c6db23f6525ddb91cb22528846ce5c86af951e79ca4561c6f7293cbbb2b3b255ccd95bb66edf30bd81b2e4cbf
46 -DIST genpatches-5.4-15.base.tar.xz 586668 BLAKE2B 6e363fc484e94c2903ea94d5966d311f7bc99dba2395b47075f4e553dcb437184036b4651f97d943d3ddb6016a74d9692723fd4b86c4b0272f2c9dd3ae657cfd SHA512 ff31fbb8e71b2bccb4e99a15127b2392d4e4f3452a522cd49b1b9aaa0916e35e32ae41c62a2cb896951312d756cda89533b2a4c79da8bff53a8d448919fb9ecd
47 -DIST genpatches-5.4-15.extras.tar.xz 1744 BLAKE2B bca6af0367819405e5d11c46bcd45187ea16b0de7793e546d4be294a3c87e5e00313873d356c3139881f619fa6e64da0c99f8a8b788ec14e17c1ca192276c543 SHA512 2f783d62403997d724ff4e124f9365dbddd3f139438b6bec608829762a3b2ef29dc8c488b10a4069a501de70512cff15dbb187d44c8ec90ff0604bc63a713420
48 DIST genpatches-5.4-16.base.tar.xz 622844 BLAKE2B c9b71a945733efde4ef1c3f4e5929573c4b338d7dfa2cd589ad64c567865eb7d1448f2e32a59548ba2d738aee5219467727fa68a3572a50ffade1cd574ddfd87 SHA512 3a1ad8e9f44076fe00f5fee586d53f3b028e7c2086dfc2a30659415ae6a5f8463623890d0a26965eb9fe33da31b1b03652097a0814602862145d047dc9977b33
49 DIST genpatches-5.4-16.extras.tar.xz 1740 BLAKE2B acd4fd5705617564442e44326f5d5c6f0bab8ce1950cfda56d9db03ca1b0adfc3f0d8770a659010c8db4f4d6114adf667ffeefe636f353c9acc51c9ba07bdd0c SHA512 b44523a6da21eef1f547c0cfab9e2aaa2bde929dc2727d9ae748a55b6735e78d304dc66ebd1e97b57ed988936e91ad49e205dce10b745a8fded3b08e13dd1ce4
50 DIST genpatches-5.4-17.base.tar.xz 649680 BLAKE2B 787d9e9285a69a7f8de8c82375c42a8de7bc0cb0299c725fb60d23933079eff9803e43559d1a8467c3c315ad6ddfa64e1ddc47e4e2bcecaef892443f1bad7b7f SHA512 bd3a9b544d542a05da5c606b34998b7aaeab8d0ac85b13c6232d86d2cd0bfd418a67c080e8ad3d4bfd1e43f6e9afac26df368d3b61f66583baf018e109d7ade3
51 @@ -27,8 +11,6 @@ DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2
52 DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4
53 DIST linux-5.4.13-arch1.i686.config 239816 BLAKE2B e776321fa163759332e7b5e3cca6a8a3f7124fc7a5bdd498f0aeaec1f2a819f27a87ca6f9f3fb0f0b9f28e8ba6f207bb27c5e48a494664d21ea3845e99b1eab4 SHA512 4e083028a140fcd2e65bba3c39e9d7bf9004e114b3233e8c2ab9e67405a3db9179c10a9564407bf19875317a352453f3e02f137297941277f694e687d3b97674
54 DIST linux-5.4.13.arch1.amd64.config 241498 BLAKE2B 3c6d13d84ea75247fae4f4474648abe295fb6ea577d4c9becc58551c3954d35a72edd5937b7bb345f783fe2015940035d5f6766e08e5a9dd6b8723cc69c85ee6 SHA512 3039a333f3000f416bfccd7efdc54c8ea07d9b01b349be87f83b7dcb3e0f13a1f3fb02ccae42412cf28958aa7df42ef73f87e637269c7525476d73682596fa07
55 -DIST linux-5.4.7-arch1.i686.config 241295 BLAKE2B da45f2de600fafdb48e9bb37e6f7a8ea57ed31dc6fb47062bcee694db0b824844c0556ad6a88afa33bf3a365f50c9ac6326389cfa87d0e47a012252fa1444536 SHA512 dcfd9c03cbafeeb942fd37c1f18432aeeacaff438cb88528e17aa8c28bae20090695a2acad08a707e66ecaa5851aa47b012baa6d9274c617fa8c71cde641e8ec
56 -DIST linux-5.4.7.arch1-1.amd64.config 241598 BLAKE2B 536cce5cc23cf20e71cba7468a125557f85d8ffc3cb194dced79bd489d39f2e4ed3960816d15d1491007d11b3af466e0a74267f983dfcc5f511f9f566f7e9821 SHA512 8658db603e180c75caf76972d85ecf8a4e9c9cf6e047b4f9fc7cba0fa426f434361528c1c29b5580f116cdd23091bf9afb6635d751f3b90c4e968d16db90eac1
57 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
58 DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641
59 DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895
60
61 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild
62 deleted file mode 100644
63 index 4c339a8d3f8..00000000000
64 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild
65 +++ /dev/null
66 @@ -1,83 +0,0 @@
67 -# Copyright 2020 Gentoo Authors
68 -# Distributed under the terms of the GNU General Public License v2
69 -
70 -EAPI=7
71 -
72 -inherit kernel-build
73 -
74 -MY_P=linux-4.19.94
75 -GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1))
76 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
77 -AMD64_CONFIG_VER=4.19.92-arch1
78 -AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
79 -# https://git.archlinux32.org/packages/log/core/linux-lts/config
80 -I686_CONFIG_VER=4.19.85-arch1
81 -I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
82 -
83 -DESCRIPTION="Linux kernel built with Gentoo patches"
84 -HOMEPAGE="https://www.kernel.org/"
85 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
86 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
87 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
88 - amd64? (
89 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
90 - -> linux-${AMD64_CONFIG_VER}.amd64.config
91 - )
92 - x86? (
93 - https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
94 - -> linux-${I686_CONFIG_VER}.i686.config
95 - )"
96 -S=${WORKDIR}/${MY_P}
97 -
98 -LICENSE="GPL-2"
99 -KEYWORDS="~amd64 ~x86"
100 -
101 -RDEPEND="
102 - !sys-kernel/vanilla-kernel:${SLOT}
103 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
104 -
105 -pkg_pretend() {
106 - mount-boot_pkg_pretend
107 -
108 - ewarn "This is an experimental package. The built kernel and/or initramfs"
109 - ewarn "may not work at all or fail with your bootloader configuration. Please"
110 - ewarn "make sure to keep a backup kernel available before testing it."
111 -}
112 -
113 -src_prepare() {
114 - local PATCHES=(
115 - # meh, genpatches have no directory
116 - # (skip most patch release patches, we just fetch newer sources)
117 - "${WORKDIR}"/109[4-9]*.patch
118 - "${WORKDIR}"/[2-9]*.patch
119 - )
120 - default
121 -
122 - # prepare the default config
123 - case ${ARCH} in
124 - amd64)
125 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
126 - ;;
127 - x86)
128 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
129 - ;;
130 - *)
131 - die "Unsupported arch ${ARCH}"
132 - ;;
133 - esac
134 -
135 - local config_tweaks=(
136 - # shove arch under the carpet!
137 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
138 - # we do support x32
139 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
140 - # disable signatures
141 - -e '/CONFIG_MODULE_SIG/d'
142 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
143 - # disable compression to allow stripping
144 - -e '/CONFIG_MODULE_COMPRESS/d'
145 - # disable gcc plugins to unbreak distcc
146 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
147 - )
148 - sed -i "${config_tweaks[@]}" .config || die
149 -}
150
151 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.97.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.97.ebuild
152 deleted file mode 100644
153 index 4c339a8d3f8..00000000000
154 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.97.ebuild
155 +++ /dev/null
156 @@ -1,83 +0,0 @@
157 -# Copyright 2020 Gentoo Authors
158 -# Distributed under the terms of the GNU General Public License v2
159 -
160 -EAPI=7
161 -
162 -inherit kernel-build
163 -
164 -MY_P=linux-4.19.94
165 -GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1))
166 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
167 -AMD64_CONFIG_VER=4.19.92-arch1
168 -AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
169 -# https://git.archlinux32.org/packages/log/core/linux-lts/config
170 -I686_CONFIG_VER=4.19.85-arch1
171 -I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
172 -
173 -DESCRIPTION="Linux kernel built with Gentoo patches"
174 -HOMEPAGE="https://www.kernel.org/"
175 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
176 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
177 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
178 - amd64? (
179 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
180 - -> linux-${AMD64_CONFIG_VER}.amd64.config
181 - )
182 - x86? (
183 - https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
184 - -> linux-${I686_CONFIG_VER}.i686.config
185 - )"
186 -S=${WORKDIR}/${MY_P}
187 -
188 -LICENSE="GPL-2"
189 -KEYWORDS="~amd64 ~x86"
190 -
191 -RDEPEND="
192 - !sys-kernel/vanilla-kernel:${SLOT}
193 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
194 -
195 -pkg_pretend() {
196 - mount-boot_pkg_pretend
197 -
198 - ewarn "This is an experimental package. The built kernel and/or initramfs"
199 - ewarn "may not work at all or fail with your bootloader configuration. Please"
200 - ewarn "make sure to keep a backup kernel available before testing it."
201 -}
202 -
203 -src_prepare() {
204 - local PATCHES=(
205 - # meh, genpatches have no directory
206 - # (skip most patch release patches, we just fetch newer sources)
207 - "${WORKDIR}"/109[4-9]*.patch
208 - "${WORKDIR}"/[2-9]*.patch
209 - )
210 - default
211 -
212 - # prepare the default config
213 - case ${ARCH} in
214 - amd64)
215 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
216 - ;;
217 - x86)
218 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
219 - ;;
220 - *)
221 - die "Unsupported arch ${ARCH}"
222 - ;;
223 - esac
224 -
225 - local config_tweaks=(
226 - # shove arch under the carpet!
227 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
228 - # we do support x32
229 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
230 - # disable signatures
231 - -e '/CONFIG_MODULE_SIG/d'
232 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
233 - # disable compression to allow stripping
234 - -e '/CONFIG_MODULE_COMPRESS/d'
235 - # disable gcc plugins to unbreak distcc
236 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
237 - )
238 - sed -i "${config_tweaks[@]}" .config || die
239 -}
240
241 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild
242 deleted file mode 100644
243 index 4c339a8d3f8..00000000000
244 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild
245 +++ /dev/null
246 @@ -1,83 +0,0 @@
247 -# Copyright 2020 Gentoo Authors
248 -# Distributed under the terms of the GNU General Public License v2
249 -
250 -EAPI=7
251 -
252 -inherit kernel-build
253 -
254 -MY_P=linux-4.19.94
255 -GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1))
256 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
257 -AMD64_CONFIG_VER=4.19.92-arch1
258 -AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
259 -# https://git.archlinux32.org/packages/log/core/linux-lts/config
260 -I686_CONFIG_VER=4.19.85-arch1
261 -I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
262 -
263 -DESCRIPTION="Linux kernel built with Gentoo patches"
264 -HOMEPAGE="https://www.kernel.org/"
265 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
266 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
267 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
268 - amd64? (
269 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
270 - -> linux-${AMD64_CONFIG_VER}.amd64.config
271 - )
272 - x86? (
273 - https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
274 - -> linux-${I686_CONFIG_VER}.i686.config
275 - )"
276 -S=${WORKDIR}/${MY_P}
277 -
278 -LICENSE="GPL-2"
279 -KEYWORDS="~amd64 ~x86"
280 -
281 -RDEPEND="
282 - !sys-kernel/vanilla-kernel:${SLOT}
283 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
284 -
285 -pkg_pretend() {
286 - mount-boot_pkg_pretend
287 -
288 - ewarn "This is an experimental package. The built kernel and/or initramfs"
289 - ewarn "may not work at all or fail with your bootloader configuration. Please"
290 - ewarn "make sure to keep a backup kernel available before testing it."
291 -}
292 -
293 -src_prepare() {
294 - local PATCHES=(
295 - # meh, genpatches have no directory
296 - # (skip most patch release patches, we just fetch newer sources)
297 - "${WORKDIR}"/109[4-9]*.patch
298 - "${WORKDIR}"/[2-9]*.patch
299 - )
300 - default
301 -
302 - # prepare the default config
303 - case ${ARCH} in
304 - amd64)
305 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
306 - ;;
307 - x86)
308 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
309 - ;;
310 - *)
311 - die "Unsupported arch ${ARCH}"
312 - ;;
313 - esac
314 -
315 - local config_tweaks=(
316 - # shove arch under the carpet!
317 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
318 - # we do support x32
319 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
320 - # disable signatures
321 - -e '/CONFIG_MODULE_SIG/d'
322 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
323 - # disable compression to allow stripping
324 - -e '/CONFIG_MODULE_COMPRESS/d'
325 - # disable gcc plugins to unbreak distcc
326 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
327 - )
328 - sed -i "${config_tweaks[@]}" .config || die
329 -}
330
331 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild
332 deleted file mode 100644
333 index 6bf6d9cfbbd..00000000000
334 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild
335 +++ /dev/null
336 @@ -1,75 +0,0 @@
337 -# Copyright 2020 Gentoo Authors
338 -# Distributed under the terms of the GNU General Public License v2
339 -
340 -EAPI=7
341 -
342 -inherit kernel-build
343 -
344 -MY_P=linux-4.19.94
345 -GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1))
346 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
347 -AMD64_CONFIG_VER=4.19.92-arch1
348 -AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
349 -# https://git.archlinux32.org/packages/log/core/linux-lts/config
350 -I686_CONFIG_VER=4.19.85-arch1
351 -I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
352 -
353 -DESCRIPTION="Linux kernel built with Gentoo patches"
354 -HOMEPAGE="https://www.kernel.org/"
355 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
356 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
357 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
358 - amd64? (
359 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
360 - -> linux-${AMD64_CONFIG_VER}.amd64.config
361 - )
362 - x86? (
363 - https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
364 - -> linux-${I686_CONFIG_VER}.i686.config
365 - )"
366 -S=${WORKDIR}/${MY_P}
367 -
368 -LICENSE="GPL-2"
369 -KEYWORDS="~amd64 ~x86"
370 -
371 -RDEPEND="
372 - !sys-kernel/vanilla-kernel:${SLOT}
373 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
374 -
375 -src_prepare() {
376 - local PATCHES=(
377 - # meh, genpatches have no directory
378 - # (skip most patch release patches, we just fetch newer sources)
379 - "${WORKDIR}"/109[4-9]*.patch
380 - "${WORKDIR}"/[2-9]*.patch
381 - )
382 - default
383 -
384 - # prepare the default config
385 - case ${ARCH} in
386 - amd64)
387 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
388 - ;;
389 - x86)
390 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
391 - ;;
392 - *)
393 - die "Unsupported arch ${ARCH}"
394 - ;;
395 - esac
396 -
397 - local config_tweaks=(
398 - # shove arch under the carpet!
399 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
400 - # we do support x32
401 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
402 - # disable signatures
403 - -e '/CONFIG_MODULE_SIG/d'
404 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
405 - # disable compression to allow stripping
406 - -e '/CONFIG_MODULE_COMPRESS/d'
407 - # disable gcc plugins to unbreak distcc
408 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
409 - )
410 - sed -i "${config_tweaks[@]}" .config || die
411 -}
412
413 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild
414 deleted file mode 100644
415 index 3c88e7c1bad..00000000000
416 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild
417 +++ /dev/null
418 @@ -1,81 +0,0 @@
419 -# Copyright 2020 Gentoo Authors
420 -# Distributed under the terms of the GNU General Public License v2
421 -
422 -EAPI=7
423 -
424 -inherit kernel-build
425 -
426 -MY_P=linux-${PV%.*}
427 -GENPATCHES_P=genpatches-${PV%.*}-${PV##*.}
428 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
429 -AMD64_CONFIG_VER=5.4.7.arch1-1
430 -AMD64_CONFIG_HASH=ff79453bc0451a9083bdaa02c3901372d61a9982
431 -# https://git.archlinux32.org/packages/log/core/linux/config.i686
432 -I686_CONFIG_VER=5.4.7-arch1
433 -I686_CONFIG_HASH=f888688da499e17f3c7a5f15a3c44482a29acc2c
434 -
435 -DESCRIPTION="Linux kernel built with Gentoo patches"
436 -HOMEPAGE="https://www.kernel.org/"
437 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
438 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
439 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
440 - amd64? (
441 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH}
442 - -> linux-${AMD64_CONFIG_VER}.amd64.config
443 - )
444 - x86? (
445 - https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH}
446 - -> linux-${I686_CONFIG_VER}.i686.config
447 - )"
448 -S=${WORKDIR}/${MY_P}
449 -
450 -LICENSE="GPL-2"
451 -KEYWORDS="~amd64 ~x86"
452 -
453 -RDEPEND="
454 - !sys-kernel/vanilla-kernel:${SLOT}
455 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
456 -
457 -pkg_pretend() {
458 - mount-boot_pkg_pretend
459 -
460 - ewarn "This is an experimental package. The built kernel and/or initramfs"
461 - ewarn "may not work at all or fail with your bootloader configuration. Please"
462 - ewarn "make sure to keep a backup kernel available before testing it."
463 -}
464 -
465 -src_prepare() {
466 - local PATCHES=(
467 - # meh, genpatches have no directory
468 - "${WORKDIR}"/*.patch
469 - )
470 - default
471 -
472 - # prepare the default config
473 - case ${ARCH} in
474 - amd64)
475 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
476 - ;;
477 - x86)
478 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
479 - ;;
480 - *)
481 - die "Unsupported arch ${ARCH}"
482 - ;;
483 - esac
484 -
485 - local config_tweaks=(
486 - # shove arch under the carpet!
487 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
488 - # we do support x32
489 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
490 - # disable signatures
491 - -e '/CONFIG_MODULE_SIG/d'
492 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
493 - # disable compression to allow stripping
494 - -e '/CONFIG_MODULE_COMPRESS/d'
495 - # disable gcc plugins to unbreak distcc
496 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
497 - )
498 - sed -i "${config_tweaks[@]}" .config || die
499 -}
500
501 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.13.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.13.ebuild
502 deleted file mode 100644
503 index 3c88e7c1bad..00000000000
504 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.13.ebuild
505 +++ /dev/null
506 @@ -1,81 +0,0 @@
507 -# Copyright 2020 Gentoo Authors
508 -# Distributed under the terms of the GNU General Public License v2
509 -
510 -EAPI=7
511 -
512 -inherit kernel-build
513 -
514 -MY_P=linux-${PV%.*}
515 -GENPATCHES_P=genpatches-${PV%.*}-${PV##*.}
516 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
517 -AMD64_CONFIG_VER=5.4.7.arch1-1
518 -AMD64_CONFIG_HASH=ff79453bc0451a9083bdaa02c3901372d61a9982
519 -# https://git.archlinux32.org/packages/log/core/linux/config.i686
520 -I686_CONFIG_VER=5.4.7-arch1
521 -I686_CONFIG_HASH=f888688da499e17f3c7a5f15a3c44482a29acc2c
522 -
523 -DESCRIPTION="Linux kernel built with Gentoo patches"
524 -HOMEPAGE="https://www.kernel.org/"
525 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
526 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
527 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
528 - amd64? (
529 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH}
530 - -> linux-${AMD64_CONFIG_VER}.amd64.config
531 - )
532 - x86? (
533 - https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH}
534 - -> linux-${I686_CONFIG_VER}.i686.config
535 - )"
536 -S=${WORKDIR}/${MY_P}
537 -
538 -LICENSE="GPL-2"
539 -KEYWORDS="~amd64 ~x86"
540 -
541 -RDEPEND="
542 - !sys-kernel/vanilla-kernel:${SLOT}
543 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
544 -
545 -pkg_pretend() {
546 - mount-boot_pkg_pretend
547 -
548 - ewarn "This is an experimental package. The built kernel and/or initramfs"
549 - ewarn "may not work at all or fail with your bootloader configuration. Please"
550 - ewarn "make sure to keep a backup kernel available before testing it."
551 -}
552 -
553 -src_prepare() {
554 - local PATCHES=(
555 - # meh, genpatches have no directory
556 - "${WORKDIR}"/*.patch
557 - )
558 - default
559 -
560 - # prepare the default config
561 - case ${ARCH} in
562 - amd64)
563 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
564 - ;;
565 - x86)
566 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
567 - ;;
568 - *)
569 - die "Unsupported arch ${ARCH}"
570 - ;;
571 - esac
572 -
573 - local config_tweaks=(
574 - # shove arch under the carpet!
575 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
576 - # we do support x32
577 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
578 - # disable signatures
579 - -e '/CONFIG_MODULE_SIG/d'
580 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
581 - # disable compression to allow stripping
582 - -e '/CONFIG_MODULE_COMPRESS/d'
583 - # disable gcc plugins to unbreak distcc
584 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
585 - )
586 - sed -i "${config_tweaks[@]}" .config || die
587 -}
588
589 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.14.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.14.ebuild
590 deleted file mode 100644
591 index fe8173d10c9..00000000000
592 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.14.ebuild
593 +++ /dev/null
594 @@ -1,81 +0,0 @@
595 -# Copyright 2020 Gentoo Authors
596 -# Distributed under the terms of the GNU General Public License v2
597 -
598 -EAPI=7
599 -
600 -inherit kernel-build
601 -
602 -MY_P=linux-${PV%.*}
603 -GENPATCHES_P=genpatches-${PV%.*}-${PV##*.}
604 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
605 -AMD64_CONFIG_VER=5.4.13.arch1
606 -AMD64_CONFIG_HASH=9eed969590614a38d370a9fe04a4f5d38ba5e06e
607 -# https://git.archlinux32.org/packages/log/core/linux/config.i686
608 -I686_CONFIG_VER=5.4.13-arch1
609 -I686_CONFIG_HASH=95f890a9f9131e7a0e01a4f3e9c5ee423756a233
610 -
611 -DESCRIPTION="Linux kernel built with Gentoo patches"
612 -HOMEPAGE="https://www.kernel.org/"
613 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
614 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
615 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
616 - amd64? (
617 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH}
618 - -> linux-${AMD64_CONFIG_VER}.amd64.config
619 - )
620 - x86? (
621 - https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH}
622 - -> linux-${I686_CONFIG_VER}.i686.config
623 - )"
624 -S=${WORKDIR}/${MY_P}
625 -
626 -LICENSE="GPL-2"
627 -KEYWORDS="~amd64 ~x86"
628 -
629 -RDEPEND="
630 - !sys-kernel/vanilla-kernel:${SLOT}
631 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
632 -
633 -pkg_pretend() {
634 - mount-boot_pkg_pretend
635 -
636 - ewarn "This is an experimental package. The built kernel and/or initramfs"
637 - ewarn "may not work at all or fail with your bootloader configuration. Please"
638 - ewarn "make sure to keep a backup kernel available before testing it."
639 -}
640 -
641 -src_prepare() {
642 - local PATCHES=(
643 - # meh, genpatches have no directory
644 - "${WORKDIR}"/*.patch
645 - )
646 - default
647 -
648 - # prepare the default config
649 - case ${ARCH} in
650 - amd64)
651 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
652 - ;;
653 - x86)
654 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
655 - ;;
656 - *)
657 - die "Unsupported arch ${ARCH}"
658 - ;;
659 - esac
660 -
661 - local config_tweaks=(
662 - # shove arch under the carpet!
663 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
664 - # we do support x32
665 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
666 - # disable signatures
667 - -e '/CONFIG_MODULE_SIG/d'
668 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
669 - # disable compression to allow stripping
670 - -e '/CONFIG_MODULE_COMPRESS/d'
671 - # disable gcc plugins to unbreak distcc
672 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
673 - )
674 - sed -i "${config_tweaks[@]}" .config || die
675 -}
676
677 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.15.ebuild
678 deleted file mode 100644
679 index fe8173d10c9..00000000000
680 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.15.ebuild
681 +++ /dev/null
682 @@ -1,81 +0,0 @@
683 -# Copyright 2020 Gentoo Authors
684 -# Distributed under the terms of the GNU General Public License v2
685 -
686 -EAPI=7
687 -
688 -inherit kernel-build
689 -
690 -MY_P=linux-${PV%.*}
691 -GENPATCHES_P=genpatches-${PV%.*}-${PV##*.}
692 -# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
693 -AMD64_CONFIG_VER=5.4.13.arch1
694 -AMD64_CONFIG_HASH=9eed969590614a38d370a9fe04a4f5d38ba5e06e
695 -# https://git.archlinux32.org/packages/log/core/linux/config.i686
696 -I686_CONFIG_VER=5.4.13-arch1
697 -I686_CONFIG_HASH=95f890a9f9131e7a0e01a4f3e9c5ee423756a233
698 -
699 -DESCRIPTION="Linux kernel built with Gentoo patches"
700 -HOMEPAGE="https://www.kernel.org/"
701 -SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
702 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
703 - https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
704 - amd64? (
705 - https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH}
706 - -> linux-${AMD64_CONFIG_VER}.amd64.config
707 - )
708 - x86? (
709 - https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH}
710 - -> linux-${I686_CONFIG_VER}.i686.config
711 - )"
712 -S=${WORKDIR}/${MY_P}
713 -
714 -LICENSE="GPL-2"
715 -KEYWORDS="~amd64 ~x86"
716 -
717 -RDEPEND="
718 - !sys-kernel/vanilla-kernel:${SLOT}
719 - !sys-kernel/vanilla-kernel-bin:${SLOT}"
720 -
721 -pkg_pretend() {
722 - mount-boot_pkg_pretend
723 -
724 - ewarn "This is an experimental package. The built kernel and/or initramfs"
725 - ewarn "may not work at all or fail with your bootloader configuration. Please"
726 - ewarn "make sure to keep a backup kernel available before testing it."
727 -}
728 -
729 -src_prepare() {
730 - local PATCHES=(
731 - # meh, genpatches have no directory
732 - "${WORKDIR}"/*.patch
733 - )
734 - default
735 -
736 - # prepare the default config
737 - case ${ARCH} in
738 - amd64)
739 - cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
740 - ;;
741 - x86)
742 - cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
743 - ;;
744 - *)
745 - die "Unsupported arch ${ARCH}"
746 - ;;
747 - esac
748 -
749 - local config_tweaks=(
750 - # shove arch under the carpet!
751 - -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
752 - # we do support x32
753 - -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
754 - # disable signatures
755 - -e '/CONFIG_MODULE_SIG/d'
756 - -e '/CONFIG_SECURITY_LOCKDOWN/d'
757 - # disable compression to allow stripping
758 - -e '/CONFIG_MODULE_COMPRESS/d'
759 - # disable gcc plugins to unbreak distcc
760 - -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
761 - )
762 - sed -i "${config_tweaks[@]}" .config || die
763 -}