drop old linux versions
This commit is contained in:
parent
7bd10f2e21
commit
100a1e2d40
|
@ -1,22 +1,9 @@
|
||||||
DIST genpatches-5.15-143.base.tar.xz 5634608 BLAKE2B a00b2898db47b874fdfe2e2bf0c40edcb4f358765f14aba79c686b8d6f99c6a77792d45dfcce141837ad6d956c6ce417453e53b6ede9db2f4e88b501aeabda21 SHA512 1342f8090f18bd15c44ca11409fc09ee5c406801fc077277682595fd58e8f37a57e022f433a0e8fb132cf6bee64f48dccacdbdbabab776d45634477e195eed67
|
|
||||||
DIST genpatches-5.15-143.extras.tar.xz 3936 BLAKE2B c942135c9120024effcc516070b81aef19de95969e19c95b7c222ccf9ba515db329735596f3c5dfe81f12ef29165b898de75988f0c632cd228b6d3579e3c5648 SHA512 eb9d0661d81c1acbf5884f3ccc864e0b110a517556bd62020f41f3fad77c32e57da5a7c1f6411a4dc7d9b85ad8fe9af4658613b0a3e9484fb609a7f9ac1a3f39
|
|
||||||
DIST genpatches-5.15-151.base.tar.xz 5817984 BLAKE2B 182b52b69171a07dc6333c139f570d1f50e2c7351150d32bd0d32d268750cbc5f548a25b07111b2fc754de920dc78bf6add2cefb233ec5601e57efb9c516c24d SHA512 364c32d0ac7372367e343292e28b4325b6529fb6b46eb84296e4622b6f1d1d1c2496865aca89c447eff113a56780ea06d94cee3f90570d4b012f3aedfbab70ef
|
|
||||||
DIST genpatches-5.15-151.extras.tar.xz 3936 BLAKE2B 290c41b3f8c750f82d6fb8ae4542a64ff395c8def74c6f3c3d4752b57d1725bf1947beb626d8ee413a4ff50fcc74bad7f1efbc1bfb29b67a35e4b5ea396427f0 SHA512 a3d22a5decba9d24e65239a96b3133af07e126c7e0dd733eae61de48644bc31b012eb6595a15ac82ff763bf39e9f7c91c0153badcc2e9c83604a64f27e0ea43b
|
|
||||||
DIST genpatches-5.15-154.base.tar.xz 5941944 BLAKE2B b32e3bbeadf0b2b3e121d1cd017c3e77320fa8b7365e4106d6574934899ca1c0d4604370774da759a840c09693f89006365078cb77bcf1c23da5bc463d4a36fe SHA512 e32978ea17b1770d5180ebeaa6ba5f9e91e6b4bca70fc4dfced04c93aa7b6d76adf8c83c1b94a182b61fb6a5b73d3778789a0183ef9b49e887647348fadbf2e3
|
|
||||||
DIST genpatches-5.15-154.extras.tar.xz 3936 BLAKE2B 6940bf38e7c0ea4008d745171b61b4dc9825ed418a10e5d5c7fbd0ecd7a6bbabcb6c747830bc60f5d75250b826c308bb221e4720be47275e0cb653b3e21d8f10 SHA512 6b70c21c724be7e42d4e9b7ca0ee5af7aba1f7d2532ae73a571137290cebc4c6ba5146d4c0b73c9424827b876c1fba18e6b60868f09022902e0c8369b73cf2d5
|
|
||||||
DIST genpatches-5.15-156.base.tar.xz 6004636 BLAKE2B f70c2a3bfc3d65fea8d4764b953d147a1725162aeaf319701a3d4b1d47c846932c4c8cd009bf81b4ce33754e966dac4630e2f690c403ec5181e3cc122496db09 SHA512 4d2fd08626d433d7230b27fb1cbd8a3fec9a942ddbd01988dba8632f25b510353b5086f4db1d529b88770e579189fc7bf6a4d02828c662fcb230e51efbecad9c
|
DIST genpatches-5.15-156.base.tar.xz 6004636 BLAKE2B f70c2a3bfc3d65fea8d4764b953d147a1725162aeaf319701a3d4b1d47c846932c4c8cd009bf81b4ce33754e966dac4630e2f690c403ec5181e3cc122496db09 SHA512 4d2fd08626d433d7230b27fb1cbd8a3fec9a942ddbd01988dba8632f25b510353b5086f4db1d529b88770e579189fc7bf6a4d02828c662fcb230e51efbecad9c
|
||||||
DIST genpatches-5.15-156.extras.tar.xz 3936 BLAKE2B ad08b5d93b943236326d333c627ae8cd279d78fd2b8f8df420ce75be815472dca9785b8eb14015ca2dbc92560a8589d31b9f9edbf81280c85d1ce6fe58aed0b1 SHA512 580ba97a039ff7417b448d4df13b67ed262b7a47be449515ca80125a89b5da3eeee773757db6ff7389b501daee6ab708e19dc2713088ee118859e1e9d3f4b303
|
DIST genpatches-5.15-156.extras.tar.xz 3936 BLAKE2B ad08b5d93b943236326d333c627ae8cd279d78fd2b8f8df420ce75be815472dca9785b8eb14015ca2dbc92560a8589d31b9f9edbf81280c85d1ce6fe58aed0b1 SHA512 580ba97a039ff7417b448d4df13b67ed262b7a47be449515ca80125a89b5da3eeee773757db6ff7389b501daee6ab708e19dc2713088ee118859e1e9d3f4b303
|
||||||
DIST genpatches-5.15-157.base.tar.xz 6083340 BLAKE2B da2898a405bfd934e761180064107f4d87d144105ade4c825ff9299cb4a0b57324927cf34d3a55fc7a0227d9db053caf5b0f8159ca0ddbd946d31459b2683e1f SHA512 04c2d322ec1f0946b7f0f551e0fc0342da749cade5f20f2da1a1e60fd0cd946593a797c053bbd0eb8121f70e69f6766f8c945a99fd77fca3eef89aeae6d5b871
|
DIST genpatches-5.15-157.base.tar.xz 6083340 BLAKE2B da2898a405bfd934e761180064107f4d87d144105ade4c825ff9299cb4a0b57324927cf34d3a55fc7a0227d9db053caf5b0f8159ca0ddbd946d31459b2683e1f SHA512 04c2d322ec1f0946b7f0f551e0fc0342da749cade5f20f2da1a1e60fd0cd946593a797c053bbd0eb8121f70e69f6766f8c945a99fd77fca3eef89aeae6d5b871
|
||||||
DIST genpatches-5.15-157.extras.tar.xz 3936 BLAKE2B d559b4c240ab2b8a0b522d846c3d9707b0beacd800e137517c29b51253283b47caf05f7facbdd7be747255dc2485170ecfad04a3ba5293d749c8d22ae60886f7 SHA512 e99880adebd2d08067fbcc73bf01eb844c39cef7c06e99b95c9622949e38a2ed58045f27e71bde4d5321dc06212848c884c8f4added4c41a8a1197cd375091b8
|
DIST genpatches-5.15-157.extras.tar.xz 3936 BLAKE2B d559b4c240ab2b8a0b522d846c3d9707b0beacd800e137517c29b51253283b47caf05f7facbdd7be747255dc2485170ecfad04a3ba5293d749c8d22ae60886f7 SHA512 e99880adebd2d08067fbcc73bf01eb844c39cef7c06e99b95c9622949e38a2ed58045f27e71bde4d5321dc06212848c884c8f4added4c41a8a1197cd375091b8
|
||||||
DIST gentoo-kernel-config-g10.tar.gz 5035 BLAKE2B e965f157b6dadb9c6e355ebe5f9c56625ac69f34a70d6238cd56faf76f7a6583242ea61283c45f2d2cc807ce258c2d405130109ac6e28155849a73871691ea9a SHA512 ad7419f1f183a0380896b3784ff4ab260ff850f2c055156c53f20d2bf3ea4350affaf37aef505e680928ae0f8882f12faeda02bdbd9fc26aed4aaae388290e95
|
|
||||||
DIST gentoo-kernel-config-g11.tar.gz 5077 BLAKE2B dc17ded74f79baddd703a78084113b85e7130877b300b5fe60453cde515fe37c52ece7877049bb0ef384f74ecfc73d59d7d4a513f8fef7bf4f651599946383e8 SHA512 e91156765ef2a48396370f884fdecd7bb1d600e5167f6bad51130520f886e9198adae375adf3e40fa803abc5d5482057775fb0275ab2589bd8f94d8af4a03c4e
|
DIST gentoo-kernel-config-g11.tar.gz 5077 BLAKE2B dc17ded74f79baddd703a78084113b85e7130877b300b5fe60453cde515fe37c52ece7877049bb0ef384f74ecfc73d59d7d4a513f8fef7bf4f651599946383e8 SHA512 e91156765ef2a48396370f884fdecd7bb1d600e5167f6bad51130520f886e9198adae375adf3e40fa803abc5d5482057775fb0275ab2589bd8f94d8af4a03c4e
|
||||||
DIST kernel-x86_64-fedora.config.5.15.19 223286 BLAKE2B 239995703c01dcb6d179133dd115bc0a57872c07d7a08afaf4d92cf6d78f0c17b19487b5b399ac7fdde5d460fa7931628147817a569fef2c3a62951c96054bdf SHA512 9bee4aff7e5ef4ada57bee7496aaf47b8fdd5c936c4c9b580660d130db0678eaecdebdbcab0dfcaf5c17a71f6419069840db10f5886806b6fc810f8a3619554f
|
DIST kernel-x86_64-fedora.config.5.15.19 223286 BLAKE2B 239995703c01dcb6d179133dd115bc0a57872c07d7a08afaf4d92cf6d78f0c17b19487b5b399ac7fdde5d460fa7931628147817a569fef2c3a62951c96054bdf SHA512 9bee4aff7e5ef4ada57bee7496aaf47b8fdd5c936c4c9b580660d130db0678eaecdebdbcab0dfcaf5c17a71f6419069840db10f5886806b6fc810f8a3619554f
|
||||||
DIST linux-libre-5.15.137-gnu.tar.xz 119845836 BLAKE2B 8d9c91a0692fc6ced058b6b57551af591e0f16ed4312195f99e3a4c9cb623996a15d7af9440bef5fb6a2189b225c12b9254cd9422dc09f6d566342037dc1133a SHA512 d2158689cc9c011a6712705510324ac83b5bc0f563983c5de6bc22c583ecf2a8f07a65fd4d3ba04019653b0474ed17af2bd3f3d1b3b61c989a4b5f4143d28aa5
|
|
||||||
DIST linux-libre-5.15.137-gnu.tar.xz.sign 195 BLAKE2B b6b2107912aef2ea8729d67cb419a4be081aae550ae2962a350455304f6a749a7f417fc29ff82c88c73261339480771074a37f31a4b0d49f3dedd6d1a50cb9d4 SHA512 e77d72247aea6fcf266ca607f3079cf5c75696f1618f3dd57dd0d7292416921cb69e54b0a5d1bfe789eb7c8413d1e94a25e8c7f3e5d15c700da1a665ca9b44f0
|
|
||||||
DIST linux-libre-5.15.142-gnu.tar.xz 119819808 BLAKE2B 231b0ccd418ad08d80ab7b8ad45ccdd9b103c629a5c11d355f1512fc660529e5195aa9e8e78f52afdb8ce4b04844a8bf3fe93a2a2c8a50c16fbafc284890ef47 SHA512 af7f1aae67d9d3a07dde1f4ac6881ca5a0fe5df3aa7ba7019b50387efe07985ab5f85ba3fa34513d8cdcddb03e6db624c1853308b247acd546cc17620024336f
|
|
||||||
DIST linux-libre-5.15.142-gnu.tar.xz.sign 195 BLAKE2B 44fc3a69ac48996d26c4f36b771b4e1fe62a2c81d46a32511c1ac31bc411ce6b70a4cc6ab986588e9b9677f7b18e5c2a64e25123cdcbb72adb34bd52fb1328d6 SHA512 bf18b4fcf7b6a72530fb3fe7a8fb52dab5cf77ec8721c47a1252c1a5e0db10d866065ae59e3bd653c5f22e2eef1d8ac855d86fdc0af7256a7a205ca3e4290ac4
|
|
||||||
DIST linux-libre-5.15.145-gnu.tar.xz 119834392 BLAKE2B e320189c34c746013292c9b6b9e7bd542b6dcf5e69219a82d1d1b6cdddec76cc09f8e34f4d87baf479a064d2667074fff554c71875ee218e8ebbda37ef5994ff SHA512 bff8d998eb9c4499e4ce7f8a14cdd7cef5d8ffb1e17330c2a9a3dd2e994b939ee93f5898b5da5830135d4c137d450b27389ae6694cb45bf909081e58c92f8183
|
|
||||||
DIST linux-libre-5.15.145-gnu.tar.xz.sign 195 BLAKE2B d3ab7c933073f39153138d6005fed3b622bf76f0f65c09c47f0ba13e7fe439400ef51897e9e2a48edae64a7ddafe03139837897e7c2b60e362bf7b0da8394aeb SHA512 53b8107a9afddeec81388c35f1fd114bad682fe8bb5d4b6a16e81066a2d28118854813fcb9e820134c253ff2f1c1ddc93264162cbbed4dd0cf8002b16d5a754d
|
|
||||||
DIST linux-libre-5.15.147-gnu.tar.xz 119830992 BLAKE2B 64f706750646a092a0c3812a8916ac92b73b52d89940eb4a0fd6f6eb780a9738534aa94566faa7c393c336747fda0b1a35030c1315a97726ef53f632c0a8510c SHA512 4adce0e3f2a188abcc2bab12b28a6c5cec5b634f07f2f51196dad415d443cf36a4e0e3848f325291bb79984dbc199d607e8426479325e16f2c569be81e2b3c60
|
DIST linux-libre-5.15.147-gnu.tar.xz 119830992 BLAKE2B 64f706750646a092a0c3812a8916ac92b73b52d89940eb4a0fd6f6eb780a9738534aa94566faa7c393c336747fda0b1a35030c1315a97726ef53f632c0a8510c SHA512 4adce0e3f2a188abcc2bab12b28a6c5cec5b634f07f2f51196dad415d443cf36a4e0e3848f325291bb79984dbc199d607e8426479325e16f2c569be81e2b3c60
|
||||||
DIST linux-libre-5.15.147-gnu.tar.xz.sign 195 BLAKE2B ec0af385c52fe73d1717f9e7106f76424c8715e8aebfc2e1e8ba654734d8c8721fd849b5b70bac484481ebbe16dfdd49929f61855631a222a562b2d90de3128f SHA512 14b7ffd1da3f3127833b31fd2d4217ff420790bae3c4497ca9009a1bfbf48c96b1b3bf3f0c03b6d428f2b931d7e4af80915d3c2d39470b7d171b37d1b0218e67
|
DIST linux-libre-5.15.147-gnu.tar.xz.sign 195 BLAKE2B ec0af385c52fe73d1717f9e7106f76424c8715e8aebfc2e1e8ba654734d8c8721fd849b5b70bac484481ebbe16dfdd49929f61855631a222a562b2d90de3128f SHA512 14b7ffd1da3f3127833b31fd2d4217ff420790bae3c4497ca9009a1bfbf48c96b1b3bf3f0c03b6d428f2b931d7e4af80915d3c2d39470b7d171b37d1b0218e67
|
||||||
DIST linux-libre-5.15.148-gnu.tar.xz 119840388 BLAKE2B aec5875e3072c92942c8378f4c1aedf89ba51f698879844b06e56e2db48ccec14563426aa4d897fcd56e0fcaf3c934ba06e76690e5e34c127612cc07fe79da4e SHA512 0eb657f676f1106dd7761b32ad75a0925506b2f4bf8ac0203ffcdfdd1f99bf1c2070fe750bc0c016eb36036613738626894f61fdc43a755f7700b15391eabef9
|
DIST linux-libre-5.15.148-gnu.tar.xz 119840388 BLAKE2B aec5875e3072c92942c8378f4c1aedf89ba51f698879844b06e56e2db48ccec14563426aa4d897fcd56e0fcaf3c934ba06e76690e5e34c127612cc07fe79da4e SHA512 0eb657f676f1106dd7761b32ad75a0925506b2f4bf8ac0203ffcdfdd1f99bf1c2070fe750bc0c016eb36036613738626894f61fdc43a755f7700b15391eabef9
|
||||||
|
|
|
@ -1,148 +0,0 @@
|
||||||
# Copyright 2020-2023 Gentoo Authors, projectmoon
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit kernel-build verify-sig
|
|
||||||
|
|
||||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 6 ))
|
|
||||||
CONFIG_VER=5.15.19
|
|
||||||
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
|
||||||
GENTOO_CONFIG_VER=g10
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
|
||||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
|
||||||
SRC_URI+="
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.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/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
verify-sig? (
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
)
|
|
||||||
amd64? (
|
|
||||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
|
||||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
# Workdir is named linux-PV.
|
|
||||||
MY_P=linux-${PV}
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
IUSE="debug +gentoo"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
|
||||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
|
||||||
ewarn "but it is configured to install non-Free firmware files."
|
|
||||||
ewarn "The non-Free firmware files may be required for some hardware"
|
|
||||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
|
||||||
ewarn "To install only the Free firmware, set the -redistributable"
|
|
||||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to change or remove linux-firmware later, you"
|
|
||||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if ! has_version -d sys-kernel/linux-firmware; then
|
|
||||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
|
||||||
ewarn "on your system. This package provides various firmware files that"
|
|
||||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
|
||||||
ewarn "to pause or abort the build process and install it before"
|
|
||||||
ewarn "resuming."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
|
||||||
elog "the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if use verify-sig; then
|
|
||||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
|
||||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
|
||||||
verify-sig_verify_detached $FILE $SIGFILE
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local PATCHES
|
|
||||||
if use gentoo; then
|
|
||||||
# Fiters out the kernel incremental version upgrade patches,
|
|
||||||
# leaving only the Gentoo bug fix/functionality changes. The
|
|
||||||
# regex removes any patches starting with 10XX to 14XX.
|
|
||||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
|
||||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
|
||||||
else
|
|
||||||
# If no patches are to be applied, apply only the config changes
|
|
||||||
# for a Gentoo installation, as this does not change any actual
|
|
||||||
# Kernel functionality.
|
|
||||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
local biendian=false
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
|
||||||
die 'could not remove EXTRAVERSION'
|
|
||||||
|
|
||||||
local myversion="-gnu-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
|
|
||||||
)
|
|
||||||
|
|
||||||
# this covers ppc64 and aarch64_be only for now
|
|
||||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
|
||||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
|
@ -1,148 +0,0 @@
|
||||||
# Copyright 2020-2023 Gentoo Authors, projectmoon
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit kernel-build verify-sig
|
|
||||||
|
|
||||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
|
|
||||||
CONFIG_VER=5.15.19
|
|
||||||
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
|
||||||
GENTOO_CONFIG_VER=g11
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
|
||||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
|
||||||
SRC_URI+="
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.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/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
verify-sig? (
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
)
|
|
||||||
amd64? (
|
|
||||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
|
||||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
# Workdir is named linux-PV.
|
|
||||||
MY_P=linux-${PV}
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
IUSE="debug +gentoo"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
|
||||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
|
||||||
ewarn "but it is configured to install non-Free firmware files."
|
|
||||||
ewarn "The non-Free firmware files may be required for some hardware"
|
|
||||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
|
||||||
ewarn "To install only the Free firmware, set the -redistributable"
|
|
||||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to change or remove linux-firmware later, you"
|
|
||||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if ! has_version -d sys-kernel/linux-firmware; then
|
|
||||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
|
||||||
ewarn "on your system. This package provides various firmware files that"
|
|
||||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
|
||||||
ewarn "to pause or abort the build process and install it before"
|
|
||||||
ewarn "resuming."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
|
||||||
elog "the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if use verify-sig; then
|
|
||||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
|
||||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
|
||||||
verify-sig_verify_detached $FILE $SIGFILE
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local PATCHES
|
|
||||||
if use gentoo; then
|
|
||||||
# Fiters out the kernel incremental version upgrade patches,
|
|
||||||
# leaving only the Gentoo bug fix/functionality changes. The
|
|
||||||
# regex removes any patches starting with 10XX to 14XX.
|
|
||||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
|
||||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
|
||||||
else
|
|
||||||
# If no patches are to be applied, apply only the config changes
|
|
||||||
# for a Gentoo installation, as this does not change any actual
|
|
||||||
# Kernel functionality.
|
|
||||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
local biendian=false
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
|
||||||
die 'could not remove EXTRAVERSION'
|
|
||||||
|
|
||||||
local myversion="-gnu-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
|
|
||||||
)
|
|
||||||
|
|
||||||
# this covers ppc64 and aarch64_be only for now
|
|
||||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
|
||||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
|
@ -1,148 +0,0 @@
|
||||||
# Copyright 2020-2023 Gentoo Authors, projectmoon
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit kernel-build verify-sig
|
|
||||||
|
|
||||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
|
|
||||||
CONFIG_VER=5.15.19
|
|
||||||
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
|
||||||
GENTOO_CONFIG_VER=g11
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
|
||||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
|
||||||
SRC_URI+="
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.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/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
verify-sig? (
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
)
|
|
||||||
amd64? (
|
|
||||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
|
||||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
# Workdir is named linux-PV.
|
|
||||||
MY_P=linux-${PV}
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
IUSE="debug +gentoo"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
|
||||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
|
||||||
ewarn "but it is configured to install non-Free firmware files."
|
|
||||||
ewarn "The non-Free firmware files may be required for some hardware"
|
|
||||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
|
||||||
ewarn "To install only the Free firmware, set the -redistributable"
|
|
||||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to change or remove linux-firmware later, you"
|
|
||||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if ! has_version -d sys-kernel/linux-firmware; then
|
|
||||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
|
||||||
ewarn "on your system. This package provides various firmware files that"
|
|
||||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
|
||||||
ewarn "to pause or abort the build process and install it before"
|
|
||||||
ewarn "resuming."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
|
||||||
elog "the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if use verify-sig; then
|
|
||||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
|
||||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
|
||||||
verify-sig_verify_detached $FILE $SIGFILE
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local PATCHES
|
|
||||||
if use gentoo; then
|
|
||||||
# Fiters out the kernel incremental version upgrade patches,
|
|
||||||
# leaving only the Gentoo bug fix/functionality changes. The
|
|
||||||
# regex removes any patches starting with 10XX to 14XX.
|
|
||||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
|
||||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
|
||||||
else
|
|
||||||
# If no patches are to be applied, apply only the config changes
|
|
||||||
# for a Gentoo installation, as this does not change any actual
|
|
||||||
# Kernel functionality.
|
|
||||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
local biendian=false
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
|
||||||
die 'could not remove EXTRAVERSION'
|
|
||||||
|
|
||||||
local myversion="-gnu-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
|
|
||||||
)
|
|
||||||
|
|
||||||
# this covers ppc64 and aarch64_be only for now
|
|
||||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
|
||||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
Loading…
Reference in New Issue