summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-15 12:59:40 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-15 16:56:40 +0200
commitb3e0ef4910b012fc044f5e38997489f405cd75e0 (patch)
tree09d6d3fef3a6caa8eb5ba579ccf51fd161076ab8 /sys-kernel/vanilla-kernel
parentdev-lang/nasm: replace obsolete font name when building docs (diff)
downloadgentoo-b3e0ef4910b012fc044f5e38997489f405cd75e0.tar.gz
gentoo-b3e0ef4910b012fc044f5e38997489f405cd75e0.tar.bz2
gentoo-b3e0ef4910b012fc044f5e38997489f405cd75e0.zip
sys-kernel/vanilla-kernel: Bump to 5.4.213
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.213.ebuild108
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index bb8542b30338..a95df6ad2996 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -46,3 +46,5 @@ DIST linux-5.4.211.tar.sign 991 BLAKE2B b8a72fc09b476ff8539eb9208b7164864822b501
DIST linux-5.4.211.tar.xz 112946912 BLAKE2B fd34cf8643768dad40e96ff12058bbfa6240d456b0f0d58a67d0e40c527b91c3571783ef0abdb2e36d6c6314cd1782e032b64cb1a5c8b7aa1d586e191df024ea SHA512 7da542bc6ae6f46c5ff235c09f2656c29465a71edf2a83f0a7ebc57c6eb14a0f7ef4bd0c25614f0b4e191f80e617517341e8b1f14bb6bdccb003beaaf888cb2d
DIST linux-5.4.212.tar.sign 991 BLAKE2B e3520f3a479d9d0c580dae1bccc5a5ff2b510e29921a9cd19598d7f3145db0d831daadc0e424a33cc020a4c9afbd1dd254cad8d04a1ffb458b83c512994f7e98 SHA512 df7b3ac3774069b0d05a93741c8cd10e585abc418585b0a3581b16452e06c1ba04a1f2d2efbaa1a29abb53ad63c8baf70abc5897e85f5d4c288b26890b2454cf
DIST linux-5.4.212.tar.xz 112925892 BLAKE2B cf40f25216089ab9b57bf0d24d6fe380cf8b2644dc9ab3d15040dc4ea7ef93a043ffc83a292e376eb23688305842f0803e11adbcf98fbc46929e0e6cf58c1438 SHA512 48686c93f62cee6de8d5cfec212244bbd37e0d2e5b869054c7d49840a6976b7fec26c4a15139f70f5c33d2f387492fe18a6558920cbcd139edb1d9aa1963a699
+DIST linux-5.4.213.tar.sign 991 BLAKE2B 5266f3850825ba2eb12b2dfd2d61c22550e55da2bd2e1e970fe462bf3ddfb4aa1c156e414efa22d8ef3cf73d625532aef1ea8480f9f8d87d09ead700f616e268 SHA512 4a469aee797ee108c4bbe140010bf976aa8daac98e7b09071d68667f875f8a12c9a1b1bf3350ba9415aac55d9d84e95102b123a4240fa3d61f3f9a83f7c89fd6
+DIST linux-5.4.213.tar.xz 112947888 BLAKE2B 5419828bedfa781b7bbf30a9e8af6f87fae7d910beb30ee6c4b388544d7e82a50816de9b6a3ee0e5c33474f88885f5f1a4d7aa23c17c29558ed4e731be803dd5 SHA512 2e177440179e889776b8d8166ae6ef3173755ac64f127a370ace5f376ac1a1804c4683058272bf8fae5a02efc36d0e59cbbb2bd12cbccad2348b5ddec6a8798a
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.213.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.213.ebuild
new file mode 100644
index 000000000000..ae90752d5ab5
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.213.ebuild
@@ -0,0 +1,108 @@
+# Copyright 2020-2022 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=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.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[@]}"
+}