sys-kernel/xanmod-kernel: drop 6.6.31, 6.8.10, 6.9.1
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
8adaacd56b
commit
48f9846131
@ -1,13 +1,7 @@
|
|||||||
DIST genpatches-6.6-38.base.tar.xz 2066552 BLAKE2B 61205dc2b5d17f15af23d8eb8af0720fe5f6c560ae671c98252d7c9e28e9b93fdde067811664f095ce103beab9bcb1810e9ab9e32a82d972cbbb44ce5257f097 SHA512 ef6d0814f5bd646c49e54fadc46e73ef118466978a6fba1bd18d832e6dd089a1699ec14f40e769e061bdb84f843e94c190b31729b48a36a317d66da6a8d00622
|
|
||||||
DIST genpatches-6.6-38.extras.tar.xz 4052 BLAKE2B 7d25eaaf329cc043fd5189114c5d100f2a3dad9a97b0c87cfc9541ff95ffeb9e3a8a723e5c4fa1f9241c4fd67aac5aa1e4aba96f5cedad5609463b96bc272da7 SHA512 d5957d7ca9718bf87621fb4200b5bbc4e1457fc7fda1500714fc88730a4dfd4dce81e386bd2a2f88e02aff16c46e35402421439e6393a5ad15848d26d9056b44
|
|
||||||
DIST genpatches-6.6-39.base.tar.xz 2117476 BLAKE2B ffc2263d43bf5e87e3a57c0370f1cd1ecfac87ddaaee1ed3213f36bedbe4441ecfb062abebd1312572971e9cc9e5a0e8d3e16c7af98862b087906d61fb4e1e10 SHA512 6db496702e671459f3b054ce7068bfa48fc3b2be6bd3cbc3b158f7d4e0a2fa2310b875e46d233adea870775358e6e9b4f19fe8940d146575df9a41bfafeb1ded
|
DIST genpatches-6.6-39.base.tar.xz 2117476 BLAKE2B ffc2263d43bf5e87e3a57c0370f1cd1ecfac87ddaaee1ed3213f36bedbe4441ecfb062abebd1312572971e9cc9e5a0e8d3e16c7af98862b087906d61fb4e1e10 SHA512 6db496702e671459f3b054ce7068bfa48fc3b2be6bd3cbc3b158f7d4e0a2fa2310b875e46d233adea870775358e6e9b4f19fe8940d146575df9a41bfafeb1ded
|
||||||
DIST genpatches-6.6-39.extras.tar.xz 4048 BLAKE2B ee5b09ec6303feb32fcd38a500900d6c96922a7a4032bea83202d25f914f2bb55d8e2e8e8d3b34911d0cc6755dde1e4382365f7351ccffe9901a0f6f671554c1 SHA512 d73671c60a9b57de492432eac1eac98178e1e3cd6fc2b68f4aaa24e6dc0fa4345a91633bd400f78a982e288033c69e0d28abbffc90ac2bdddb3430d2ab3bae91
|
DIST genpatches-6.6-39.extras.tar.xz 4048 BLAKE2B ee5b09ec6303feb32fcd38a500900d6c96922a7a4032bea83202d25f914f2bb55d8e2e8e8d3b34911d0cc6755dde1e4382365f7351ccffe9901a0f6f671554c1 SHA512 d73671c60a9b57de492432eac1eac98178e1e3cd6fc2b68f4aaa24e6dc0fa4345a91633bd400f78a982e288033c69e0d28abbffc90ac2bdddb3430d2ab3bae91
|
||||||
DIST genpatches-6.8-13.base.tar.xz 781972 BLAKE2B 7e8d26cca0d5fff4e1dbbd7088cb88ca705fa80df33437e1d9ca16305e162757010fa5c3ae5c869c20ed8a3bcbc72f89e055b5b8af1bb9110411e04e920e19d5 SHA512 e57405fe56630baef2d062973576b33b1528640491164f1cfd64bf230a9f2afb0c75e2ac6bfab2f085b4b7aee8c138315a9cfe56abc52e7c1a5385e80eb66ef1
|
|
||||||
DIST genpatches-6.8-13.extras.tar.xz 4048 BLAKE2B 095bac7134081b953aa4c7d5b40305ac572bee80eda680466a84c45bc4775a344dd40806aa6c0600dea61c9b7f9775e7b7481a364cc84aac3b8169bd8830ab63 SHA512 9f9a02ba1b8e1f13946d63d93f1e61959fc8377aaffc4a60e5b46e9f632df98ccbcb998f37e86c0f640ab478f6d0e7e0e92b1a0d04d076e1a0591841d90252b5
|
|
||||||
DIST genpatches-6.8-14.base.tar.xz 791700 BLAKE2B b265239da8f8bf3c61e2f007d06a55205e2bb89f48b2c6fc2cce839205a65ef0ae412dab4908d1ac55de15257961035772642e2401f3a575f354539bafba6b6d SHA512 de7f53507e6bc9a2f752109514bcd916be51a4f7a48f92a8493d6316fcb3cd7379ac014e5dc50b716f67e157f5d27d042b24084e060653c7770e5af0a411fe05
|
DIST genpatches-6.8-14.base.tar.xz 791700 BLAKE2B b265239da8f8bf3c61e2f007d06a55205e2bb89f48b2c6fc2cce839205a65ef0ae412dab4908d1ac55de15257961035772642e2401f3a575f354539bafba6b6d SHA512 de7f53507e6bc9a2f752109514bcd916be51a4f7a48f92a8493d6316fcb3cd7379ac014e5dc50b716f67e157f5d27d042b24084e060653c7770e5af0a411fe05
|
||||||
DIST genpatches-6.8-14.extras.tar.xz 4052 BLAKE2B 0e5895a033a4eaddbac8a22adc57e26d6a21a4364d0cdbc6c170b0c93d463e8a0ffa0c56dd011f169933b29b3b10cdc815301804005b005e1cc0981d677757b4 SHA512 43a3b2777f73f451a5cb27a77f94a34d8f60e41847997b151426319a7b2a05f925d0de6f61f26676c68c1d674b1cbd1f41f32dd5e09c8d9b220a929f9a5491ea
|
DIST genpatches-6.8-14.extras.tar.xz 4052 BLAKE2B 0e5895a033a4eaddbac8a22adc57e26d6a21a4364d0cdbc6c170b0c93d463e8a0ffa0c56dd011f169933b29b3b10cdc815301804005b005e1cc0981d677757b4 SHA512 43a3b2777f73f451a5cb27a77f94a34d8f60e41847997b151426319a7b2a05f925d0de6f61f26676c68c1d674b1cbd1f41f32dd5e09c8d9b220a929f9a5491ea
|
||||||
DIST genpatches-6.9-2.base.tar.xz 7216 BLAKE2B bdff81d1d53ecf00379d8acad8c9b3096fe9267bc895921b75b782b29d7644b192dcc427901a73f885dd341830e2b083f688b1953bb12232daa901af76d9585b SHA512 2f9c0880391044102a384c89bd6327d3a799eb71039c489fd8e3f0b36d8c630a98aaf83a81f9b9182208905866816f8d8304f4f97c81f9cfd54ad3a72929a4a9
|
|
||||||
DIST genpatches-6.9-2.extras.tar.xz 4048 BLAKE2B 304c74f3a680a441fa54666fa5e56a7a46c659acdaffecca1288dc2df421b4c7536596e87f70c243e36a00f47f9fc4b17f11e57f1976e726b8d32a1d9161a609 SHA512 447aecfe363418b2fab60fad10550bf6c4b570ce57ac36a9db93cf7186531c997b1cc94ba4249bac712679f1c23b615c1ded14fcc7d0d0a016c2aa58aaa6e228
|
|
||||||
DIST genpatches-6.9-3.base.tar.xz 22900 BLAKE2B 6cc860e07ef37d83920accee580c0dc69592c2779e729739ed5457d411e5b9bd3ea6b73e57cbc4536f40172439365729ac1d0f921b19e7836c684cfa1fb556d5 SHA512 bd7391b1d987ab5ec9eeee698c04cee6587e6050954d0f54dd7ed382c79565a8929fe7ae9dcd32d4757ea96d4da78780b867455802d84c33dd185ff4bac0f328
|
DIST genpatches-6.9-3.base.tar.xz 22900 BLAKE2B 6cc860e07ef37d83920accee580c0dc69592c2779e729739ed5457d411e5b9bd3ea6b73e57cbc4536f40172439365729ac1d0f921b19e7836c684cfa1fb556d5 SHA512 bd7391b1d987ab5ec9eeee698c04cee6587e6050954d0f54dd7ed382c79565a8929fe7ae9dcd32d4757ea96d4da78780b867455802d84c33dd185ff4bac0f328
|
||||||
DIST genpatches-6.9-3.extras.tar.xz 4052 BLAKE2B 5c97314b601fac604449ffd391d3c1389bec1a5c5bebc3a7fc3678c44de8bee31431f01567ea7b239ac62c22c149d4e563f6f52336f0eced4a105b99a1a3b93d SHA512 84ef3f91d3c9823b7371022b276d3b5c7bb86fc7be00aaffeddca171438c21f70291e67c992fa75f7222fa964f049be2816bcf7e081e35fbbb31d68da8c5bd08
|
DIST genpatches-6.9-3.extras.tar.xz 4052 BLAKE2B 5c97314b601fac604449ffd391d3c1389bec1a5c5bebc3a7fc3678c44de8bee31431f01567ea7b239ac62c22c149d4e563f6f52336f0eced4a105b99a1a3b93d SHA512 84ef3f91d3c9823b7371022b276d3b5c7bb86fc7be00aaffeddca171438c21f70291e67c992fa75f7222fa964f049be2816bcf7e081e35fbbb31d68da8c5bd08
|
||||||
DIST genpatches-6.9-4.base.tar.xz 158304 BLAKE2B cf964990abe6f7428e3a590752519f9a0bb16416186f06e6e377a33fc48acb42b38515e5a628f3394b418780fbb6b420636d6b896ea92906578e0bdf57b6125c SHA512 ad9e039a8a7ee29a5c258b42cd688737c9c575c097ced8d23792bbb2856480081a64cfc65488e5c0c8d5c6cdab9016be22183199ee8357c1c1ca372360035b1c
|
DIST genpatches-6.9-4.base.tar.xz 158304 BLAKE2B cf964990abe6f7428e3a590752519f9a0bb16416186f06e6e377a33fc48acb42b38515e5a628f3394b418780fbb6b420636d6b896ea92906578e0bdf57b6125c SHA512 ad9e039a8a7ee29a5c258b42cd688737c9c575c097ced8d23792bbb2856480081a64cfc65488e5c0c8d5c6cdab9016be22183199ee8357c1c1ca372360035b1c
|
||||||
@ -16,10 +10,7 @@ DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd84
|
|||||||
DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
|
DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
|
||||||
DIST linux-6.8.tar.xz 142502100 BLAKE2B c6f17f816cea16e629f63e9379b98888713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2 SHA512 5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068
|
DIST linux-6.8.tar.xz 142502100 BLAKE2B c6f17f816cea16e629f63e9379b98888713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2 SHA512 5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068
|
||||||
DIST linux-6.9.tar.xz 144034416 BLAKE2B 4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e SHA512 fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579
|
DIST linux-6.9.tar.xz 144034416 BLAKE2B 4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e SHA512 fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579
|
||||||
DIST patch-6.6.31-xanmod1.xz 2039336 BLAKE2B 085151b8b149b488d6552c4918943b97cfe80a2b248c512e828ccfba03cd35fb95878ba8549fb69f10f01e8ad2686734e9b6487b1dc53fba42ee1f18bbfe31c9 SHA512 4074f45f5a9f1b6a377f72f632703da596a35be3566c94747aec15ccbfbd06e625ad21655ba77df6b76ac75b77e69d37b83e140ffe755ccb270957328fdf351d
|
|
||||||
DIST patch-6.6.32-xanmod1.xz 2083224 BLAKE2B ed1c5690e96b14c09711269c09e066989ef7ae53d7a79ed07cc48948d235deeff11d33a1d384ee6f9fc800c670f6365e75ec4285cc8ba80a8eaa3341a216b98b SHA512 17d5152409995f023dc8f86fc315718c2e8eeee4d74a206653824310f731de9e3256392b60eef063e9ea47e69a0ccf4ae1296e0c4c720d9075189075e1e6c027
|
DIST patch-6.6.32-xanmod1.xz 2083224 BLAKE2B ed1c5690e96b14c09711269c09e066989ef7ae53d7a79ed07cc48948d235deeff11d33a1d384ee6f9fc800c670f6365e75ec4285cc8ba80a8eaa3341a216b98b SHA512 17d5152409995f023dc8f86fc315718c2e8eeee4d74a206653824310f731de9e3256392b60eef063e9ea47e69a0ccf4ae1296e0c4c720d9075189075e1e6c027
|
||||||
DIST patch-6.8.10-xanmod1.xz 878800 BLAKE2B 9dfe93c4afd34828fde20978a7491aa122111a8f60ea9ff65d9125d8e5f9353b629d84d56a008d91aaa684a3095859378476a5e6c5a67a05666830ec0c8f5b86 SHA512 413aa3d3fcbce7065f96e82d36c5ac805b4c8fdfb3e6de3c9fe6d2e39b2789740341147058274fa695c31d32de6092ecd7ac77ca2c246197dd7acb776035496d
|
|
||||||
DIST patch-6.8.11-xanmod1.xz 888708 BLAKE2B 7a5adf8a4f844c9f83e03083474af404e6f44c46b4483c79087066aaf011e0bcccbe4a2184166aafaa868d1ccc2fad0d7863eb9fc77d74ba66864ae771fd4e7d SHA512 c42030b8c9a150f49a108821fece2333fe803904da926f7282b4c458af560c95c785252d555dede3ecb47d93be9125b4d9e29b41961a2f2e63a7bf5e858dd43c
|
DIST patch-6.8.11-xanmod1.xz 888708 BLAKE2B 7a5adf8a4f844c9f83e03083474af404e6f44c46b4483c79087066aaf011e0bcccbe4a2184166aafaa868d1ccc2fad0d7863eb9fc77d74ba66864ae771fd4e7d SHA512 c42030b8c9a150f49a108821fece2333fe803904da926f7282b4c458af560c95c785252d555dede3ecb47d93be9125b4d9e29b41961a2f2e63a7bf5e858dd43c
|
||||||
DIST patch-6.9.1-xanmod1.xz 153228 BLAKE2B da34c7e80e06214d7994ab4da1ac6a8f33070a8ac9d2ff853b3c2636c672513ebd9d8b6f950c5dd50bb8fdcb64f73a2a1a7803c4b7988c2ec089688c7ee75ac7 SHA512 2017a46d24920409733648b92298c4c64c6bd781ee14a968cd7f101ba036ca559eb85dbbd336a1015c471633d737209e83bff726a64462e20eea5a31c63c685b
|
|
||||||
DIST patch-6.9.2-xanmod1.xz 164656 BLAKE2B e820e536d206ff8c3c341dc77b35f52d85382510d805f8fafe1bf2d5ff5b1dfd17c4e0d6816d48fc9c087c6558ce935fb43065a65cb620448b7ebdb83c0685b5 SHA512 34d05b47b0abd45f6ac153681812a3e527a5ea43ac44a05ae07f7bb24c07a204bfd29d193f2c600e8fd0e9aba8b3d90607372b9aa25aa63f000652c49552b436
|
DIST patch-6.9.2-xanmod1.xz 164656 BLAKE2B e820e536d206ff8c3c341dc77b35f52d85382510d805f8fafe1bf2d5ff5b1dfd17c4e0d6816d48fc9c087c6558ce935fb43065a65cb620448b7ebdb83c0685b5 SHA512 34d05b47b0abd45f6ac153681812a3e527a5ea43ac44a05ae07f7bb24c07a204bfd29d193f2c600e8fd0e9aba8b3d90607372b9aa25aa63f000652c49552b436
|
||||||
DIST patch-6.9.3-xanmod1.xz 298412 BLAKE2B 4ccf3e9157d917e41d6728e991fef411fefa568df3939fdb22a69156a976aba4ffb80ec036441b7bed8c4fc0b30786149b12cfaee66cc0649fc94d99ab641c94 SHA512 a51f3d227905bcda57ec22974eb78fa7239b8cfa9421124f0f35af7c3e1f143c6557bd487aaa3a42da02fdb6aa968225fd5617ecf87ee7befc2928331a8707ce
|
DIST patch-6.9.3-xanmod1.xz 298412 BLAKE2B 4ccf3e9157d917e41d6728e991fef411fefa568df3939fdb22a69156a976aba4ffb80ec036441b7bed8c4fc0b30786149b12cfaee66cc0649fc94d99ab641c94 SHA512 a51f3d227905bcda57ec22974eb78fa7239b8cfa9421124f0f35af7c3e1f143c6557bd487aaa3a42da02fdb6aa968225fd5617ecf87ee7befc2928331a8707ce
|
||||||
|
@ -1,87 +0,0 @@
|
|||||||
# Copyright 2022-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
KERNEL_IUSE_GENERIC_UKI=1
|
|
||||||
KERNEL_IUSE_MODULES_SIGN=1
|
|
||||||
|
|
||||||
inherit kernel-build
|
|
||||||
|
|
||||||
MY_P=linux-${PV%.*}
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
|
|
||||||
GENTOO_CONFIG_VER=g13
|
|
||||||
|
|
||||||
XANMOD_VERSION="1"
|
|
||||||
|
|
||||||
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
|
||||||
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
|
||||||
SRC_URI="
|
|
||||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
|
||||||
https://downloads.sourceforge.net/xanmod/patch-${PV}-xanmod${XANMOD_VERSION}.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
|
||||||
https://github.com/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="-* ~amd64"
|
|
||||||
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!sys-kernel/xanmod-kernel-bin:${SLOT}
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
QA_FLAGS_IGNORED="
|
|
||||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
|
||||||
usr/src/linux-.*/vmlinux
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Remove linux-stable patches (see 0000_README)
|
|
||||||
find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die
|
|
||||||
|
|
||||||
local PATCHES=(
|
|
||||||
# meh, genpatches have no directory
|
|
||||||
"${WORKDIR}"/patch-${PV}-xanmod${XANMOD_VERSION}
|
|
||||||
"${WORKDIR}"/*.patch
|
|
||||||
)
|
|
||||||
default
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
rm "${S}/localversion" || die
|
|
||||||
local myversion="-xanmod${XANMOD_VERSION}-dist"
|
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
|
||||||
|
|
||||||
local merge_configs=(
|
|
||||||
"${T}"/version.config
|
|
||||||
"${dist_conf_path}"/base.config
|
|
||||||
)
|
|
||||||
use debug || merge_configs+=(
|
|
||||||
"${dist_conf_path}"/no-debug.config
|
|
||||||
"${FILESDIR}"/no-debug-extra.config
|
|
||||||
)
|
|
||||||
|
|
||||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
@ -1,87 +0,0 @@
|
|||||||
# Copyright 2022-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
KERNEL_IUSE_GENERIC_UKI=1
|
|
||||||
KERNEL_IUSE_MODULES_SIGN=1
|
|
||||||
|
|
||||||
inherit kernel-build
|
|
||||||
|
|
||||||
MY_P=linux-${PV%.*}
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
|
|
||||||
GENTOO_CONFIG_VER=g13
|
|
||||||
|
|
||||||
XANMOD_VERSION="1"
|
|
||||||
|
|
||||||
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
|
||||||
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
|
||||||
SRC_URI="
|
|
||||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
|
||||||
https://downloads.sourceforge.net/xanmod/patch-${PV}-xanmod${XANMOD_VERSION}.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
|
||||||
https://github.com/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="-* ~amd64"
|
|
||||||
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!sys-kernel/xanmod-kernel-bin:${SLOT}
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
QA_FLAGS_IGNORED="
|
|
||||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
|
||||||
usr/src/linux-.*/vmlinux
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Remove linux-stable patches (see 0000_README)
|
|
||||||
find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die
|
|
||||||
|
|
||||||
local PATCHES=(
|
|
||||||
# meh, genpatches have no directory
|
|
||||||
"${WORKDIR}"/patch-${PV}-xanmod${XANMOD_VERSION}
|
|
||||||
"${WORKDIR}"/*.patch
|
|
||||||
)
|
|
||||||
default
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
rm "${S}/localversion" || die
|
|
||||||
local myversion="-xanmod${XANMOD_VERSION}-dist"
|
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
|
||||||
|
|
||||||
local merge_configs=(
|
|
||||||
"${T}"/version.config
|
|
||||||
"${dist_conf_path}"/base.config
|
|
||||||
)
|
|
||||||
use debug || merge_configs+=(
|
|
||||||
"${dist_conf_path}"/no-debug.config
|
|
||||||
"${FILESDIR}"/no-debug-extra.config
|
|
||||||
)
|
|
||||||
|
|
||||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
@ -1,87 +0,0 @@
|
|||||||
# Copyright 2022-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
KERNEL_IUSE_GENERIC_UKI=1
|
|
||||||
KERNEL_IUSE_MODULES_SIGN=1
|
|
||||||
|
|
||||||
inherit kernel-build
|
|
||||||
|
|
||||||
MY_P=linux-${PV%.*}
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 ))
|
|
||||||
GENTOO_CONFIG_VER=g13
|
|
||||||
|
|
||||||
XANMOD_VERSION="1"
|
|
||||||
|
|
||||||
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
|
||||||
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
|
||||||
SRC_URI="
|
|
||||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
|
||||||
https://downloads.sourceforge.net/xanmod/patch-${PV}-xanmod${XANMOD_VERSION}.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
|
||||||
https://github.com/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="-* ~amd64"
|
|
||||||
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!sys-kernel/xanmod-kernel-bin:${SLOT}
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
QA_FLAGS_IGNORED="
|
|
||||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
|
||||||
usr/src/linux-.*/vmlinux
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Remove linux-stable patches (see 0000_README)
|
|
||||||
find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die
|
|
||||||
|
|
||||||
local PATCHES=(
|
|
||||||
# meh, genpatches have no directory
|
|
||||||
"${WORKDIR}"/patch-${PV}-xanmod${XANMOD_VERSION}
|
|
||||||
"${WORKDIR}"/*.patch
|
|
||||||
)
|
|
||||||
default
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
rm "${S}/localversion" || die
|
|
||||||
local myversion="-xanmod${XANMOD_VERSION}-dist"
|
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
|
||||||
|
|
||||||
local merge_configs=(
|
|
||||||
"${T}"/version.config
|
|
||||||
"${dist_conf_path}"/base.config
|
|
||||||
)
|
|
||||||
use debug || merge_configs+=(
|
|
||||||
"${dist_conf_path}"/no-debug.config
|
|
||||||
"${FILESDIR}"/no-debug-extra.config
|
|
||||||
)
|
|
||||||
|
|
||||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user