summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-21 19:52:34 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-22 07:08:06 +0200
commit0c09424517e35fd9f74515b03e4b9de7d344eb44 (patch)
treebfb1c5be0220ca2d23f3c1126e3faa86f283de89 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.10.185 (diff)
downloadgentoo-0c09424517e35fd9f74515b03e4b9de7d344eb44.tar.gz
gentoo-0c09424517e35fd9f74515b03e4b9de7d344eb44.tar.bz2
gentoo-0c09424517e35fd9f74515b03e4b9de7d344eb44.zip
sys-kernel/vanilla-kernel: Bump to 5.4.248
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.4.248.ebuild111
2 files changed, 113 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 2ec57355e0f5..d274efaccb23 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -56,6 +56,8 @@ DIST linux-5.4.246.tar.sign 991 BLAKE2B 5e2748d3f9aac450fb3e589e15d004085246ea63
DIST linux-5.4.246.tar.xz 113016736 BLAKE2B 0d35d8a3620934c4cc13d4525209f125683c0169d9ee543934f96f1b6872de7be0d1e657bbd65baf17514092156ec8788d69cfc0c95f4822281e8faced9419a0 SHA512 375c48e69c6782f9a5f7de26b8b2af7e4b1f5ef1e29bcac70c3ddea9a71a1112fa116a2a098b0b5e9d5f5ae52388a440ed2cd5bb4798272507f3328fc6b707ff
DIST linux-5.4.247.tar.sign 991 BLAKE2B 90702faab66cb112872d5d694b78348a1299150b1159b3b8e347c7c8f6614643273bd821cedf52c7de80ed51b1b7c9b43c2ea6b1617810853a0973c1392c7301 SHA512 886a0dadd6a7e8e474299c2799a075a0c99d373a12971b99ef9cad43ffa9098fcc1760e3c3f50ba79900085e6c2207d3f2a95df3862bf5f641158c985e009313
DIST linux-5.4.247.tar.xz 113016896 BLAKE2B f9ee1a9c11cb6d797b92c8ce7760e50b7c2e69660ccf2660188dbcaea52598d0574f721f1a0a5f689f4ffb6c363ca4a82a9e65e30c867a1068a06bf62cbd8f8a SHA512 a1fe4be15029d55077d75150ba5439d755933362cd4324dba75497fa5cfb2aedec8d8a0bc558b5679e4527b3300dfc732143f494181ca607101be072b5d3b9d8
+DIST linux-5.4.248.tar.sign 991 BLAKE2B bf77ca23fc00885865c713c353f50b8d90c1bbe1265f5ee33fcda1b39b79e63e0d4c3ebee799c67a2dc997b99d8be032995107a5d1f88eb660e70b18e219e77f SHA512 5bd24c8cdbe647b1c387700e87a7b735b84fa99ed82334cf9f324cf5e4cfb883bea6e41b6dfad46b30aa0607ec28fd2ab1101ed927c82c1d573738ec07a1926b
+DIST linux-5.4.248.tar.xz 112959552 BLAKE2B de1fac6b2170c684e3158678690216ba13b43ba48a31b725c50839996f310a1613b440a03a8292b8f41a79a77b5a7d4c284ed9cd3966f95964ec921d6c77a271 SHA512 deef818e8b43adb39531bddab7f960a5d96bae6154e0c72eae12152ef0a3a14b715a8b606bf85fc4d34becbd897d0328709c40ac4abcbb42bb30ee6c34c2d5bd
DIST linux-6.1.31.tar.sign 989 BLAKE2B 86b86704f8e01a31c70a607d572a9ec2d1014cdecb321cb1b7fac56410692697f018c6237e77cd2aad6f53758f27e8177e39065e73dd0f274d4047c4f80e6c30 SHA512 f9488296d96f54490c8a506df7018d4804725b102959b070bd0c9bc64c7ea2d517d4f39273b4ecbe975ba75d712fbf9fe0affa4159546712fc4f0f9c1bf5c3c0
DIST linux-6.1.31.tar.xz 134903408 BLAKE2B a3eec74aa6313f387d22a57d72737cae6c5e60125596fc265c0f7bd90bc95b6f5ef5192028802995a3cb50e739be328711046aadf3adc93dd2047e4b439d4a01 SHA512 1202a47f29eb17ee074ce22289c6cd488acc381a59968728aedb6070874917cf331a2535629775f5ed3c442b5a82ceb17ed41804e719c2d3f81bcf249261bc7b
DIST linux-6.1.32.tar.sign 989 BLAKE2B 79d8eefb6212e8f7f3e28956fe3b384e663d57649ba57c0667a6c30fee342c2328d9a06c2908a4c7fc509835eea7f8334e33a9f29bf8f9e2ade0b361bcba8590 SHA512 2929b4be377799256133aa85a0f8de9ada79bbb8b0270b925299d9219229501f3065357df14549eb70dd6ef34a8010639dfe50efe7587af49975f0167d2450fb
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.248.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.248.ebuild
new file mode 100644
index 000000000000..e60639c72379
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.248.ebuild
@@ -0,0 +1,111 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build verify-sig
+
+MY_P=linux-${PV}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.4.21
+CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
+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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
+ -> kernel-x86_64.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
+ -> kernel-aarch64.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
+ -> kernel-ppc64le.config.${CONFIG_VER}
+ )
+ x86? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
+ -> kernel-i686.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+IUSE="debug"
+
+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
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
+ ;;
+ 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.config.${CONFIG_VER}" .config || die
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ echo 'CONFIG_LOCALVERSION="-dist"' > "${T}"/version.config || die
+ local merge_configs=(
+ "${T}"/version.config
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config
+ )
+ [[ ${ARCH} == x86 ]] && merge_configs+=(
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config
+ )
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}