mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
sys-kernel/vanilla-kernel: Bump to 6.4.15
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -68,3 +68,5 @@ DIST linux-6.4.13.tar.sign 989 BLAKE2B 0f23b79cf7d79941153ecc80162bcfae63eb1215b
|
||||
DIST linux-6.4.13.tar.xz 137872836 BLAKE2B 40aa951a92913116264013c6bc170c6663e6c709560596c48dece69a0fed6b4d7a44aa3fdc49dfa7ccdf9483b334be4575fc74bc38d1f2c0dbfe00748c4b29e9 SHA512 259436a9e6262bd4c2ff91f769f76259c2b85706dc9cd7c6d38d32c334efc1c425754ffe8f1c01820cccbf6ec25bf6f3c7ce4ad8f66de50e01bb1757adbdd3d4
|
||||
DIST linux-6.4.14.tar.sign 989 BLAKE2B 6f819ab7ec6bca5ffc4ce7cba7ca73206edfd0680f407ef18022ef5467469f5c819384c318d53bf78ce5068f55e4ec85e5698b7615c03daeca1f900bf55cace0 SHA512 3933d45f8cf4541d4f2e055d5c58ab526377dd5c65e35b4f4df804709a82198ef613cd8e4e41bd8cdf986f601cee390d86908e155606d260bc2ae7bb4ee7e02d
|
||||
DIST linux-6.4.14.tar.xz 137851916 BLAKE2B f81dabaef7e31b743aeb75d0dbb0a337e747d1d743fb0b38cb314498200d8d459d82f5f8bb34d6ad688842f3617fd53fd35b1b518654c845a6781580531ab1b2 SHA512 793804275fc8b11f3610951458f31044a7554a8f3e842f00dd9dd70c00f76c0ecc7f670f5824ce153173ca91105f6284a047f251cc198ea61643e7701f16e427
|
||||
DIST linux-6.4.15.tar.sign 989 BLAKE2B 19e156ebcb75187846f0aae7a1b12873e01567087ef2cb6887f8bf3d1dc202b68673c4b77490e7f42e88dcac406530ebcc206df027e49bdb040f9ed9850bc830 SHA512 aea1c8997eca1408b3340ba32f0c9b07c1308fde0216b69cc04bfb3561e4e2f76604767fd1202bb3fabc91cb2b78f29c939557641068e762238096f08bd24813
|
||||
DIST linux-6.4.15.tar.xz 137875780 BLAKE2B 03a9a830aa74fdd41de4fda5fdfa54b857854bec08ea82075388b64cc38079902af9bc9b7c2f8414ee92157e79a53906cb373f372732c0f75427d25fd69b70bd SHA512 3668518889b8ffbed8a69627c8354014788080a556a48deb2e7d01013e0ca76eb04655698f336dcc22a3533db9c7153f7e838d2bb89852f5da4d1440f5c39311
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.4.12-gentoo
|
||||
GENTOO_CONFIG_VER=g7
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
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/${MY_P}.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://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.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}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="arm? ( savedconfig )"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( sec-keys/openpgp-keys-kernel )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
einfo "Unpacking linux-${PV}.tar.xz ..."
|
||||
verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \
|
||||
< <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x))
|
||||
assert "Unpack failed"
|
||||
unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm)
|
||||
return
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
hppa)
|
||||
return
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
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
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# 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[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user