libre-kernel 5.15.107
This commit is contained in:
parent
4764ab1f33
commit
3055122efc
|
@ -2,6 +2,8 @@ DIST genpatches-5.15-107.base.tar.xz 4209440 BLAKE2B 48fcb9a837d9f13ffa96194e2ec
|
|||
DIST genpatches-5.15-107.extras.tar.xz 3932 BLAKE2B 59b1279051d08009a8c6e15c5083d7056f7eab8b5beed72dd3421631e9730c7306ce7cae8c3c82f508db261c2a4b2076a2c6c7d3a5fe98419b240e87a0d1e636 SHA512 8897cf7b1d42fcb4a0a87417913c624dbc65b9ce5689dee3998b65cba54659e7ecea759c97f4993dca4b928fe7844e025aa8dbe54f5ca492d8f858fdeb9ba3d9
|
||||
DIST genpatches-5.15-110.base.tar.xz 4312720 BLAKE2B 58e3c5a0001f1245a25cbb66e239d393c48d265a5213e51601ea9b24fc33fce97472a1cb63e990ac2d2165c5e7d40372e53952aa47d347282c8ce9f8434a140a SHA512 abbe6099973c90e0751456a522717d7f2d993d873af4a98aff0150c1dfc9a75cf56f9d850dd2a5b8c80915ab27110c65b0b482df27bda00262c043fba731cde6
|
||||
DIST genpatches-5.15-110.extras.tar.xz 3932 BLAKE2B f280b14d3c6b1ed89ccf9752071dd55641d59354a680a2419a8caaa993036ecec716fe063d40fb566ab788632ebc71970b2460b6b915ea2d1db68d78fb7069fc SHA512 cbb844978cc225fab030f43ab0ba76fe5138a9c84381bf1318df55c24fe33bb734f60512daf27e20c191c58da821c69228aa98ca91adf224383a08bf3457741c
|
||||
DIST genpatches-5.15-112.base.tar.xz 4370104 BLAKE2B 578389e95be1b135fffdbcd598088d07d07ecc764307278c0339351d879594a994a4904500ee1b003ceb5ed928e95b5b07c363d94ff99db3e93568d25234fb26 SHA512 3797509bce6dd1949190f0d9bcb4d1c918c9bcd9f528b493b5f3b7e2fcb9265ea42e51e218c0342814e0f55c827ddd1bab130df76f849352e5894225d73bf3e8
|
||||
DIST genpatches-5.15-112.extras.tar.xz 3932 BLAKE2B f76085492bf8b1c1bd9092174460be8ef5e22921f1f7a6282eff9cece01203ca68d0259b94a184161bfabddef1a7e5f1eb29b0da5eb85cc35853e767a2239216 SHA512 3e8ea63b9011f782b11e1df144414d9e3f53f24a391829342c872dd4f5b0a3c128dd792f95feab7aca08adf6a08d88e11ec2e2d61e0b0302546f0a55f29b78dc
|
||||
DIST genpatches-6.1-21.base.tar.xz 1052684 BLAKE2B 8ceb101f650a74dee8401a4a08cb052e821daa4f04b2a9c82e1cb40f0589aef8e6974fd5355922b19868558b373d1751bce7c5db5923c49433955dcd1863b1c5 SHA512 9db8c2413e56f7684bf4414ecdce3fc21984c69851125971e9dde372a6f8fd04c9f5159273d67815d96565062a221d8325664dd8762d353bd24f9afc02eeed11
|
||||
DIST genpatches-6.1-21.extras.tar.xz 3808 BLAKE2B 9d1bf513bea67b8ca4df1124b4c81857292b44f8e8c339b7295fee60cb04d323eef5de4f8a92714f641a68c3229a8b60b673760f7373ce54112f6f7231b18f4c SHA512 4439ead755188488e6f7c18210386121a78a30abcd8d56ca87d0069b7244ae87cf1ba312f033db49acf017ef6c581b58e0228baecf42df50e0d1d978fb4c5461
|
||||
DIST genpatches-6.1-24.base.tar.xz 1155780 BLAKE2B e6be4766ec5aba82d12d5209c1ac86b013482c2c1d40a9d5f72afa0f86555816c859795db9fa229415dc813e8b35851c98f11d17884d3e928684827b6c434778 SHA512 5e0c17ed36ccfe2d926e835a74b283ad40a21fdab33220c82c9e87ec2cbe17c3e6cc356bb62e17a1ca12901bd56694819708af438725c67b68c142c64f0a938c
|
||||
|
@ -14,6 +16,8 @@ DIST linux-libre-5.15.102-gnu.tar.xz 119754308 BLAKE2B dc908b54795682070bccec932
|
|||
DIST linux-libre-5.15.102-gnu.tar.xz.sign 195 BLAKE2B 7d6cbf9c704224bb28a3040ed44e909b79d4622e19400bf553a3ac632da1da2d35dc859590e1815fb0264bfa4898762c8ea959784c9d5f69ba14313e50fc67c1 SHA512 180afcb0172e0b15a729c38fe567038184d6e785a76aaa142bc9a68a093dc0cf9083ad0e3568ec26a34d08f0a63f5776facd7ae8e167dd8b910a80082040872a
|
||||
DIST linux-libre-5.15.105-gnu.tar.xz 119744400 BLAKE2B bc00a798944b642e9e356f81f85b1fea2e974aea27c99b6a6ae3347291747df9e16b2eac498953a7cbe306b4edeefd0a6917c676c785a5e1c8b38b80b0e69450 SHA512 d22d8eacd012675522225428aa9ce463b512f7af2c2d5918494d893dd8196662290901df65a57054f60ba1772f7af185f42c907dbda8ecb091a92046fbe0132b
|
||||
DIST linux-libre-5.15.105-gnu.tar.xz.sign 195 BLAKE2B 5607ee3b098b71c887304f02c52e84344db4579a7688c98555e0e79b41717ca46680390ec93de006f04ee9585855c31ba5a5c1063c74bcc68acfcba98ec537d3 SHA512 c41f1ee025ddf9afbdb32652b188b52678945c4cff331cb2d40c796fc5e471766572330e760000447840f805604adbbdf0f356adf3b4f8f9c07bb365e1c7d903
|
||||
DIST linux-libre-5.15.107-gnu.tar.xz 119769524 BLAKE2B 1d6aba45e4988da81a62cef1617cb0458b6cc0ee527ef7ff047d2e6ed0e5cff31d4cc586ecfa451fbcc027fc8423875537fd2badc70cbe584af962d59cf3214a SHA512 c77398b964e09fabd9613ccce108d8e1d92a34816229f29c94562b79a261da060dfff188a470e8e78895aaf64fe2fae0e6927dc023ffaf62001e56ffd5225d75
|
||||
DIST linux-libre-5.15.107-gnu.tar.xz.sign 195 BLAKE2B a6cc2825af0cf1d1d7fbef5da09c438931b2bc6ad85b79b4aca53382bb9c7524fbc076e8266c7e84f951b8d72aca67d7a82356f1ef05ffc307b79d9e174a6dce SHA512 5684bac9827253bc84a9350d27d5d3c516f5f672015329caf30f9b13d94ff01e3619fd296e0d595598fd7f691e27c5e974feebf3638ffc07ae6a6fa5b1d45fa2
|
||||
DIST linux-libre-6.1.19-gnu.tar.xz 127193128 BLAKE2B 9f0aa053b7425064d1c0634911beb63d8015caa4de80fb0f241cc7d04148cdbe065498f925f2af29976349fe20c25d9988a5f2905d677ca66f013552f3114b71 SHA512 21ea759cbe4d0c657cd724d40f67d5da32531e94495ea9509f8cdfb475a52a24a340bbcae5d5238cfa80bdb5f4b7c8d814b9a422eb0fe67fc0d21ceef6ceb830
|
||||
DIST linux-libre-6.1.19-gnu.tar.xz.sign 195 BLAKE2B 76168997141cfafce0e6e5dbf8b5afdfd271ee988a4ffa473fa3dc4a86cab087f294be65497c97c3dcca3de8992beff57cf053be6785f92af797c23cf0b3bd25 SHA512 2267bedf4c51d5c60be216e27e3b1eb8ee31f088ad371963dbd598ae6386c66872b81827ad503cd22bac17babadf11022af4be9841edfb4cb10c85e1ad791180
|
||||
DIST linux-libre-6.1.22-gnu.tar.xz 127173720 BLAKE2B 10f50ed7299aa60bbb5b798188e1af58b660f2f7f8600979e2a3a08f2becd3bae6b725c3296641ab6a65eb28e4e7e176f0c00d9ce82ccc07070e42127154935e SHA512 89163ef90a333ab5bf2a3af93d07351ce68cd7452a0cfde0ea17fbb78b6662e8989e0a623f68161a2c2170bd5a665f4f640d90d94495d4d6bd6200a5d2ec9c54
|
||||
|
|
|
@ -0,0 +1,148 @@
|
|||
# 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##*.} + 5 ))
|
||||
CONFIG_VER=5.15.19
|
||||
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||
GENTOO_CONFIG_VER=g7
|
||||
|
||||
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 incremenetal 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[@]}"
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2021-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||
HOMEPAGE=""
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE=""
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
~sys-kernel/gentoo-kernel-${PV}
|
||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||
~sys-kernel/vanilla-kernel-${PV}
|
||||
~sys-kernel/libre-kernel-${PV}
|
||||
)"
|
Loading…
Reference in New Issue