sys-kernel/xanmod-kernel: add 6.6.34, 6.9.5
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
c86d407473
commit
241238f48b
@ -2,14 +2,20 @@ DIST genpatches-6.6-39.base.tar.xz 2117476 BLAKE2B ffc2263d43bf5e87e3a57c0370f1c
|
|||||||
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.6-40.base.tar.xz 2364536 BLAKE2B 53bf04c020921c8d0c2e7ff8466db4cf5078ac8985e95b5b94c5fe9e824747d66344acd5d8675c42364704dc34268cd636fe10bcb02b657cac889ea8d0b4ae48 SHA512 c5852fc2db474fcf697818cec947cfcce0dcff834c57c042c42321889839d94c26d1994dfc275e64e0acba3055c90f0f0cc4e2a07c80a71a71f3ba99f6093401
|
DIST genpatches-6.6-40.base.tar.xz 2364536 BLAKE2B 53bf04c020921c8d0c2e7ff8466db4cf5078ac8985e95b5b94c5fe9e824747d66344acd5d8675c42364704dc34268cd636fe10bcb02b657cac889ea8d0b4ae48 SHA512 c5852fc2db474fcf697818cec947cfcce0dcff834c57c042c42321889839d94c26d1994dfc275e64e0acba3055c90f0f0cc4e2a07c80a71a71f3ba99f6093401
|
||||||
DIST genpatches-6.6-40.extras.tar.xz 4052 BLAKE2B e3e882483caa9222b702b1387c1cd5a1888b6466611b3dca23f9368f423040f27006c8889e477a4ef52719213433e4ad6187322e80ea236ff390aa306b4a5e33 SHA512 509bfb18a8218c6a7eec28543cad0db44b5a693c50465dfda09b92dd176a5102c3c2fd064a7426c0b33d4acd1dd58b77483babcd44389999bbfbc5757cd0fac9
|
DIST genpatches-6.6-40.extras.tar.xz 4052 BLAKE2B e3e882483caa9222b702b1387c1cd5a1888b6466611b3dca23f9368f423040f27006c8889e477a4ef52719213433e4ad6187322e80ea236ff390aa306b4a5e33 SHA512 509bfb18a8218c6a7eec28543cad0db44b5a693c50465dfda09b92dd176a5102c3c2fd064a7426c0b33d4acd1dd58b77483babcd44389999bbfbc5757cd0fac9
|
||||||
|
DIST genpatches-6.6-41.base.tar.xz 2399184 BLAKE2B 5765835d442a0afe00be3070b1780107331959538c7a9a7b7d8107e9c9bd563b0dc25f031db926ae3b24f2ea4126d1c8e29837e5993f647896ca6ed620158274 SHA512 7601b25d287627373f69628de865658305471f428ba20bd41d9e2cc3762e2ee4648675f899843ea6c4b6b68c108cd3a5d049bae249ddfc089f2988ee69ed1491
|
||||||
|
DIST genpatches-6.6-41.extras.tar.xz 4052 BLAKE2B a3ed97dd21f02f8b5a8b2e315b9581780310177da774123c7cfdb30c13485e1ec8379b57e10749e3abbd1860f7e52a5111ac5f63250d015e9aec5e64386d4571 SHA512 39932e2c61d1687ceb64698186551ac5e8c184f58e24692f6b22cde65644da5375c58f26dd7cb0e1bf5f21a737b6fcc6ffbd86372e5c055c8dd2ae001efcaf6c
|
||||||
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
|
||||||
DIST genpatches-6.9-4.extras.tar.xz 4048 BLAKE2B 7a47f3ef9bd870175c4373d064316fa746c3480a4075492fb04b4eca4496ab2c33c713875997a4fa33695177bbade0b6686f7d7e4f2cba110cd89a0f2017e2cd SHA512 5cd79406ad14a07fb95fc94a5aaee2bcd18f143996c111e16675b77402e9ee0917fd51f2a2023fd58d462caa2edfe5a950eb72bdb04870b185012b20ff302560
|
DIST genpatches-6.9-4.extras.tar.xz 4048 BLAKE2B 7a47f3ef9bd870175c4373d064316fa746c3480a4075492fb04b4eca4496ab2c33c713875997a4fa33695177bbade0b6686f7d7e4f2cba110cd89a0f2017e2cd SHA512 5cd79406ad14a07fb95fc94a5aaee2bcd18f143996c111e16675b77402e9ee0917fd51f2a2023fd58d462caa2edfe5a950eb72bdb04870b185012b20ff302560
|
||||||
DIST genpatches-6.9-5.base.tar.xz 275240 BLAKE2B cb961b8245eaa58405bf758f4432f1ad98b767d7f9ea8e45fb440bd2616e67c6e12cff6ec3af89748f19043c9b0b58b634e28e7bcdc469fcc4daf2f752b3a438 SHA512 60fb3290eabe8289fc4acb4f1df809ace44d7678188683b64ef2ec92edb8c2ac0d757280ebb63087145fd068e64619a3b0a9227fd5f3061099d287e8e8dd5720
|
DIST genpatches-6.9-5.base.tar.xz 275240 BLAKE2B cb961b8245eaa58405bf758f4432f1ad98b767d7f9ea8e45fb440bd2616e67c6e12cff6ec3af89748f19043c9b0b58b634e28e7bcdc469fcc4daf2f752b3a438 SHA512 60fb3290eabe8289fc4acb4f1df809ace44d7678188683b64ef2ec92edb8c2ac0d757280ebb63087145fd068e64619a3b0a9227fd5f3061099d287e8e8dd5720
|
||||||
DIST genpatches-6.9-5.extras.tar.xz 4052 BLAKE2B e72e5a5195db42f38ed671899217d7609eb8a5d9f954ebbc36a53a88fcadd1cadecf7257b33a880661e949f2c7b176a5762ecc1e56be0195e6768d8be8ae5fc4 SHA512 3d9315afb5c45cf24f6e5287048d49f6969e49ba2c8f339d9f4da0f5a08708ffa65636c3d24efdcfd246f6d28c72535089078971e97f7aefeb75119a67cee11d
|
DIST genpatches-6.9-5.extras.tar.xz 4052 BLAKE2B e72e5a5195db42f38ed671899217d7609eb8a5d9f954ebbc36a53a88fcadd1cadecf7257b33a880661e949f2c7b176a5762ecc1e56be0195e6768d8be8ae5fc4 SHA512 3d9315afb5c45cf24f6e5287048d49f6969e49ba2c8f339d9f4da0f5a08708ffa65636c3d24efdcfd246f6d28c72535089078971e97f7aefeb75119a67cee11d
|
||||||
|
DIST genpatches-6.9-6.base.tar.xz 319896 BLAKE2B 8b58a70db0844a8455fb413de046cf0998c19c2ace54918a3408f9d31eae6bf276d6a86f5db835cc3ac87335d908c2ba853fd2f334e80cd06e7e72847483d3de SHA512 fa3f1efa0886a6df0ce8006a4433a8bf91731069aed6040e1e4ac9002dbb879ed644f2ba1b258a92ae8550709b85a3c1d2657df000cc6dfe4f79d32c991efcb6
|
||||||
|
DIST genpatches-6.9-6.extras.tar.xz 4052 BLAKE2B cf761f7035971e6f2be6ac719048fba08f203b2f400bd7fbb62e4e10bb7d5c508dc7e79f85812ccd1ee1cbc791c4f19a6becab2dbdfd4ad2c3ec2b1ce0f2bb47 SHA512 fbdd60a92f8dbafb30dfdd65b3e0c03cf274dbb148c092f40dfc2bdd4e5d7d18f68c9064bf0419e7dff5c94c67fba3922bb474ec717dda8094b37ab489cfc8bc
|
||||||
DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6
|
DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6
|
||||||
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.9.tar.xz 144034416 BLAKE2B 4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e SHA512 fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579
|
DIST linux-6.9.tar.xz 144034416 BLAKE2B 4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e SHA512 fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579
|
||||||
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.6.33-xanmod1.xz 2307412 BLAKE2B 692144ed4accd4d0b0eea8a2d958dd774596d17bfa27af87fd0abc2d2d02eed70b9c520e9a423dd2ec1ab23f0e0810fab81d8edfb827bf490a9a9473315537aa SHA512 95eaeba7ba618a7950dba2e21557570d96bf018c4438fb351b8a890fb2fc961c7fb1607db36de72f273d33cf14671fcf529ba680847191e5f3bc9962c11e2949
|
DIST patch-6.6.33-xanmod1.xz 2307412 BLAKE2B 692144ed4accd4d0b0eea8a2d958dd774596d17bfa27af87fd0abc2d2d02eed70b9c520e9a423dd2ec1ab23f0e0810fab81d8edfb827bf490a9a9473315537aa SHA512 95eaeba7ba618a7950dba2e21557570d96bf018c4438fb351b8a890fb2fc961c7fb1607db36de72f273d33cf14671fcf529ba680847191e5f3bc9962c11e2949
|
||||||
|
DIST patch-6.6.34-xanmod1.xz 2337276 BLAKE2B 1c406224aabb66fe4594e431029300ba79a81f9a05cdffa7553ad8819a622af48a69e121cee49db98b79c77f9a5b505f50b873c0ad515ce61c6428fd7934c9b8 SHA512 7a9ba799d895940f7a4ee0d64405aa9afb874988826f335176f4a05f126113c08a4ffa782914849c91a224f5dd65d0ab557a28e2617424829b3e9760f30f457a
|
||||||
DIST patch-6.9.3-xanmod1.xz 298412 BLAKE2B 4ccf3e9157d917e41d6728e991fef411fefa568df3939fdb22a69156a976aba4ffb80ec036441b7bed8c4fc0b30786149b12cfaee66cc0649fc94d99ab641c94 SHA512 a51f3d227905bcda57ec22974eb78fa7239b8cfa9421124f0f35af7c3e1f143c6557bd487aaa3a42da02fdb6aa968225fd5617ecf87ee7befc2928331a8707ce
|
DIST patch-6.9.3-xanmod1.xz 298412 BLAKE2B 4ccf3e9157d917e41d6728e991fef411fefa568df3939fdb22a69156a976aba4ffb80ec036441b7bed8c4fc0b30786149b12cfaee66cc0649fc94d99ab641c94 SHA512 a51f3d227905bcda57ec22974eb78fa7239b8cfa9421124f0f35af7c3e1f143c6557bd487aaa3a42da02fdb6aa968225fd5617ecf87ee7befc2928331a8707ce
|
||||||
DIST patch-6.9.4-xanmod1.xz 412864 BLAKE2B 15ea752217f26b7186c65f8c0f50b7e05bf67cd561078e55aef9ed87f31558c130466c2c8015fdf52f6ba7ca475c4ff62bd4d88f85bf0f26c31f141dccc9e3b8 SHA512 5a22750d8ad7c1b7157417239fea7bd0fc0e9a5e13bda68c3edf7d6acf4654bd9db6580573f86c66b9f8e0f8c71bbe6181343258e9e705c9b20413bd1384e7cb
|
DIST patch-6.9.4-xanmod1.xz 412864 BLAKE2B 15ea752217f26b7186c65f8c0f50b7e05bf67cd561078e55aef9ed87f31558c130466c2c8015fdf52f6ba7ca475c4ff62bd4d88f85bf0f26c31f141dccc9e3b8 SHA512 5a22750d8ad7c1b7157417239fea7bd0fc0e9a5e13bda68c3edf7d6acf4654bd9db6580573f86c66b9f8e0f8c71bbe6181343258e9e705c9b20413bd1384e7cb
|
||||||
|
DIST patch-6.9.5-xanmod1.xz 455596 BLAKE2B bddc5f3831f57cf06ae025e5f5f9f8332e3a247208f352353189c76c7c489db00b43b12d33f591ad0b8373fa70be0d1363cf3dd5f6195a22b8e16ffebb171f89 SHA512 8b762527ac037fe97452b18eb8d9302bbee45a3e7e38bc7fabbf34aef9c42921714d088fd800dbe13aef6da6b30cf024810579dbae080288160440316582324a
|
||||||
|
87
sys-kernel/xanmod-kernel/xanmod-kernel-6.6.34.ebuild
Normal file
87
sys-kernel/xanmod-kernel/xanmod-kernel-6.6.34.ebuild
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# 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/project/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[@]}"
|
||||||
|
}
|
87
sys-kernel/xanmod-kernel/xanmod-kernel-6.9.5.ebuild
Normal file
87
sys-kernel/xanmod-kernel/xanmod-kernel-6.9.5.ebuild
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# 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/project/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