summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-09-02 16:17:33 +0200
committerMichał Górny <mgorny@gentoo.org>2023-09-02 19:34:45 +0200
commitabfc7853429fb2beeb0262306de392c4ee1a29ca (patch)
treefea92d11bbd20f44eb81896b9c84332975a80063 /sys-kernel/vanilla-kernel
parentvirtual/dist-kernel: Bump to 5.10.194 (diff)
downloadgentoo-abfc7853429fb2beeb0262306de392c4ee1a29ca.tar.gz
gentoo-abfc7853429fb2beeb0262306de392c4ee1a29ca.tar.bz2
gentoo-abfc7853429fb2beeb0262306de392c4ee1a29ca.zip
sys-kernel/vanilla-kernel: Bump to 5.4.256
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.4.256.ebuild111
2 files changed, 113 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 456467f8b6f2..3835ecfc2e91 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -46,6 +46,8 @@ DIST linux-5.4.254.tar.sign 991 BLAKE2B 4f5a5e4ea2c930a62e3743c4f10d8e9999530a10
DIST linux-5.4.254.tar.xz 112963588 BLAKE2B e0e395636643c49063cc1fbb04e06476ecf17471818f909559dc8f77fa5de69b8774ab8d6b16b4a2a57f32a7bf90126d381360fdd52069fc435090cde07769f8 SHA512 ccd82451c72eef0a0f35eb8c0e296e3018573ab99b602cce0a107bf2514bccf93113ea86d16205cb1b6a9f7c0198d411a250b215aed3cb0b4be6fcd27b878039
DIST linux-5.4.255.tar.sign 991 BLAKE2B ed1e0fe2f8516b8c4728b9ef7ad60e51af66a3ac991e9de740f270cbcbb29e3f4ac95c1b2db736a8b04531b5f9be6af594eb1012a12d56f7c5a5797952b55766 SHA512 db446deca7a177372f53519feca9b54cb570830dd3b67f4aa1b40db0efa17bedfcf85c888f38235b61d85afd5057238aa0f6529c1ad1c7f17cb59af56bc60a7c
DIST linux-5.4.255.tar.xz 112966236 BLAKE2B 5e5ffa92169c846365a6bb6baee6e99e2fbe255695645c62f117f6ae9923a57511ab70c810b223212f013394cb45cc4f9a85d1d9f81fbcec10d1c67e0458cb34 SHA512 776148e94067819f5af53b7421b625a68651ea5c22d14cb5a6faa099707d6b6f18a7bc144924b35e5d1d4c25b84ead8a1e8a7669ab9cf6fefb07b43a471c5a81
+DIST linux-5.4.256.tar.sign 991 BLAKE2B c47e8f8c6063f5bc82e0f6842d3953eaa86ff643f944c3c6f2bc465287774e4c3f3f5abc7c338220809f89fb1e0c0e60d2ade092687df5ca9cf6e2ce1a2d0f43 SHA512 8a3d10ef6286bf0119a29b72a8ca46d10a1cd27b196c39fc15507d68e3e7b87fa413437cb6c9f1b3cc194c6a89f7661ce78b39a3b98fc0d50e2f6b6d680b0bab
+DIST linux-5.4.256.tar.xz 112969128 BLAKE2B fa74352685a56f15983403d1bdb124e235e7e1b3e2688f45725094d100c19b5457095863c6b2e7bca8bc27aa38a523f49b32636de747d0fe3e9812ac75639a0c SHA512 aedc97b5a9810b58af647bdd2c6a666e5117c161d156434f5171c957a638395f5ee7e9d7c75a1de83d8693841d6ccbe45e3baea5ac5fac45ecdb9164a5544df5
DIST linux-6.1.46.tar.sign 989 BLAKE2B 95f91ecbbad15ec67a2723799419e295485cf1fbfb7dca7dc12c8433835df4ce2efe92c7f24f58a890e2c2311eaa7e52d71c9df442944edc9893dff05c780571 SHA512 bc2b89126155d9bcbe0275a221bb88a1bb1d615b5ec036ee964d664af0cac8d15b3511265aebc8910f0174deb30547cc23e836efc0db061d0e2c841b87ff7464
DIST linux-6.1.46.tar.xz 134962288 BLAKE2B 07a069c04919899ce2b0859d0a528ee13b154ec8c9e868a2a0e64f6bdcc0ce30ea4fd002f1b58e62eebfaf8216e528e26b79c7a99c67f208e4d36eca590836bf SHA512 677d524974f76aeaaddab158e13df7c820e92f6e3c74683f5cd3dc9923859982079cd1da3fb41d3e87f96d72fb0abbc92d662122898e0a79adc7c8eebf005bd5
DIST linux-6.1.47.tar.sign 989 BLAKE2B 5783f29b3e5803559e818c17c22c8a3766e3e00dea494b2184c3199d6c068de4151f9a0684035d7c43ae9d7d21a762095cd726fc49f653f1c7b298874c72a31f SHA512 7f3a831b0274c54b719cc0ec94cd3e0499406fb6f5fe3caa07d9aa9e42feaf416f8bbaf908d1e7d308c7eee2a9a37e05742b41405ac6822726a08e23e3f4db7c
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.256.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.256.ebuild
new file mode 100644
index 000000000000..e60639c72379
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.256.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[@]}"
+}