Skip to content

Commit

Permalink
sys-kernel/vanilla-kernel: Bump to 5.15.72
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Oct 5, 2022
1 parent 3ab7c16 commit d4d7c96
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys-kernel/vanilla-kernel/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ DIST linux-5.15.70.tar.sign 991 BLAKE2B d576f7fca0bad50d261e4e7b66227d0700bd90ab
DIST linux-5.15.70.tar.xz 126434784 BLAKE2B 1ece12fb0cd1ec1a8951c5c30b6f6fb973caed6871ba86879103924e78065f15fbfd718a239cd58b4c97c2fe6ff90c26dd63c583d7ea83b63883c6bcc6d4cb38 SHA512 5885d889d5db5f1e3818160c0b7d43fc66dbe4758dceeaf4ce6eaae775e998863a3068d6cca500b4affcf6592f714c3b58b436b8f104789be2dd37551c5d0ef1
DIST linux-5.15.71.tar.sign 991 BLAKE2B c68c1e6ccdeaa6b7c655ff850b50c69cb2c72fd832557d3e7919379daa7b48c2cbef9910b69c8c46aa5817c4f7e2bc70888628f9268349bb036b35b8fa962f46 SHA512 e7416065d4b565ad69ebab70e4c25af76fb405251e00363b445025f0b543af800a696098f0393efb3f69dccd7db4f82dd7b24ca24e94e9102a1f09a7455d87ac
DIST linux-5.15.71.tar.xz 126446412 BLAKE2B 77da2393a31b6c6fed7cdfef61a112ae49fcdfce96968daf8c7a690a6e65025c7238c1fe084d0bfda403dc56db877b6db99def12803e840cacf318da40327d7b SHA512 7d20387a1f82d7ec63ff06ed05885a2758b39ece0fe95ad559d79216210e342f0df4dfab9f54c1e4016c331516034aa1b6783d63dd7e415d0cb20947301f95ab
DIST linux-5.15.72.tar.sign 991 BLAKE2B 90bc5b088ab8c44f9b8bf96934547b07090f9dc27aa1f8a18cb028fc17f2638107868d678c6f80b22025b9093c653891de2bba942fac049f20e62eb2498d185a SHA512 310a5b6991ded25542e37112125975dbe1dd6eeb1f1aee8cbce18ba4ca16892d88d5c56bf6bb55ad5bd094fe9a9b6f5d83cae8586d07c3b8a67eaad889a1b05f
DIST linux-5.15.72.tar.xz 126456132 BLAKE2B cbcee67d4d96085f954bee66e5270c36587b4407db2b66ae7ba6f514e3f1f09878000cee18984bbdd21aaa1278ad6b47141cfa50a0a5e96c921c5371e90319a3 SHA512 c6288f664cdc02711382592493c84152f2139b8aa0cdee7d448c7aa75363028a1b7ade15414e7d9d42501f754a6d8eaeeb2dc663ae3b3cc95e9d0882d5aa8d1e
DIST linux-5.19.10.tar.sign 991 BLAKE2B 4d9c1de396214aaf5f0f661628cc0fe805dfce6ea0e256517553276bb1ac07a989fdcdec7656a5adc91f35016a8989308736a1ad09e41b603bd95b3518212eba SHA512 56f6d1e6036ecc762d2abfc278a40d9bd4e6162ba3ff5382a6f247b2b73408fe43289927575c88a27372baf04edcadc4d928c79c3a106eabba2dca37487619e4
DIST linux-5.19.10.tar.xz 131654840 BLAKE2B d2da85f8c863f01d13df0411a519cd739abaf6b49d98ff44eb07962f45af9fa8296a293e6df5d6fd3661112fb4f4ad0de7ab279c2a5765f8c3781e25df056288 SHA512 3377a2a8de0efcfba78982024d450d5de423e84ee5ec317a25673b8176e3968a9891ef6a0465c3be674b3d9cdf06184150d79e7292754b8be8070e4654e79146
DIST linux-5.19.11.tar.sign 991 BLAKE2B ff6bc783585a5e629b888e7b1b9560014a00e4334a3a78a899c2e9fe19ca1441e4cb8d67a7b264c49c8e08442be44c9330133e1c63c40ffa82bc23107067d09e SHA512 de201e60cd167debb6ce029f06bd758ff85d2826ac5c6fde0fd2c9b6d9bc9146ce8b7b77d0d4b19d63690ecf880f85fa087fcfccb490bd95b10994acbe8e771f
Expand Down
134 changes: 134 additions & 0 deletions sys-kernel/vanilla-kernel/vanilla-kernel-5.15.72.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit kernel-build toolchain-funcs verify-sig

MY_P=linux-${PV}
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
CONFIG_VER=5.15.19
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
GENTOO_CONFIG_VER=g1

DESCRIPTION="Linux kernel built from vanilla upstream sources"
HOMEPAGE="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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
arm64? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
-> kernel-aarch64-fedora.config.${CONFIG_VER}
)
ppc64? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
)
x86? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/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[@]}"
}

0 comments on commit d4d7c96

Please sign in to comment.