Compare commits
No commits in common. "80d3fd844622a7286bfb724451037fbfbc19eccd" and "975811ad46c8d48d0b84ac105b9752827f8070a3" have entirely different histories.
80d3fd8446
...
975811ad46
@ -1,8 +1,21 @@
|
|||||||
|
DIST genpatches-5.18-11.base.tar.xz 547804 BLAKE2B d0550c546e93b806d96c8e64c5ea90d22f9675f2c6a020032ce5e35b7401601c79d2849c0d82cc53673e6c22fafc975035509079253f235c7db769fe20670e59 SHA512 4301f61e38ede94fa5c6e02f67e22dc32cb1078463aaf641ac81d959444e8088c1e7da6c3ac7d877f1f94777bf14de1a24207caaa8c560fdfc352a6972ea5b47
|
||||||
|
DIST genpatches-5.18-11.extras.tar.xz 3924 BLAKE2B de48f32f46f5d8fd8cb607490eae51338e6e7e94501e2e1ded2c990274270d80c7a883ed227203cb7306c0259f8dbe226ca3ae271eab76e367eae0ca7bd653e0 SHA512 bcb9190ba00f1028ede7ec7c18615260d8de263f508cd9c543938c6dc0fc9b0be856be386af4a86770562453e094e1794fad064baffdcb4363cb128abb35fa75
|
||||||
|
DIST genpatches-5.18-18.base.tar.xz 701140 BLAKE2B ee91222d6f6ce56d30cfe02b5546fcf7ee3ba04852c4875e9c98ed4177a7b73311e515e543a20107ddd1542077c9b4e2d13fd9cd0e05d507ade84f8fbb942300 SHA512 57aa8878d165ce05c2981c25e9a381df8ac8004336de88b330f779841683a1998dce79cb0e0c1263c77c81a84f01768630ff5e2385693a79b420b5ba05136a1b
|
||||||
|
DIST genpatches-5.18-18.extras.tar.xz 3924 BLAKE2B f01ece5d1568a0a760b58108571cfcad343a37be3d344ea728ff89d3fa5c972d7d1c6808ec41ec699ece98a2049ea2c5cc036bae5f44e93cf23528a71e3aa922 SHA512 e810217c00867d3836c4606586e35cc26e8c934382d5927ca188249610b613605437013ca0015217d650e89bede32d67f4daa443bd445dec382832a4e43937ab
|
||||||
|
DIST genpatches-5.18-4.base.tar.xz 51808 BLAKE2B f9a33dabb82687789f6f778b1eea29e29d1ff8601954f6125530cd98a88b9469c3255c0858c767806580b018be9a4bde23805240d266f0b8cb52a3031bbc836c SHA512 7ddcff3c89328b0fa1c25fffd595f13b2ab9569d9387a503937c7f58f44e0ab4fdda53b260a476316c85e9459a439be03cf875683b594a6a3b10c4320d2a274e
|
||||||
|
DIST genpatches-5.18-4.extras.tar.xz 3924 BLAKE2B 9d555b98ccc35b3d42caf7fabd46756b18ca121a80b041a1a44799f283cd6062e0023618cf94867baebb7ab9c71b8a812f75beded436eaaab79ac52674e8242e SHA512 d9b75f29090f45b801fb94f7bca4d5ef9458d243ea5719059a427f45ab045be1696856dae9c47b43f08c70024de5e29e08bcf78179f684cbec797063be97987a
|
||||||
|
DIST genpatches-5.18-7.base.tar.xz 431972 BLAKE2B f35163850c12f2610d487c7ed42b80b1f88b982f10476124d6e19b942ef1e2a012100325ff98807fa3664adc62116e843cc584d068335767c374d29d24f33b76 SHA512 9967d15c984f731dbfe7fb7c9bdb1270678efb565bccde88dd9c4bde6b3e93720d52c96db943110e07aa257401431e9bdc9f4149f9bd1cd983605ce369277d0c
|
||||||
|
DIST genpatches-5.18-7.extras.tar.xz 3920 BLAKE2B dac0cba1f0a14780c6b8af044fc505466671360b06bc15c3ea1dc4b69ed1ab3978030d68d8417b52b972e7567dea8e42cdf3894b7bd86420bfdff3e7afb075b7 SHA512 cf97f18c7bd726494c0091303101ab3bee99cd9243a681eab4460c4f0c9edd5b03e23be3295a828f2eaee0af35d033eb8bd468dae2d981afba5af47a7ac20020
|
||||||
DIST genpatches-5.19-11.base.tar.xz 766852 BLAKE2B bc8fa5969dd4c75920a094b5135f60d728a36a431fb5213c338f6308761b7f8ce24e3991a2de70b7c2d87a9256cafa3b22db7c683e38fe10363b15043073092f SHA512 6cd414842f48d9ecf85e0f07fd930e526db089720efaf95916b8ec9394f458a6b1bf178c8e55d6ecf9a7ec5520cc43c50cf1248a8c3467ed069594123586ee1c
|
DIST genpatches-5.19-11.base.tar.xz 766852 BLAKE2B bc8fa5969dd4c75920a094b5135f60d728a36a431fb5213c338f6308761b7f8ce24e3991a2de70b7c2d87a9256cafa3b22db7c683e38fe10363b15043073092f SHA512 6cd414842f48d9ecf85e0f07fd930e526db089720efaf95916b8ec9394f458a6b1bf178c8e55d6ecf9a7ec5520cc43c50cf1248a8c3467ed069594123586ee1c
|
||||||
DIST genpatches-5.19-11.extras.tar.xz 3804 BLAKE2B 3186d10e8a31ca501f36ae3e7945acbba7a17cd7d006b51a7a4136d2c1064efb070fb7870f4b1959eb87456131608b5d31a91987c79f8720b267537a38643211 SHA512 10c4b7c51bf4a891ee04826df0da29096e31601126435bcde168f7c3d32416395844e03d3fd55b9b225c7c8dc0216ae8691705c53786f06e0350f6fb1ec03f69
|
DIST genpatches-5.19-11.extras.tar.xz 3804 BLAKE2B 3186d10e8a31ca501f36ae3e7945acbba7a17cd7d006b51a7a4136d2c1064efb070fb7870f4b1959eb87456131608b5d31a91987c79f8720b267537a38643211 SHA512 10c4b7c51bf4a891ee04826df0da29096e31601126435bcde168f7c3d32416395844e03d3fd55b9b225c7c8dc0216ae8691705c53786f06e0350f6fb1ec03f69
|
||||||
DIST genpatches-5.19-14.base.tar.xz 851936 BLAKE2B 8850a35f62720a0b12216414e5cf40a934e8e38a8346824688554c770189a25c9c56de312f98fdca7b3d4b7a3811102af9fe8cc869f27116efd28dd1d4a5cb4e SHA512 d06a54043845c4506cdd4c164421c818abfb0b8b48e20a28fd25fa634775335118a9687fdc5f886833c24d4185c8aac186988981c02f05e1fe761bb409bc2e3f
|
DIST genpatches-5.19-2.base.tar.xz 11468 BLAKE2B 34f610cf3d91e8af3fe8daaf127fd305fae55b0f8ce42669a3660b23536116671bc8769ff2325c7e1a08a9424c00ca840d57965c843847c37c0b0896bb8dcca4 SHA512 6e923c6e4b7052e486de64e8c46ff98f9b7c1bac4c996f6fdd9641cc09b117302de22b95a73d9f62615dd08f5bc2a1525f38231af40d44e68a3064a64e562248
|
||||||
DIST genpatches-5.19-14.extras.tar.xz 3808 BLAKE2B a6bf77870b14ccb61e0fb2ea0400fb83538491870bd84c9039074d8765d6cd1c0bbadd16b963898a0e01f7808e320006d9823482544a61bca551ca624fa5d87a SHA512 e7bf591d2fea8d4e9b7678e2189953986521a8a01e7cc470005cc1fa8608b73d716cfec02c87e849578aa8581317899a48aa373c683bab3a67f05098f101d94d
|
DIST genpatches-5.19-2.extras.tar.xz 3772 BLAKE2B 73839fd5ad6aa8bf128a3350009815eb027d278463d93113f211a1b3f33c3c3b0ba37b3415d9ba1428ae8c7e6cbf5aaf98b540703acc44d956201abd948569bd SHA512 a49ddb49046045de528099c3c7f619cc6bef4bd54e5b9dc808ac8fb7c1f892db132f37ab0e0ea77ffd397e8b43529dea40ef2d6cef154e9fe5dd912dc665d52f
|
||||||
|
DIST gentoo-kernel-config-g1.tar.gz 4283 BLAKE2B 44dd51ec45ebc71bffcd6d85a2fefba053f7bce8035057f0bbe928e24816ad4ba03c9bf67dcfcd6d6d1833c0a2ea93e0fd486c2093664dc41ccce316e1e60588 SHA512 3a45f28df9d457df0fe0d185da8b10f4e35f49dad75075e041e8cf3cf6972fecc8145cd557b0bf3a8dea20ddffae0194f88e61c1e5098fa0a5ca301d40aeea2e
|
||||||
DIST gentoo-kernel-config-g2.tar.gz 4359 BLAKE2B 965392fb5b3c1290c596d3e8593cfcf54e76cedd47de335c1b9658c1b35649af18a94639bf3df84507c797e6d7ea074f7f2a2579d2d01073478b30a4f167b2aa SHA512 d1bdef2e817799fcebbcdae1f3b1666f8ca70b0d5adca74014dd665f6b02c81b839220d8fe3794ea1202e1f2589d281344699864207c98b95d23a1d1f03bd42d
|
DIST gentoo-kernel-config-g2.tar.gz 4359 BLAKE2B 965392fb5b3c1290c596d3e8593cfcf54e76cedd47de335c1b9658c1b35649af18a94639bf3df84507c797e6d7ea074f7f2a2579d2d01073478b30a4f167b2aa SHA512 d1bdef2e817799fcebbcdae1f3b1666f8ca70b0d5adca74014dd665f6b02c81b839220d8fe3794ea1202e1f2589d281344699864207c98b95d23a1d1f03bd42d
|
||||||
|
DIST linux-5.18.14-xanmod1.tar.gz 207211970 BLAKE2B 124319f33a8efefedbf228321829dd51f3ca9d998bc5242396344acf7d6343d62f55ddef7eed3f89fcc4460eb7def2ca1f9e6a9963e1375e9adfcd9c75f8bb78 SHA512 e22249a800ac7be561952afc0a5182fe700d2eb01b7eaed2df4cdbd6174838157e4f0da89a2c878d14dba4f74fa9d26269fb2e90337b90c7be2357bcd7366723
|
||||||
|
DIST linux-5.18.2-xanmod1.tar.gz 207126257 BLAKE2B 24f84b5f125994b3339193ed82fc0f1d4d1a959c33d05e988b6108bef1007415f6d03854dfe240c3a76821f768bc4aad6dc19b47ed059c1c5aea9ca3cb028dd8 SHA512 b444825e1901ccef281ce5b34f0e7d13d53acd135912363b41bc868305a3fa75fa5bcb76b0537c649d82ba7063275ddefdba421f24ac40af36a7c55105a7557c
|
||||||
|
DIST linux-5.18.4-xanmod1.tar.gz 207164026 BLAKE2B d159eb399f26a51acf33257b04a57fe28d555c2afa86b2ea0e18c27a9d9a55616b20edf7839ad903d51ffae3ea1481ead09f56ae89a68f31746bb91d0ca95c09 SHA512 0b6b5d58d5e27e60c19445c3a45fbc2fef62eab12f00f17112f0d16e8036ef654f463231c1902c992adad23335d1da72d2965553d0fffb22eb58ffc94f8b0381
|
||||||
|
DIST linux-5.18.8-xanmod1.tar.gz 207182046 BLAKE2B 89961313073ac40dbd78c7763b327edec55c04109495f8fa330f65f27620be31ba9fde208454cca93eabbde1585dab157a70f61162886b958f0a437dd3f1a440 SHA512 eb156c79c6bcf93232d52354b33587dc20d212047613989fc11e250137de475376bd3756df106fdac0008b33870d9a297ad4b238058078925959a349916d2057
|
||||||
DIST linux-5.19.tar.xz 131581464 BLAKE2B 4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a SHA512 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
|
DIST linux-5.19.tar.xz 131581464 BLAKE2B 4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a SHA512 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
|
||||||
DIST patch-5.19.12-xanmod1.xz 903844 BLAKE2B 559a284bc22945a6cc94b060937db090d57a08b266f33c0d4dbd24c06e9a3ba52913655ee9b5c371423f506ea2d3a586da38fa26060bb6fb61a7aea990aa0a9c SHA512 6d7f2bec8464990d10473adbe44781be0d16be84a4fa4266a367e3695ca457271bfc7deb90b8d0e8720ab6c5e591136e51739818f513f7c14da35e611df25a79
|
DIST patch-5.19.1-xanmod1.xz 172368 BLAKE2B 8b400f02ede9e14d628bc26cba5822f3fe60b675ff32632c2d463df0ba581d65258330cc91986203a319d44c45b7996cadcec55486f2cba1007b23caaf1bf6ef SHA512 197e1e44c177b7f2da35a19982366edf8c85ea4bcc89abd096d700798e1b9f8ee3b2cd73ab599d6a18d7b4d627325988016448e410b43ac3c70d10e250c032fd
|
||||||
DIST patch-5.19.9-xanmod1.xz 825756 BLAKE2B 028b32223623758ecbc2e86fdb79c73f4d95b174fda872f9da71aa3c43e208d5d464b971b4b0bf685e106104b313c0fa9ac8e47b4fe44389fbcaf1137c2711cd SHA512 76bbe03d9623854439c6b7d0bec2859387589504607222d7dd015637e3c08674a3bb2d55111127e28b0a51bab371c0e73591e4389ffb835af50845f7c8a46756
|
DIST patch-5.19.9-xanmod1.xz 825756 BLAKE2B 028b32223623758ecbc2e86fdb79c73f4d95b174fda872f9da71aa3c43e208d5d464b971b4b0bf685e106104b313c0fa9ac8e47b4fe44389fbcaf1137c2711cd SHA512 76bbe03d9623854439c6b7d0bec2859387589504607222d7dd015637e3c08674a3bb2d55111127e28b0a51bab371c0e73591e4389ffb835af50845f7c8a46756
|
||||||
|
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.14.ebuild
Normal file
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.14.ebuild
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit kernel-build toolchain-funcs
|
||||||
|
|
||||||
|
MY_P=linux-${PV}-xanmod1
|
||||||
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 ))
|
||||||
|
GENTOO_CONFIG_VER=g2
|
||||||
|
|
||||||
|
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
||||||
|
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
||||||
|
SRC_URI+="
|
||||||
|
https://github.com/xanmod/linux/archive/refs/tags/${PV}-xanmod1.tar.gz
|
||||||
|
-> ${MY_P}.tar.gz
|
||||||
|
https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||||
|
https://dev.gentoo.org/~alicef/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 hardened"
|
||||||
|
|
||||||
|
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" | xargs rm || die
|
||||||
|
|
||||||
|
local PATCHES=(
|
||||||
|
# meh, genpatches have no directory
|
||||||
|
"${WORKDIR}"/*.patch
|
||||||
|
)
|
||||||
|
default
|
||||||
|
|
||||||
|
# prepare the default config
|
||||||
|
case ${ARCH} in
|
||||||
|
amd64)
|
||||||
|
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64" .config || die
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "Unsupported arch ${ARCH}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
rm "${S}/localversion" || die
|
||||||
|
local myversion="-xanmod1-dist"
|
||||||
|
use hardened && myversion+="-hardened"
|
||||||
|
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
|
||||||
|
)
|
||||||
|
if use hardened; then
|
||||||
|
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||||
|
|
||||||
|
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||||
|
|
||||||
|
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||||
|
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
kernel-build_merge_configs "${merge_configs[@]}"
|
||||||
|
}
|
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.2.ebuild
Normal file
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.2.ebuild
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit kernel-build toolchain-funcs
|
||||||
|
|
||||||
|
MY_P=linux-${PV}-xanmod1
|
||||||
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
|
||||||
|
GENTOO_CONFIG_VER=g1
|
||||||
|
|
||||||
|
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
||||||
|
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
||||||
|
SRC_URI+="
|
||||||
|
https://github.com/xanmod/linux/archive/refs/tags/${PV}-xanmod1.tar.gz
|
||||||
|
-> ${MY_P}.tar.gz
|
||||||
|
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 hardened"
|
||||||
|
|
||||||
|
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" | xargs rm || die
|
||||||
|
|
||||||
|
local PATCHES=(
|
||||||
|
# meh, genpatches have no directory
|
||||||
|
"${WORKDIR}"/*.patch
|
||||||
|
)
|
||||||
|
default
|
||||||
|
|
||||||
|
# prepare the default config
|
||||||
|
case ${ARCH} in
|
||||||
|
amd64)
|
||||||
|
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64" .config || die
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "Unsupported arch ${ARCH}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
rm "${S}/localversion" || die
|
||||||
|
local myversion="-xanmod1-dist"
|
||||||
|
use hardened && myversion+="-hardened"
|
||||||
|
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
|
||||||
|
)
|
||||||
|
if use hardened; then
|
||||||
|
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||||
|
|
||||||
|
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||||
|
|
||||||
|
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||||
|
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
kernel-build_merge_configs "${merge_configs[@]}"
|
||||||
|
}
|
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.4.ebuild
Normal file
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.4.ebuild
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit kernel-build toolchain-funcs
|
||||||
|
|
||||||
|
MY_P=linux-${PV}-xanmod1
|
||||||
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
|
||||||
|
GENTOO_CONFIG_VER=g1
|
||||||
|
|
||||||
|
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
||||||
|
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
||||||
|
SRC_URI+="
|
||||||
|
https://github.com/xanmod/linux/archive/refs/tags/${PV}-xanmod1.tar.gz
|
||||||
|
-> ${MY_P}.tar.gz
|
||||||
|
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 hardened"
|
||||||
|
|
||||||
|
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" | xargs rm || die
|
||||||
|
|
||||||
|
local PATCHES=(
|
||||||
|
# meh, genpatches have no directory
|
||||||
|
"${WORKDIR}"/*.patch
|
||||||
|
)
|
||||||
|
default
|
||||||
|
|
||||||
|
# prepare the default config
|
||||||
|
case ${ARCH} in
|
||||||
|
amd64)
|
||||||
|
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64" .config || die
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "Unsupported arch ${ARCH}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
rm "${S}/localversion" || die
|
||||||
|
local myversion="-xanmod1-dist"
|
||||||
|
use hardened && myversion+="-hardened"
|
||||||
|
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
|
||||||
|
)
|
||||||
|
if use hardened; then
|
||||||
|
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||||
|
|
||||||
|
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||||
|
|
||||||
|
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||||
|
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
kernel-build_merge_configs "${merge_configs[@]}"
|
||||||
|
}
|
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.8.ebuild
Normal file
87
sys-kernel/xanmod-kernel/xanmod-kernel-5.18.8.ebuild
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit kernel-build toolchain-funcs
|
||||||
|
|
||||||
|
MY_P=linux-${PV}-xanmod1
|
||||||
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
|
||||||
|
GENTOO_CONFIG_VER=g2
|
||||||
|
|
||||||
|
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
||||||
|
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
||||||
|
SRC_URI+="
|
||||||
|
https://github.com/xanmod/linux/archive/refs/tags/${PV}-xanmod1.tar.gz
|
||||||
|
-> ${MY_P}.tar.gz
|
||||||
|
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 hardened"
|
||||||
|
|
||||||
|
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" | xargs rm || die
|
||||||
|
|
||||||
|
local PATCHES=(
|
||||||
|
# meh, genpatches have no directory
|
||||||
|
"${WORKDIR}"/*.patch
|
||||||
|
)
|
||||||
|
default
|
||||||
|
|
||||||
|
# prepare the default config
|
||||||
|
case ${ARCH} in
|
||||||
|
amd64)
|
||||||
|
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64" .config || die
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "Unsupported arch ${ARCH}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
rm "${S}/localversion" || die
|
||||||
|
local myversion="-xanmod1-dist"
|
||||||
|
use hardened && myversion+="-hardened"
|
||||||
|
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
|
||||||
|
)
|
||||||
|
if use hardened; then
|
||||||
|
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||||
|
|
||||||
|
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||||
|
|
||||||
|
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||||
|
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
kernel-build_merge_configs "${merge_configs[@]}"
|
||||||
|
}
|
@ -1,13 +1,13 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
# Copyright 2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=7
|
||||||
|
|
||||||
inherit kernel-build toolchain-funcs
|
inherit kernel-build toolchain-funcs
|
||||||
|
|
||||||
#MY_P=linux-${PV}-xanmod1
|
#MY_P=linux-${PV}-xanmod1
|
||||||
MY_P=linux-${PV%.*}
|
MY_P=linux-${PV%.*}
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 ))
|
||||||
GENTOO_CONFIG_VER=g2
|
GENTOO_CONFIG_VER=g2
|
||||||
|
|
||||||
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
21
virtual/dist-kernel/dist-kernel-5.18.2.ebuild
Normal file
21
virtual/dist-kernel/dist-kernel-5.18.2.ebuild
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-bin-${PV}
|
||||||
|
)"
|
21
virtual/dist-kernel/dist-kernel-5.18.4.ebuild
Normal file
21
virtual/dist-kernel/dist-kernel-5.18.4.ebuild
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-bin-${PV}
|
||||||
|
)"
|
21
virtual/dist-kernel/dist-kernel-5.18.8.ebuild
Normal file
21
virtual/dist-kernel/dist-kernel-5.18.8.ebuild
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-bin-${PV}
|
||||||
|
)"
|
21
virtual/dist-kernel/dist-kernel-5.19.1.ebuild
Normal file
21
virtual/dist-kernel/dist-kernel-5.19.1.ebuild
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-${PV}
|
||||||
|
~sys-kernel/xanmod-kernel-bin-${PV}
|
||||||
|
)"
|
Loading…
Reference in New Issue
Block a user