libre-kernel 5.15.135

This commit is contained in:
projectmoon 2023-10-20 12:28:01 +02:00
parent 7f794e2c84
commit b2364c0f6a
3 changed files with 172 additions and 0 deletions

View File

@ -2,6 +2,8 @@ DIST genpatches-5.15-133.base.tar.xz 5249652 BLAKE2B 309acc807e07bfcbb34e0ae8761
DIST genpatches-5.15-133.extras.tar.xz 3932 BLAKE2B b99e279af41ad1d19a58e8f9b1bbf392c805a46c371d7a022a65c0090b5824c6ce26280525a0c21feda2a5a5cfffcafc690a2194d29af6a44e10a9d4c923db8b SHA512 7cd772a6feed01543305417ff03b834bb002821ccf254e7f5481623a7f16b0b54da5fc72c21f4ae3481308eaab08fcca8fc5103ffbed58dc4355cfb661f04f8e DIST genpatches-5.15-133.extras.tar.xz 3932 BLAKE2B b99e279af41ad1d19a58e8f9b1bbf392c805a46c371d7a022a65c0090b5824c6ce26280525a0c21feda2a5a5cfffcafc690a2194d29af6a44e10a9d4c923db8b SHA512 7cd772a6feed01543305417ff03b834bb002821ccf254e7f5481623a7f16b0b54da5fc72c21f4ae3481308eaab08fcca8fc5103ffbed58dc4355cfb661f04f8e
DIST genpatches-5.15-139.base.tar.xz 5486908 BLAKE2B 9bb9dce583643bf316d24dd741e13d26eb1a8adb1dd512d2fa69f5c1d901615622bd5170cca4efc63ca19e3e8454641529af2f9d989c9329ae2ce82c80a2b91e SHA512 91bfd0e55739e2fe833655fa52d904bea153cf156da109bd5548617bdcc44838bd3adb0bb4fe96ea8e27ad5f8836f191eb79151c7cd89254e3dff307f862f4f8 DIST genpatches-5.15-139.base.tar.xz 5486908 BLAKE2B 9bb9dce583643bf316d24dd741e13d26eb1a8adb1dd512d2fa69f5c1d901615622bd5170cca4efc63ca19e3e8454641529af2f9d989c9329ae2ce82c80a2b91e SHA512 91bfd0e55739e2fe833655fa52d904bea153cf156da109bd5548617bdcc44838bd3adb0bb4fe96ea8e27ad5f8836f191eb79151c7cd89254e3dff307f862f4f8
DIST genpatches-5.15-139.extras.tar.xz 3932 BLAKE2B 57659070be3889530d15448b8c38961fb4e45f307ed0f9bec896c70ee3bbdc133136fffe0f4f2e268bc96005766c1d662912b0d27077e67f917f4b30458c7694 SHA512 ca2599baa4e1462ad723b0a2c28b8e73a961a0b1b71a27344eb20a7e89fd1607454cb349d3c4401b061813fef395ce395f2cf6e52a75c249e6d22228a0c0466f DIST genpatches-5.15-139.extras.tar.xz 3932 BLAKE2B 57659070be3889530d15448b8c38961fb4e45f307ed0f9bec896c70ee3bbdc133136fffe0f4f2e268bc96005766c1d662912b0d27077e67f917f4b30458c7694 SHA512 ca2599baa4e1462ad723b0a2c28b8e73a961a0b1b71a27344eb20a7e89fd1607454cb349d3c4401b061813fef395ce395f2cf6e52a75c249e6d22228a0c0466f
DIST genpatches-5.15-141.base.tar.xz 5572792 BLAKE2B e062086d50d08b67c21c785b086c4bc0878f078ac6c10cabace2ebfe388af3497d2b98bb2e5d19d4b5791e78456bdf0e8c479121eb8c41b4ca2fcd362ebffe4f SHA512 1835684a7737d61423ec0778316b46fedea491a8f5254d9a2d630e5a78519d61d22dfa0d9d6ea1ece563f165c0d54c748f23bca5df304ad45338c27327e8b2c3
DIST genpatches-5.15-141.extras.tar.xz 3936 BLAKE2B c51e1f9dcf3995a2e178d8763407dc94595e513f02d96d54dc1b71a34ada0eaf46b6cb1cf4bebd39b4776605532df529cf8ed361480181af516ab889f915ee5b SHA512 5eb1f68368de87df9236bcf10726cd3abcb75a9f59579e9810b9ea53f3ad332d345a3da7c1be61826b6b739aabb11a838d12ba7be3ce2cb890e094433176b02b
DIST genpatches-6.1-21.base.tar.xz 1052684 BLAKE2B 8ceb101f650a74dee8401a4a08cb052e821daa4f04b2a9c82e1cb40f0589aef8e6974fd5355922b19868558b373d1751bce7c5db5923c49433955dcd1863b1c5 SHA512 9db8c2413e56f7684bf4414ecdce3fc21984c69851125971e9dde372a6f8fd04c9f5159273d67815d96565062a221d8325664dd8762d353bd24f9afc02eeed11 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-21.extras.tar.xz 3808 BLAKE2B 9d1bf513bea67b8ca4df1124b4c81857292b44f8e8c339b7295fee60cb04d323eef5de4f8a92714f641a68c3229a8b60b673760f7373ce54112f6f7231b18f4c SHA512 4439ead755188488e6f7c18210386121a78a30abcd8d56ca87d0069b7244ae87cf1ba312f033db49acf017ef6c581b58e0228baecf42df50e0d1d978fb4c5461
DIST genpatches-6.1-24.base.tar.xz 1155780 BLAKE2B e6be4766ec5aba82d12d5209c1ac86b013482c2c1d40a9d5f72afa0f86555816c859795db9fa229415dc813e8b35851c98f11d17884d3e928684827b6c434778 SHA512 5e0c17ed36ccfe2d926e835a74b283ad40a21fdab33220c82c9e87ec2cbe17c3e6cc356bb62e17a1ca12901bd56694819708af438725c67b68c142c64f0a938c DIST genpatches-6.1-24.base.tar.xz 1155780 BLAKE2B e6be4766ec5aba82d12d5209c1ac86b013482c2c1d40a9d5f72afa0f86555816c859795db9fa229415dc813e8b35851c98f11d17884d3e928684827b6c434778 SHA512 5e0c17ed36ccfe2d926e835a74b283ad40a21fdab33220c82c9e87ec2cbe17c3e6cc356bb62e17a1ca12901bd56694819708af438725c67b68c142c64f0a938c
@ -15,6 +17,8 @@ DIST linux-libre-5.15.127-gnu.tar.xz 121476536 BLAKE2B 14a0a3f01135c56fe56fccaa0
DIST linux-libre-5.15.127-gnu.tar.xz.sign 195 BLAKE2B d8f0e7600015df8d7ff237b3e8e979c484f6bd8a4bfaf1d87d216ae6ca344cf8342c579d2caec49bcdc05c2a062573f86724348f72c9e5939cfda4bdcc989d3d SHA512 e2e2b69cd6ee4f080d40d0fcce8a3b52ac3345ed5403c843efcd0cda0a9faf626b6b3eb5d076ca9c783c2395660f2aee26fb8c4b983389f64f9fe3293454f85d DIST linux-libre-5.15.127-gnu.tar.xz.sign 195 BLAKE2B d8f0e7600015df8d7ff237b3e8e979c484f6bd8a4bfaf1d87d216ae6ca344cf8342c579d2caec49bcdc05c2a062573f86724348f72c9e5939cfda4bdcc989d3d SHA512 e2e2b69cd6ee4f080d40d0fcce8a3b52ac3345ed5403c843efcd0cda0a9faf626b6b3eb5d076ca9c783c2395660f2aee26fb8c4b983389f64f9fe3293454f85d
DIST linux-libre-5.15.133-gnu.tar.xz 119781352 BLAKE2B a50c7735cb52f3e896d7759503aeac2452a689a8030e34fe0fa1970e2d8e8dea55d8a468ea06229c4e5ba11712e86c67caf6522060fde253ae1659fda5559107 SHA512 8d10134a1a7a142b368d23c64f3537417c0f97c059312d050cc9ecd286bd945bd8e6789f8832aaa74a9be3b08a3a5be6ee5601326240aec1f6ea7eb8e77a12fd DIST linux-libre-5.15.133-gnu.tar.xz 119781352 BLAKE2B a50c7735cb52f3e896d7759503aeac2452a689a8030e34fe0fa1970e2d8e8dea55d8a468ea06229c4e5ba11712e86c67caf6522060fde253ae1659fda5559107 SHA512 8d10134a1a7a142b368d23c64f3537417c0f97c059312d050cc9ecd286bd945bd8e6789f8832aaa74a9be3b08a3a5be6ee5601326240aec1f6ea7eb8e77a12fd
DIST linux-libre-5.15.133-gnu.tar.xz.sign 195 BLAKE2B 7963898e329acfba3e0b35aed1ddf159cb80e37f945183b2eff286882707dfed49eeba8a371491b75ba5f5633e66c375141bda036f506e60f6a08a3c650cc759 SHA512 eb59908ae6579a538aed8c5344b6e976cdb7dbb4e39ab5110015aef26ca5ab73d7df80f53c12f8e7c8b1343cea27518efe25207e52ac8bee90b70e9251b595cd DIST linux-libre-5.15.133-gnu.tar.xz.sign 195 BLAKE2B 7963898e329acfba3e0b35aed1ddf159cb80e37f945183b2eff286882707dfed49eeba8a371491b75ba5f5633e66c375141bda036f506e60f6a08a3c650cc759 SHA512 eb59908ae6579a538aed8c5344b6e976cdb7dbb4e39ab5110015aef26ca5ab73d7df80f53c12f8e7c8b1343cea27518efe25207e52ac8bee90b70e9251b595cd
DIST linux-libre-5.15.135-gnu.tar.xz 119817576 BLAKE2B 23ff9c5af896fc23a26b1f715feaa0a9873dd89e40ed634c5e811ece698c53d6885ec09cc440a10ba69017ef026e330781fbe8156485bc6b17401330669ef197 SHA512 bc0196ca0b2cec3eaef89d171cbc88bad9f731ab991b65fb51c05328523cd24d76e7a99d438d5735c65249e7ae14a662b619eb3480ac4995de5831a80b29893a
DIST linux-libre-5.15.135-gnu.tar.xz.sign 195 BLAKE2B 2155b91ab3053ed6f6b308ab62c64ea41f1f47d1820968408831dd91c384d67b326a96f990c68e87c7d26f0e3fe05ffbb6b9cdfc0ccc2a5e8271b6d76be55909 SHA512 e3ca8a8ae578f1cdb16543c76c90c0577e84cb321411711a0dbb9c2fc3397fca6f1501da2e5d1d74a24fe467c3f7cae40334acfaa0f037dfcf4de6a67c3bd0d4
DIST linux-libre-6.1.19-gnu.tar.xz 127193128 BLAKE2B 9f0aa053b7425064d1c0634911beb63d8015caa4de80fb0f241cc7d04148cdbe065498f925f2af29976349fe20c25d9988a5f2905d677ca66f013552f3114b71 SHA512 21ea759cbe4d0c657cd724d40f67d5da32531e94495ea9509f8cdfb475a52a24a340bbcae5d5238cfa80bdb5f4b7c8d814b9a422eb0fe67fc0d21ceef6ceb830 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.19-gnu.tar.xz.sign 195 BLAKE2B 76168997141cfafce0e6e5dbf8b5afdfd271ee988a4ffa473fa3dc4a86cab087f294be65497c97c3dcca3de8992beff57cf053be6785f92af797c23cf0b3bd25 SHA512 2267bedf4c51d5c60be216e27e3b1eb8ee31f088ad371963dbd598ae6386c66872b81827ad503cd22bac17babadf11022af4be9841edfb4cb10c85e1ad791180
DIST linux-libre-6.1.22-gnu.tar.xz 127173720 BLAKE2B 10f50ed7299aa60bbb5b798188e1af58b660f2f7f8600979e2a3a08f2becd3bae6b725c3296641ab6a65eb28e4e7e176f0c00d9ce82ccc07070e42127154935e SHA512 89163ef90a333ab5bf2a3af93d07351ce68cd7452a0cfde0ea17fbb78b6662e8989e0a623f68161a2c2170bd5a665f4f640d90d94495d4d6bd6200a5d2ec9c54 DIST linux-libre-6.1.22-gnu.tar.xz 127173720 BLAKE2B 10f50ed7299aa60bbb5b798188e1af58b660f2f7f8600979e2a3a08f2becd3bae6b725c3296641ab6a65eb28e4e7e176f0c00d9ce82ccc07070e42127154935e SHA512 89163ef90a333ab5bf2a3af93d07351ce68cd7452a0cfde0ea17fbb78b6662e8989e0a623f68161a2c2170bd5a665f4f640d90d94495d4d6bd6200a5d2ec9c54

View File

@ -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##*.} + 6 ))
CONFIG_VER=5.15.19
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
GENTOO_CONFIG_VER=g9
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[@]}"
}

View File

@ -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/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)"