mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
sys-kernel/gentoo-kernel-modprep: Bump to 7.1.2_p1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -11,6 +11,7 @@ DIST gentoo-kernel-modprep-7.0.12.tar.xz 10081604 BLAKE2B 99202299290b1f4bd66282
|
||||
DIST gentoo-kernel-modprep-7.0.13.tar.xz 9712460 BLAKE2B a191e890543015f786ace9e4fcc26045a3be48aad65d8dd82dbba01992f4647a8f77a45495ec218d4bc2329a1e4218be200115272dabab66ddcff175d20d42a4 SHA512 e5c37463c4121a7cb81150c2651c72bed9a49c9ef66914c2655739a684f7bf4ffec83ea4a61fefb0b6fa0914fc7bcf9fc439f0275edfc07913d8fad8248d31bb
|
||||
DIST gentoo-kernel-modprep-7.0.14.tar.xz 9701688 BLAKE2B 222b13724d7b716ad39ede5bf73fe93265860e7dae48b3cdc5b5027f49226be00f01f117de748d51acf6fc0126e540d63d009cc0965e7c0067a576accc4eee4a SHA512 f72a2c155dafba7c35ad770c31d29445b409be3141b76327ccf1211fcefd921e3bb5f25b00ac2bece9f460891ad685d057a0d38c6485a149567f76aaee13af43
|
||||
DIST gentoo-kernel-modprep-7.1.2.tar.xz 10014260 BLAKE2B 37f2afe9b4ff982139b2251dc5f049bbc7ba56d666441ee1676422dab6465acafec541abc41229058be4496d31e38d0a6dca1418f80af8f81e7d4dd6aa629c18 SHA512 79fd331afe0cd9630fa65d47c68b5157baec3e696633e6bd0b22057d13ff95aa7eac7b85d87ea860375581865d96ade9ff814091ca5f1e791e0e18ab74f52641
|
||||
DIST gentoo-kernel-modprep-7.1.2_p1.tar.xz 10014420 BLAKE2B 6a07279708eb63df439d20ce80f48ba4f770789af27a48ed746c2874fe8d8249c8d601afc3478cba75ad837321add3c6ff216184209e29cdcfb986f69a362cc2 SHA512 1afa0a18000c3bbf97c873de723239b4c20b443eecd7a774b277d610e645697759690f659353f7be3228338d85b96fb3ab328b4bab25740534b879ce884560b0
|
||||
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
|
||||
DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548
|
||||
DIST linux-6.18.tar.xz 154309096 BLAKE2B b94b7b9bf18aca0c3e50baf79b009a1448fc6cd9c3ee019f641cc247dcf53a4abef4274ee0608ad8cd4943af69854363a95d26e117ff23620bb07dccb158859f SHA512 88599ffdec96d150c1feb9b261ba93bb0301a9d0e1ad6bef7aeab1f5372cbfc57d8b43c7e902bd8f76921d1dbd8189663c142ea869e51d0e2b483b150ee00fe0
|
||||
@@ -29,6 +30,7 @@ DIST linux-gentoo-patches-6.6.143.tar.xz 41376 BLAKE2B 8668d6bab0bbeed632eb25177
|
||||
DIST linux-gentoo-patches-7.0.12.tar.xz 12192 BLAKE2B 497a58611eae18e004358de9619a41d3d5905cc601d4a12d669b3ea894db142df45df370e1dcb20c46c9ac4e7379aff6bb3884463856b7868636f0fdfafcd556 SHA512 09dec958f7af9b0b59d396e8668e3d51087c8526ac8fc81598006266b1eb32866c1890abaebcd13e8b6eb434dffc9eb2bf0073609f250247b2bf3c58b246f152
|
||||
DIST linux-gentoo-patches-7.0.13.tar.xz 12184 BLAKE2B 8dba33d4ad7a19cf776f5fe418ef92facd122eb2c157597ea862c68506b0783ff112262f1465ed13b85c31db52c4d82e98f7ec915f09d8c320bd5e1328f89954 SHA512 91350eded178726b4e10bb7d4da416cdf1e29683733b1affca8421133b6fa43e91838f7cba01b0e2176443ba413a586691113fca1352d7be9007dfef704fcd4b
|
||||
DIST linux-gentoo-patches-7.1.2.tar.xz 12184 BLAKE2B 6c2f7f4e4b15a1f8d224f517bb29eec383898fca58918f1c9543bb9669ca69393c05036f0a1ded80a11c7f13287a60da30c4678627e14038bd56111ef9b462ae SHA512 68f4e6df0a9dfe8e4916e7a1bccb781a4434ef56be6b174d43b52ed62330cac333603060db54a22992ae8684c6b73f49c58db967a58f5e9ad07948d269893ca4
|
||||
DIST linux-gentoo-patches-7.1.2_p1.tar.xz 13688 BLAKE2B da6210ec05934426fbaf0f2a46d8eec779b154f47519fe265aec11e16ac0586e8fd0dd9ff992e52d0d6742fd10787e088707abc6440a2e4a5683594556653c46 SHA512 ac08123f0365056024939d2a1bee96a15ef716f1713ad4b79249201e95d10de6b575ffc4f516e7f4147865c2c854428b90066fab0eb0ba8b0ecede6a07b7ff15
|
||||
DIST patch-6.1.176.xz 7596192 BLAKE2B 7315ef778efefb7f94d6de1bcabbf87ce9accc235920c69a08bf7e2ee3874591394eb681304cbba85699211461f2b44e48c07132fb27ce16aa78fb9fc71e9fd7 SHA512 f3e4d5590687615d7cefc0df52cbc65eb75a5e7b4ecf89cd9e91086d43bdec3143a503483b123981b739617cd2c607e1daf06b64f6249f453afed0acfcd3ff99
|
||||
DIST patch-6.12.94.xz 4823260 BLAKE2B e3db641e9965737f5143714a52277c454fd70664b0a51f627f92a61d438c738e85451611afb60e8476e6d2aacec4f0e9dc009f3b720ac3bd59c54bad438cd8a4 SHA512 5afc7235971df37eb1209798d074469737614fd505f56b7ba0045053de69d35101abb375bf50d0dbe1fd2f211877bbd3353eb922427f7f2958911d1a7203bb08
|
||||
DIST patch-6.18.36.xz 2217668 BLAKE2B a3a26345633fb5044e36f1f021cb3baddea1b631bcce8b08717b80ee19543e9fafc8f121bf61ac085462791fdc849b3543b9d887864291463a26c1b7d6a140a4 SHA512 525ddfabea97a6a2b9d86175573c3a7d180d4944a732905bcfeb5d8af26426519784c53740a8927e3af11f1740d85a754e879809aa9cb61f98d1cb1cf2f6285a
|
||||
|
||||
@@ -0,0 +1,175 @@
|
||||
# Copyright 2020-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dist-kernel-utils toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-${PV}
|
||||
SHA256SUM_DATE=20260627
|
||||
|
||||
DESCRIPTION="Minimal subset of gentoo-kernel-bin for building modules, for containers"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/modprep/$(ver_cut 1-2)/${P}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT=${PV}
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libelf
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
app-alternatives/yacc
|
||||
dev-util/pahole
|
||||
sys-libs/binutils-libs
|
||||
virtual/libelf
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist-bin'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpack "${BASE_P}.tar.xz" "patch-${PATCH_PV}.xz" "${PATCHSET}.tar.xz"
|
||||
local pkg_arch=${ARCH}
|
||||
[[ ${ARCH} == ppc64 ]] && pkg_arch=ppc64le
|
||||
tar -x -f "${DISTDIR}/${P}.tar.xz" "${P}/${pkg_arch}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir=( "${P}"/*/usr/src/"linux-${KV_FULL}" )
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local pkg_dir=( "${P}"/* )
|
||||
local kernel_dir="${pkg_dir}/usr/src/linux-${KV_FULL}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
mv "${pkg_dir}"/lib "${ED}"/ || die
|
||||
cd "${kernel_dir}" || die
|
||||
insinto "${rel_kernel_dir}"
|
||||
doins System.map Module.symvers
|
||||
doins -r certs include scripts
|
||||
|
||||
local kern_arch=$(tc-arch-kernel)
|
||||
insinto "${rel_kernel_dir}/arch/${kern_arch}"
|
||||
doins -r "arch/${kern_arch}/include"
|
||||
|
||||
# Add the identifier
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${ED}${rel_kernel_dir}/dist-kernel" || die
|
||||
|
||||
cd "${WORKDIR}/${BASE_P}" || die
|
||||
insinto "${rel_kernel_dir}"
|
||||
doins -r include
|
||||
|
||||
# remove everything but Makefile* and Kconfig*
|
||||
find -type f '!' '(' -name 'Makefile*' -o -name 'Kconfig*' ')' \
|
||||
-delete || die
|
||||
find -type l -delete || die
|
||||
cp -p -R * "${ED}${rel_kernel_dir}/" || die
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
cd "${WORKDIR}" || die
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
dist-kernel_update_lib_symlinks
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
dist-kernel_update_src_symlink "${EROOT}/usr/src/linux" "${KV_FULL}"
|
||||
}
|
||||
Reference in New Issue
Block a user