linux-libre 6.6.47

This commit is contained in:
projectmoon 2024-08-21 16:36:35 +02:00
parent 49f0b8eab5
commit bda8616506
3 changed files with 170 additions and 0 deletions

View File

@ -4,12 +4,17 @@ DIST genpatches-5.15-173.base.tar.xz 7038704 BLAKE2B 4cf6ffc38ba49bdcac210b165c9
DIST genpatches-5.15-173.extras.tar.xz 4052 BLAKE2B e7d4effd4092467275f3f076676daa06caa2f647da1173a6132ebc30da1be78a085ddede5aa170c3d666f1808c4824f441dc5a1e873868fd72347a0c84149fff SHA512 7d272e7448a6688efc98a5e71eb8f83a978d82e9b177ae0b9b12c479078e23fb8dd66021f1ad488d9bfc056c89e7ee8642425dbd15607eaece249b565edc7fef DIST genpatches-5.15-173.extras.tar.xz 4052 BLAKE2B e7d4effd4092467275f3f076676daa06caa2f647da1173a6132ebc30da1be78a085ddede5aa170c3d666f1808c4824f441dc5a1e873868fd72347a0c84149fff SHA512 7d272e7448a6688efc98a5e71eb8f83a978d82e9b177ae0b9b12c479078e23fb8dd66021f1ad488d9bfc056c89e7ee8642425dbd15607eaece249b565edc7fef
DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e121acf4a95d130866f37ac0113a8697df1996c13bbf65e14f4a5703f7bb3f4dd3ebfb29e258ca358d191c0580a7f8e61fbf7c0c SHA512 3fc49566b23ef50590a3b9f90eb99558c9e37847259e0defdfb0ca036c37b7f45c4989d58787b8488c67ea031114173319346c1c17799680ebfdc581ae7e4588 DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e121acf4a95d130866f37ac0113a8697df1996c13bbf65e14f4a5703f7bb3f4dd3ebfb29e258ca358d191c0580a7f8e61fbf7c0c SHA512 3fc49566b23ef50590a3b9f90eb99558c9e37847259e0defdfb0ca036c37b7f45c4989d58787b8488c67ea031114173319346c1c17799680ebfdc581ae7e4588
DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041 DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041
DIST genpatches-6.6-54.base.tar.xz 2922380 BLAKE2B f65404127bb6547208aeddac1996a4a2659bd99ff7429bcaff28247a867c000e962457725eab80db2c76297f1e5c27806dc6fb23e31d5694b6df783e65995227 SHA512 102f721f87478ad18599bb5ff65cd236180dd3d9d058786a5306cb36be3f30a2d2ef684e83b6f458d4de78a196323e87d346eba704bfbce733010aed6ac3d7f9
DIST genpatches-6.6-54.extras.tar.xz 4060 BLAKE2B 22ea7d143bfe168bc5d9d30832423bcd33b49c1b3b5ddf031000d7d9fce96f6fa0fb1d06fd33b27a5de9c9f3833a139557f0ed7408ef12b23568784ff38ca7a9 SHA512 1b1a229b5923e7f3426139b17608b5feae6061313f7aea66de23f09a54696def39bf4b384c4e884a3e5c758c08e04dcfe1ab7f2aa331db74b59f5e511c6f2c5b
DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6 DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6
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 kernel-x86_64-fedora.config.6.1.102-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c DIST kernel-x86_64-fedora.config.6.1.102-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c
DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa0ba395570cd0173af0210afe63faa48d7a147327110652e3aab5c339cf10ed22a6a20e81e505aee84311beb21fda3eb577e06ea55ecac8 SHA512 c484403a60670dd006ecbe65240cb00d97e8b3fe22d1169c5b6ccb92bcdbddb3ecd474d2b57880b30baf6a38bcef11fc8d56b8b0b02fcddd859833c3640cdc9c
DIST linux-libre-5.15.161-gnu.tar.xz 119901612 BLAKE2B 8b93b9cf15b5b7ea1fee46371fc97f2ef7ca7b27bc40edc1604ac8f17b90548d6d80b28acebbd481c069a58a28787df74cbbe158f7dea489a35f069bddb4abf5 SHA512 ac9c178967cbd0220aa34f72f33b1a5f6dfd500adaec96656fc93d37f843023224c3cff5393261d2d38ac27dfdf5b2c4d0f0f2b124b9064c1450c32127ed38dd DIST linux-libre-5.15.161-gnu.tar.xz 119901612 BLAKE2B 8b93b9cf15b5b7ea1fee46371fc97f2ef7ca7b27bc40edc1604ac8f17b90548d6d80b28acebbd481c069a58a28787df74cbbe158f7dea489a35f069bddb4abf5 SHA512 ac9c178967cbd0220aa34f72f33b1a5f6dfd500adaec96656fc93d37f843023224c3cff5393261d2d38ac27dfdf5b2c4d0f0f2b124b9064c1450c32127ed38dd
DIST linux-libre-5.15.161-gnu.tar.xz.sign 195 BLAKE2B cbf5ef7846bacf4becec3501cf9569b17206217779893a63d1a6f1cabf0037b65f90fa99b1391eb44a35bc3779311cff0c98d32e5a5788d53d51b038e9a2ad78 SHA512 9bbb8c44bb17125c761b54797f2f6cc49cb9d69a719fd0afae390d901b14942e35ab7a6d756203b8fab2a2d4655e1033ea9c734cbc78a43c0b11212435f092ff DIST linux-libre-5.15.161-gnu.tar.xz.sign 195 BLAKE2B cbf5ef7846bacf4becec3501cf9569b17206217779893a63d1a6f1cabf0037b65f90fa99b1391eb44a35bc3779311cff0c98d32e5a5788d53d51b038e9a2ad78 SHA512 9bbb8c44bb17125c761b54797f2f6cc49cb9d69a719fd0afae390d901b14942e35ab7a6d756203b8fab2a2d4655e1033ea9c734cbc78a43c0b11212435f092ff
DIST linux-libre-5.15.163-gnu.tar.xz 119906028 BLAKE2B 45359962b3728ca0b891f530d49ea15a9588f6aca303f460c561ecf35c0e5ff09ad7b6f71f98ec71123e7e06823f7676bbaf0492e24e02e6fe479d5f061862b5 SHA512 545d20adefeb2ea22677694f3ed9a252d8f834a1f72a4316d9038207ca6588b80952e0e42b9383c07a313f975bdb5fe478049d7c3b416737e2a7026aeade5cb9 DIST linux-libre-5.15.163-gnu.tar.xz 119906028 BLAKE2B 45359962b3728ca0b891f530d49ea15a9588f6aca303f460c561ecf35c0e5ff09ad7b6f71f98ec71123e7e06823f7676bbaf0492e24e02e6fe479d5f061862b5 SHA512 545d20adefeb2ea22677694f3ed9a252d8f834a1f72a4316d9038207ca6588b80952e0e42b9383c07a313f975bdb5fe478049d7c3b416737e2a7026aeade5cb9
DIST linux-libre-5.15.163-gnu.tar.xz.sign 195 BLAKE2B d87805ff395ee77384fe4ec0af4c2f68e6915096f9f69b1b7a045262b45ed94c9d22294c82b9c6181e8f73256c45758d90edb8a924ef12fee5c2a8a0e0437e48 SHA512 8d87310e5ffaee5bc5aee287b8ce2002e301b5c0b30352ed7b065ecd60d68230d904f48b893cb15e5f926fbab4438b115f90c57151fbf574eb8a8bce4c0120b9 DIST linux-libre-5.15.163-gnu.tar.xz.sign 195 BLAKE2B d87805ff395ee77384fe4ec0af4c2f68e6915096f9f69b1b7a045262b45ed94c9d22294c82b9c6181e8f73256c45758d90edb8a924ef12fee5c2a8a0e0437e48 SHA512 8d87310e5ffaee5bc5aee287b8ce2002e301b5c0b30352ed7b065ecd60d68230d904f48b893cb15e5f926fbab4438b115f90c57151fbf574eb8a8bce4c0120b9
DIST linux-libre-5.15.165-gnu.tar.xz 119931308 BLAKE2B 312d6a2091f48fe013d9207c749ff6fd850565e1a77b8bd437167fe8b7863f2b4c39b4ee43bd00614c3b8229a6de2ae671863e1a258e8248d8dc19e5333e309d SHA512 475063e224e3fc3c9bcc64b79dc5d3e41159bbf144c7cd1dd7b024c90996d788718b1ebceb19412b357cb6b8976f7135ad202a2b36197dbb7a311c4b1be9997b DIST linux-libre-5.15.165-gnu.tar.xz 119931308 BLAKE2B 312d6a2091f48fe013d9207c749ff6fd850565e1a77b8bd437167fe8b7863f2b4c39b4ee43bd00614c3b8229a6de2ae671863e1a258e8248d8dc19e5333e309d SHA512 475063e224e3fc3c9bcc64b79dc5d3e41159bbf144c7cd1dd7b024c90996d788718b1ebceb19412b357cb6b8976f7135ad202a2b36197dbb7a311c4b1be9997b
DIST linux-libre-5.15.165-gnu.tar.xz.sign 195 BLAKE2B 69c860aeb656c3207d31209ff71c8d75aab95842611500aec2c59ab222ff7e2c27535cbe952da02edfa425afb6c18cd4a29668e0a46a40ee295bfad856e26287 SHA512 7418b5312cf8a2c5f0ab00f1a3906858256a1d172adfc493d95f7e1f06ece7efa00c9bc71b9cccf447bbb6b76c42ee8201044d46fa028b49be47edcc05983c77 DIST linux-libre-5.15.165-gnu.tar.xz.sign 195 BLAKE2B 69c860aeb656c3207d31209ff71c8d75aab95842611500aec2c59ab222ff7e2c27535cbe952da02edfa425afb6c18cd4a29668e0a46a40ee295bfad856e26287 SHA512 7418b5312cf8a2c5f0ab00f1a3906858256a1d172adfc493d95f7e1f06ece7efa00c9bc71b9cccf447bbb6b76c42ee8201044d46fa028b49be47edcc05983c77
DIST linux-libre-6.6.47-gnu.tar.xz 131910236 BLAKE2B 34c90f7f96a00b05f6de5bab316a538f091afbc34c5d5abe5febb930077e81426bafa0f1997b25b1acb67242691e2b782a18f878f271b172cf37757862df9cc0 SHA512 305a92fcbe22efc33c1098156195c281fc9235a39151a59f32ff1de515409732f5793eacccec83c089925f5cc206baf28b16002e1010c95db5af56ed041869cc
DIST linux-libre-6.6.47-gnu.tar.xz.sign 195 BLAKE2B ebc1564bc0b0de60050af17f78af8b6ba38aa59bba52c4b9c1a2f32e941fe6214ed42b5e4e986700a3e5871b4298bfac06790cb7b903830b34639eb2a8d6a44d SHA512 8a88e80b8702d1d68ad012dd72ccc32e512fdf994761850f187a19e90cd1534588150fdd2dfb942a152b1c56cd3f5ac5fba0586cb784a3d7af13c9ca517f6199

View File

@ -0,0 +1,148 @@
# Copyright 2020-2024 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##*.} + 7 ))
CONFIG_VER=6.6.12-gentoo
#CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
GENTOO_CONFIG_VER=g13
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,17 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual to depend on any Distribution Kernel"
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}
)
"