mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
sys-kernel/gentoo-kernel: Bump to 5.15.179
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,6 +2,8 @@ DIST genpatches-5.10-246.base.tar.xz 7840332 BLAKE2B de0b2afa264eb332108107e1b49
|
||||
DIST genpatches-5.10-246.extras.tar.xz 4056 BLAKE2B 04b665b4c21fc242d6edbd258a93a1beb7e42aa3d2ecfbef681ec7020e81cafa2e0e7037d2ae657f94070f684d5fa3f2df4e153154abc8a0fbc1b728b61b3634 SHA512 7df2d73e9157cba76de9e2b990f028c26b89543cd7056b33ce07aa95b67b5db3c08fba799d927b4cb79e601ec2830edb1b492fa137bb03bf27ae6d9d7987dbf9
|
||||
DIST genpatches-5.15-188.base.tar.xz 7874696 BLAKE2B d755c6aa6ee6a8053f2e72d7e4b66816b0d8f81a6b99f061d74107b9eef8e2d1e52a8092702256978aaec76630b2b39de9389acdc82c698766af81a924d8adc6 SHA512 e126ace58f4377bc81c94081722291a1af96a7589485d79353533938c2a175d5c555ffae81c1bacd3257a5b37b76c4253a5381147aeb9cd91aef7f22596eff67
|
||||
DIST genpatches-5.15-188.extras.tar.xz 4056 BLAKE2B c24f9df1b68911333ba3fe7d63e6e9b60c8021022111328017c3ac5d4be780c0e211b03fd8fb1d3c8f5aa56882058116416ddc079539bb8b2fe0512391a8d1de SHA512 a691582c519d733ed41815985fb307c5c156d07bc707a555998a97e00f4beb35762424a9d0efcffb606c992d5933c918614888fab27822f69de0ce8b30d751c3
|
||||
DIST genpatches-5.15-189.base.tar.xz 8042552 BLAKE2B 16de78091a708a27edcad6ef82f70dc9e7eadb0545d61bfd9933cea4d98961ceb3edcd0a8e8c90aff3bb734748c4deb0f6c3091d7964da855fad2e2310bbc0d0 SHA512 d16816f13e03c945cb538d4711545f5c804203d81ca82250362b125b5f1515f689d5397cdb979457921c8da24aece0e66185025e932c3c4ac0971eb998a77789
|
||||
DIST genpatches-5.15-189.extras.tar.xz 4056 BLAKE2B 3c6954be8437c63fac20b7aa8e8b7f15a6f58d853d143fd4906ced12aef8311aa6bc83fa52c610803f005d2bd2020e24ba14574ddfc2b847f06d21ac66dc7700 SHA512 3082eb0a0dd2204368889920884a7aaee5dd4b78a447080cc8c982a0ffe8e41ebd44e888126b492dd43e2b73eb6b98fa242ad6c6699c698bfecbe41b1bd4becb
|
||||
DIST genpatches-6.1-139.base.tar.xz 6935336 BLAKE2B 30d7dd358ce4588cb948cff480a33fde127c0fd234da3cdae2a34640f33aa4275e53cbebf10f5b80d69e59965245a77919dcbbbe61d541b37da5699e3adb700e SHA512 0693dfbd329dcc525a7565cf238b8f93bcd61c0242e7c05f6870f782f9efff2b0c79da4cf1514058fd76e7dffb6640b04506aa5753f1539cd62e7aaeaabf7304
|
||||
DIST genpatches-6.1-139.extras.tar.xz 4056 BLAKE2B aa22b3363e11a53ee35d0d4ec3e95b3bac0326a6931bf0a260219da44b50f7ea8da69c4525d0c96e24fed013a8fb9f8fbf0471ef446afb55ffff13b4c7f7cb26 SHA512 473d93d7065dfe9223493df37a04b1d1a6be9707e05501868341e6058604b96fa697198978214ce8e8f70e5ad4f54dda4e9241639c48001540901120ffb3d7ac
|
||||
DIST genpatches-6.1-140.base.tar.xz 6984020 BLAKE2B e5fae42210839e3d77570781c61a0dfcab059a3e89c9f750c905756a435032598676f08ef04df2287911a3857b903a0d453009b395222a70d92b8d9f6a7efb1f SHA512 d60623d0112952865bc80e6245b269dc9630623d322e710929a39bf8fe3d5f021d1442be8d96401d7eb1ca3ed92a267ac89a6a3418f48c494a338375dc58bbee
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g15
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
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://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
|
||||
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 ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# meh, genpatches have no directory
|
||||
"${WORKDIR}"/*.patch
|
||||
)
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
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="-gentoo-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