Compare commits
3 Commits
d116c5e067
...
8d53e757a8
Author | SHA1 | Date | |
---|---|---|---|
|
8d53e757a8 | ||
|
d6f31709b0 | ||
|
3ba0406103 |
@ -1,20 +1,13 @@
|
|||||||
DIST genpatches-5.15-79.base.tar.xz 3195612 BLAKE2B bf8edc209ecc99da4f4c05b575b095992e64ca421e9848a75ef1ff7bca84377eec93ac3bc7d23bfd4c91d529cbf1693e231b606b27ba2ead46e9c3037db10c21 SHA512 c8cdadb66f904f2083f713a58bce743e56e27440f01fe98b3ddf82aaa43401c2fabad029060e7c01590dc294edcdfa8ec6c784f24ca87a1b9fa8703ed626e4f3
|
|
||||||
DIST genpatches-5.15-79.extras.tar.xz 3932 BLAKE2B df50c7ce655f1f81d46ab6f077963afb0997ed2f6c0b70aa49c34a445d3f8938cce7201b75221705fe27c0a6f699dc553f932eeee7960a21dd89e3c55dde9306 SHA512 31e8c8aeb98e01dd1e0b25c51cfe48d5b6bc98617833229b283d35da6d7572b95dd8141592a2350ff01554bf80d918d2137ef2eb248c483ab22fc3db20a11fe3
|
|
||||||
DIST genpatches-5.15-82.base.tar.xz 3300648 BLAKE2B 76afce0ccf8820124789ec68609a5479e27b7a5b3556410ce5cadee6c32d232a2f3ab44c30e862cb97b97c7715f18f25ac11505baea9cf66c807790f88c63cb8 SHA512 c057ed55a1a081fb94cbe8101b06ce28032355cc6c19913ee0a547987085fc774abe19f176b8c59ef5dbf8539934ae722c60cbbfd7feda26c5a88d322efd9aa2
|
DIST genpatches-5.15-82.base.tar.xz 3300648 BLAKE2B 76afce0ccf8820124789ec68609a5479e27b7a5b3556410ce5cadee6c32d232a2f3ab44c30e862cb97b97c7715f18f25ac11505baea9cf66c807790f88c63cb8 SHA512 c057ed55a1a081fb94cbe8101b06ce28032355cc6c19913ee0a547987085fc774abe19f176b8c59ef5dbf8539934ae722c60cbbfd7feda26c5a88d322efd9aa2
|
||||||
DIST genpatches-5.15-82.extras.tar.xz 3928 BLAKE2B fddcda7bbe9c39c07851f708ebfc2f9a7fe485e8fdd0ab4357df16c9e6fc2b951e6188798872e9d05dfa15f3d29676e2ed97ed9c9bf4397fbe96a8a99d3c809c SHA512 76700ad690ee799cf3842df6acb68bf3c3a25746462cc97010fe45036560d4b41c60fba839f80f12a165c96c0623ae6c11fbd994269bf153756456824f0f8a91
|
DIST genpatches-5.15-82.extras.tar.xz 3928 BLAKE2B fddcda7bbe9c39c07851f708ebfc2f9a7fe485e8fdd0ab4357df16c9e6fc2b951e6188798872e9d05dfa15f3d29676e2ed97ed9c9bf4397fbe96a8a99d3c809c SHA512 76700ad690ee799cf3842df6acb68bf3c3a25746462cc97010fe45036560d4b41c60fba839f80f12a165c96c0623ae6c11fbd994269bf153756456824f0f8a91
|
||||||
DIST genpatches-6.0-4.base.tar.xz 272160 BLAKE2B 3758714884e31f3ddb414d2011752cdf7fd2da9d54b6dd455e9b9ec559c0201fd7753df98a1cba0618f209552419a56ef8747ac0283f794a41769dc41b3844ad SHA512 ef8292b96f10586cbc9a9ba820bed3b3f30ab1e4b90d3452d94b5e44dd4c333818c99bf6cee1272416e83cda424942be84a7aa6f270687192d94a583e8a836c0
|
|
||||||
DIST genpatches-6.0-4.extras.tar.xz 3808 BLAKE2B 42c2695cc364ed353e1ccfa945c6f69c2b3c81e32149de5134eeaf2a738b67a952ae33ace111122bf2c58083c81a4e056e8f666693d02c39f6631a7502c36038 SHA512 305cf01975f19237de99a40dfb2a395f0084809f00040296e5ec36ed949b4301cf7887dcd3f6e287945f8d92f3544e84f3ace2ba60d6720ae09458475159132c
|
|
||||||
DIST genpatches-6.0-5.base.tar.xz 279980 BLAKE2B 72e3445a0d791825d6aebfed695bde22454c1d3891176756d90b2cd6aaefa8051bc22a8c7b39326f2889e947d2f65112d386f8d158d1a5327aca142a9d2312fa SHA512 e74152dde7f6c6e511c500ab1038f5a5bd2473354fac8ade6293c43c288ead3e2549fe8f0a02ff205fd72f5947401372cee34425dc2cf23ed3bf1198ad7b6123
|
|
||||||
DIST genpatches-6.0-5.extras.tar.xz 3804 BLAKE2B 36e9a4a81f9cc9bea2dab9138bbfa9e380ef6e6d1305ff27072f96be23a8be691c20505c07d0034f0cead7b0f955e463485fc7d488b04ccb951a27eb3aabfb39 SHA512 b0c4a0640f20bbad1c5a5ce4a4c7413c1bd3fa1463be6d8dde3447d0131beb0a5809be53d2df7660516affe4b35f9b88a6ad8ff1b8575cf76f01bc086e4ccf60
|
|
||||||
DIST genpatches-6.0-8.base.tar.xz 428744 BLAKE2B b8cc7442f3930b8f5a9b11e3722b991f049aba0c635e3e7c1ae3bf4df12470a1ba974a0459ac02c5dc5286a3ac3377704b583f241fb844e6ef34552d4bf5c2ce SHA512 cb0c4a2a100ea25f84fa5ef85a2a52ac3c42bc83b0b38b526e96d034d9433382f5b3edc958f0546dc0692874ecab252d19d58264376d60cf9338bc6ec8a6d7c4
|
DIST genpatches-6.0-8.base.tar.xz 428744 BLAKE2B b8cc7442f3930b8f5a9b11e3722b991f049aba0c635e3e7c1ae3bf4df12470a1ba974a0459ac02c5dc5286a3ac3377704b583f241fb844e6ef34552d4bf5c2ce SHA512 cb0c4a2a100ea25f84fa5ef85a2a52ac3c42bc83b0b38b526e96d034d9433382f5b3edc958f0546dc0692874ecab252d19d58264376d60cf9338bc6ec8a6d7c4
|
||||||
DIST genpatches-6.0-8.extras.tar.xz 3804 BLAKE2B 338f4ef5b88afc9a950ac47261b06010317c59c104819c9aaee6ec845c47b31982dd86a9e4e35ff3c21997931411235d8d6322190d96453c55c443d7de0cd893 SHA512 1d58df2e68935c50b25109a3e92a48d7ab703d97c536634b47ccdd958dedca458eed5c96d1c3a37f788a6576fb655e4c4446b95f3bb8ce38ef1ec008922a3e12
|
DIST genpatches-6.0-8.extras.tar.xz 3804 BLAKE2B 338f4ef5b88afc9a950ac47261b06010317c59c104819c9aaee6ec845c47b31982dd86a9e4e35ff3c21997931411235d8d6322190d96453c55c443d7de0cd893 SHA512 1d58df2e68935c50b25109a3e92a48d7ab703d97c536634b47ccdd958dedca458eed5c96d1c3a37f788a6576fb655e4c4446b95f3bb8ce38ef1ec008922a3e12
|
||||||
|
DIST genpatches-6.0-9.base.tar.xz 478548 BLAKE2B 916f2b1b5d198adec6f73a0bb52029f4667132e7b7528ac5578134e3ed775d6aaac7989ec5e3827fe16db691f3321ef16b5a29088d2ad81e963f768f67cc2b61 SHA512 6b748f241e609d6191f83134f65bd9010122d5681b080c7ffeff8690f4cb1ab0f44b2681a135689d945de45f4ef25384411aea1d78a5b1c6248e547dc9e5297e
|
||||||
|
DIST genpatches-6.0-9.extras.tar.xz 3808 BLAKE2B cf37233fbfc631e8ec9d7c663e8982a3bfb154573fa84d13cbb3d67fa73ff38ce74b27bf6dbf827b311826d18c628ef2818a75975e068ce381bc1a46c4948075 SHA512 b4f5d0daae3120662fb79e9f53b7dfd0c15f0a2b7c77a32b7440cc7425b3df87107aabb2cd913a31b7014c9fd1c3c85ab2081839af652ae9d7e43352dcdda42f
|
||||||
DIST gentoo-kernel-config-g1.tar.gz 4283 BLAKE2B 44dd51ec45ebc71bffcd6d85a2fefba053f7bce8035057f0bbe928e24816ad4ba03c9bf67dcfcd6d6d1833c0a2ea93e0fd486c2093664dc41ccce316e1e60588 SHA512 3a45f28df9d457df0fe0d185da8b10f4e35f49dad75075e041e8cf3cf6972fecc8145cd557b0bf3a8dea20ddffae0194f88e61c1e5098fa0a5ca301d40aeea2e
|
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-g3.tar.gz 4411 BLAKE2B 00edc4b5dc943834bc7ee977382b2960160888db00a25c5a7f73968784aa39a2b3b69f0bbda89b3ce8eb55e746006cff2839481493ac8bfca6a21de2299564f7 SHA512 44beae869bebf5445655dafe1facc47c3dbe602b34c5bf2fa984a581bfe3250fa0df908b8807c333c2e66ab9d1a2bb8026e22140f2a1f522d0dd647c96ca4d5e
|
DIST gentoo-kernel-config-g3.tar.gz 4411 BLAKE2B 00edc4b5dc943834bc7ee977382b2960160888db00a25c5a7f73968784aa39a2b3b69f0bbda89b3ce8eb55e746006cff2839481493ac8bfca6a21de2299564f7 SHA512 44beae869bebf5445655dafe1facc47c3dbe602b34c5bf2fa984a581bfe3250fa0df908b8807c333c2e66ab9d1a2bb8026e22140f2a1f522d0dd647c96ca4d5e
|
||||||
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||||
DIST linux-6.0.tar.xz 133886176 BLAKE2B c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa SHA512 bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
|
DIST linux-6.0.tar.xz 133886176 BLAKE2B c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa SHA512 bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
|
||||||
DIST patch-5.15.75-xanmod1.xz 3307692 BLAKE2B cdcdc06f89aeb5797fd9aa2370616771febe121d33111bd947608131f4153e55719e79f3f22f7b56e0022c0ad724e4fce4912f18ed724878ccd0b25045cd2219 SHA512 65feba821ba6a8c73c74543f038511115cc77a5c2ee0dee6b96b84cd44b258d6ff510799ebff5adf28d944828bdeab99ce2e6d5ea366ff3f9b30cf5d1a0f38f3
|
|
||||||
DIST patch-5.15.78-xanmod1.xz 3368160 BLAKE2B cd6f6fea1bdfb323bd37097bcd7c6031714f03207287094a51e3f81f3989108d76b637b211f4892b3110de4352b31cf4e0212faec92fd2a4176d7c4fe50f3813 SHA512 856b201475ea70099d4df6c10e689df92fd295f8281e6246f5774122cc5727b65f5ad4bb5d440c46ebac4678924d143f16e660404b7eeefc34f92aeb4b303415
|
DIST patch-5.15.78-xanmod1.xz 3368160 BLAKE2B cd6f6fea1bdfb323bd37097bcd7c6031714f03207287094a51e3f81f3989108d76b637b211f4892b3110de4352b31cf4e0212faec92fd2a4176d7c4fe50f3813 SHA512 856b201475ea70099d4df6c10e689df92fd295f8281e6246f5774122cc5727b65f5ad4bb5d440c46ebac4678924d143f16e660404b7eeefc34f92aeb4b303415
|
||||||
DIST patch-6.0.3-xanmod1.xz 642792 BLAKE2B fc860df226b2f79114a3815b8e3fdf3b83c791deb086f0f8e0dfbb8a96ee771217ee800f470c3ff78214b3e4e5b9f43c580c97a359d0a530b4236a6e66f727f7 SHA512 49517aed2ba33faf4b6a475232d7279e43fc547a9cd60fbc6432c40fc78249b6f752be9bc6085692ddd8d4591a68fef5b8583a0742a7d46731ca3346e20a5b4a
|
|
||||||
DIST patch-6.0.5-xanmod1.xz 647920 BLAKE2B 58165f166f74e28f435ad8e66b73272c5622eef935a154811758378a23f8798c299dc1213617983d1b501c84b15bdd75f42acf3d50204d0690fe1a1ee713ce10 SHA512 f3dd527511c9d2e24c1ac00e232dee4cc6e8b1879d07f900210830ac4fdfdcb5e326dd1711383be4f268db29736d4db1e033f0ff8b406517251965cd4ccf3aa2
|
|
||||||
DIST patch-6.0.8-xanmod1.xz 786216 BLAKE2B d4b37e012eab41300330b7c7942dff863ea1cc5e250959618ffc8189ee58e1ede627a2887f95b977c0ecac980ebd730e43398288ee4016034e28106c0c5f579d SHA512 235208e945b21e0d186f591395f61df254e8d07f2e6a8354365d069f19508ff67d335c8ed4cf5db406f1e8c88bcb6fac2eb3f095ec7ebcf3a81ce530417f9ef6
|
DIST patch-6.0.8-xanmod1.xz 786216 BLAKE2B d4b37e012eab41300330b7c7942dff863ea1cc5e250959618ffc8189ee58e1ede627a2887f95b977c0ecac980ebd730e43398288ee4016034e28106c0c5f579d SHA512 235208e945b21e0d186f591395f61df254e8d07f2e6a8354365d069f19508ff67d335c8ed4cf5db406f1e8c88bcb6fac2eb3f095ec7ebcf3a81ce530417f9ef6
|
||||||
|
DIST patch-6.0.9-xanmod1.xz 835560 BLAKE2B 3ed92c5fffb5e858cb90d438008ff4f3f3e574df9ad6b4ed99d9de2ccece754ba35fcffe126fc798d2760a9cfb5539cbda896bf1c632a1d54768280220f519ed SHA512 ece5014bea4bdffb39c57feed1d5639b53512664e765c6f14ef68b4ca363e25ec785f2e1dd9eb13cec9b18c2972c3c79fe2910fc7bba7b8520549d5b4f388dd8
|
||||||
|
@ -1,88 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit kernel-build toolchain-funcs
|
|
||||||
|
|
||||||
MY_P=linux-${PV%.*}
|
|
||||||
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://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
|
||||||
https://github.com/xanmod/linux/releases/download/${PV}-xanmod1/patch-${PV}-xanmod1.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 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" -exec rm {} + || die
|
|
||||||
|
|
||||||
local PATCHES=(
|
|
||||||
# meh, genpatches have no directory
|
|
||||||
"${WORKDIR}"/patch-${PV}-xanmod1
|
|
||||||
"${WORKDIR}"/*.patch
|
|
||||||
)
|
|
||||||
default
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${S}/CONFIGS/xanmod/gcc/config" .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,89 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit kernel-build toolchain-funcs
|
|
||||||
|
|
||||||
#MY_P=linux-${PV}-xanmod1
|
|
||||||
MY_P=linux-${PV%.*}
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 ))
|
|
||||||
GENTOO_CONFIG_VER=g2
|
|
||||||
|
|
||||||
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://github.com/xanmod/linux/releases/download/${PV}-xanmod1/patch-${PV}-xanmod1.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 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" -exec rm {} + || die
|
|
||||||
|
|
||||||
local PATCHES=(
|
|
||||||
# meh, genpatches have no directory
|
|
||||||
"${WORKDIR}"/patch-${PV}-xanmod1
|
|
||||||
"${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="-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[@]}"
|
|
||||||
}
|
|
@ -3,20 +3,19 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit kernel-build toolchain-funcs
|
inherit kernel-build
|
||||||
|
|
||||||
#MY_P=linux-${PV}-xanmod1
|
|
||||||
MY_P=linux-${PV%.*}
|
MY_P=linux-${PV%.*}
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 0 ))
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 0 ))
|
||||||
GENTOO_CONFIG_VER=g2
|
GENTOO_CONFIG_VER=g3
|
||||||
|
|
||||||
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
|
||||||
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
|
||||||
SRC_URI="
|
SRC_URI="
|
||||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||||
https://github.com/xanmod/linux/releases/download/${PV}-xanmod1/patch-${PV}-xanmod1.xz
|
https://github.com/xanmod/linux/releases/download/${PV}-xanmod1/patch-${PV}-xanmod1.xz
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.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
|
https://github.com/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||||
"
|
"
|
||||||
@ -24,7 +23,7 @@ S=${WORKDIR}/${MY_P}
|
|||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
KEYWORDS="-* ~amd64"
|
KEYWORDS="-* ~amd64"
|
||||||
IUSE="debug hardened"
|
IUSE="debug"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
!sys-kernel/xanmod-kernel-bin:${SLOT}
|
!sys-kernel/xanmod-kernel-bin:${SLOT}
|
||||||
@ -64,7 +63,6 @@ src_prepare() {
|
|||||||
|
|
||||||
rm "${S}/localversion" || die
|
rm "${S}/localversion" || die
|
||||||
local myversion="-xanmod1-dist"
|
local myversion="-xanmod1-dist"
|
||||||
use hardened && myversion+="-hardened"
|
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||||
|
|
||||||
@ -75,15 +73,6 @@ src_prepare() {
|
|||||||
use debug || merge_configs+=(
|
use debug || merge_configs+=(
|
||||||
"${dist_conf_path}"/no-debug.config
|
"${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[@]}"
|
kernel-build_merge_configs "${merge_configs[@]}"
|
||||||
}
|
}
|
@ -1,21 +0,0 @@
|
|||||||
# 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}
|
|
||||||
)"
|
|
@ -1,21 +0,0 @@
|
|||||||
# 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