summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-08 20:23:27 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-09 00:21:34 +0100
commit0aa3327857cbbb60b8ebe31c88018c52a7087d78 (patch)
treef367569c424233065e9cbe39360ea503c7a95673 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.10.99 (diff)
downloadgentoo-0aa3327857cbbb60b8ebe31c88018c52a7087d78.tar.gz
gentoo-0aa3327857cbbb60b8ebe31c88018c52a7087d78.tar.bz2
gentoo-0aa3327857cbbb60b8ebe31c88018c52a7087d78.zip
sys-kernel/vanilla-kernel: Bump to 5.4.178
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.178.ebuild105
2 files changed, 107 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index dd287ed1d9b9..420d4f00109b 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -44,3 +44,5 @@ DIST linux-5.4.176.tar.sign 991 BLAKE2B 6eda9712c42bcd44a52f6ac603bb0d4c2698583b
DIST linux-5.4.176.tar.xz 112880184 BLAKE2B af66cb30d3f9ff38f6e11cec51f355a4c3decec22f5227e3c0b095b09c735a239fdf1c2b3c5af557d7c642e6c25840986e115260049cf2287ef0d70fd1d35a4a SHA512 99b489523813446007f3bff117cf12a0c3f6f09c00bbeb2cb825c1ea56aef3f2f10d6f2a9454679b35a3024f8dff4e00ac8da480e35a29c7d9775b9ecda6445c
DIST linux-5.4.177.tar.sign 991 BLAKE2B d285ee715f43e2fe7aee5556baec4355a479dd14020a0a1753d9f5e541e50a24714563dd5de2e535df20f608c39d1bcbaf55b422208d9280ced2772e25115a7f SHA512 e9f38cbd706aa0df45d30e3c5d8f3b79843cd29f362ceed4ed2dfc868b64285da3e679640ca50670b80b6dcfe9144903f504ccaa4f4c70f3b5e5311b29ad509e
DIST linux-5.4.177.tar.xz 112891060 BLAKE2B e9423cdb22aebb95794a9a6c95f9051302effa994c5b75e45d35339d11cd6d501995e093143df5615e622a6fd7bc4821367517afdb85a2907edc085b71d535b5 SHA512 646849ed7373772aebafe2ae32d8fd4641b73799e60785a8978f61722fe5c477fdb6dab53411498562b50a033efe3a381313bd8c73abae98dfa592f99815cfc9
+DIST linux-5.4.178.tar.sign 991 BLAKE2B 3cef045640a0c5de3cc0ee6295d65e236b3fa0e13a42879df350f1e9398eebfa67fd471e1acc72e56617dc6949f513454b2042e7f760dddb0c15ffc5dceb32d6 SHA512 2ef3ae39626d363d79b0ab828261dbc4e9f24c7477de0afaab350edde7fdd77992a3ea7bf201c70b9ff49a5ce81b9164ed5b5ebfee871c17eda349f232cc1b6d
+DIST linux-5.4.178.tar.xz 112888492 BLAKE2B 4492caedee5ee665f8926fafc6077db9e6d84c25af63a68923cba1d920530b0a49264fe83f43f666ab1fdab2211595d255b6edaf49253d1122da5678349a9a9b SHA512 4f9842cbc7394d2010d10129a9772c4c6207d3b12a62c1b52777c5bcd796a169147c3b7cbafc99fac8cce7f35ca160754f565c10bfd953a6858436157c27a72b
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.178.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.178.ebuild
new file mode 100644
index 000000000000..0cc0038429d9
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.178.ebuild
@@ -0,0 +1,105 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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=5.4.114
+
+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/mgorny/gentoo-kernel-config/archive/v${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[@]}"
+}