summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-12 16:59:56 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-12 21:03:37 +0100
commit76c35ef5077466725a03bf87dd515bd44a6d35a9 (patch)
tree21a8501d822fc6443b539e4a507be18ca398e8c7 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.10.79 (diff)
downloadgentoo-76c35ef5077466725a03bf87dd515bd44a6d35a9.tar.gz
gentoo-76c35ef5077466725a03bf87dd515bd44a6d35a9.tar.bz2
gentoo-76c35ef5077466725a03bf87dd515bd44a6d35a9.zip
sys-kernel/vanilla-kernel: Bump to 5.4.159
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.159.ebuild101
2 files changed, 103 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 4c2d1a177adc..4831d4e3ca36 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -63,3 +63,5 @@ DIST linux-5.4.157.tar.sign 991 BLAKE2B 9f1fcbc89fb288a5898fb61b6dc23563fb14464b
DIST linux-5.4.157.tar.xz 109178352 BLAKE2B 416f50450cef7d7f2aaeb45cc9be6d88ca63d66e616ffd26bff8b86a5fe7ef30eae007a1e861bbe376cf16b4ff80af7e76df585871eaec4d34d75d32d867edb4 SHA512 05c49649f59dc8c86dff63e430aedbd2e77c93eff7056974a672e2d4c9773454d8451223f9f80649837032913fd2aced8573ff413a424314c00dabfb36770cec
DIST linux-5.4.158.tar.sign 991 BLAKE2B 533dbce299037f4b4fdb79a8562cad9d05ce4027b15ab0611d7901929051c333555caf4eefd621d28b8daf1101df9f557c47bb06c65701a880f0ab55b5226e0d SHA512 4bd5618db8dbbfe5c8f3810c9afd48b019bdb5ad10fa8e63e5ffd6f25558dae52475ac36444407b5350f7bd88bb307a3fa84abf594aa098a7f4e049d672f49e7
DIST linux-5.4.158.tar.xz 109178500 BLAKE2B 2f17825064e6dd718b3ed71014c9442fa4970066b496a81b059a8f84d22d1c5522569aa672ce08597a56150eff6315f19e7d0eb56eccdd8d9505f1cd1f6ad901 SHA512 ccbf29c70315055ec7f63eb29262970c68162f2e12046cb45ec17aacf0950e0ed8e60a236744f2fdbd4fe5a0b14e62cdbbb345c32b089e5172feb5e170faa14d
+DIST linux-5.4.159.tar.sign 991 BLAKE2B 6bfa914dbc39f76b76e743277a7f44e486535e831805f51881cc83715188650a63df934ff22a7ec9dcc33daee7f6eb13c748950ffb4b1516b7b28dddf8e1a59c SHA512 ff0e9c4af7d3f9ddc4d2eebd457856fff6c5fe331618239f8d4bab04a56e50f120cbc4ba57b19d0e6115ebd62628a4b568340b166508bb5631af527877becea5
+DIST linux-5.4.159.tar.xz 109178172 BLAKE2B 4b23992b3c90469295440c49657bcac6eb888520ad7e2ec5d1da0eaf0d1105c6ff30ee483dc66c7337750f49969ca1a7dc12349e7641e6363b16291321c4b680 SHA512 52268f2db7dbc141155609fff9ad79d368019e341a67de0cdb993832142231215cf8a827475bdb8cd93aee984d1954feaadaaa9699464d0985d6ad1fc66c421a
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.159.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.159.ebuild
new file mode 100644
index 000000000000..765b04d5024b
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.159.ebuild
@@ -0,0 +1,101 @@
+# Copyright 2020-2021 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 ~x86"
+IUSE="debug"
+
+RDEPEND="
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+BDEPEND="
+ debug? ( dev-util/pahole )
+ verify-sig? ( app-crypt/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
+ ;;
+ 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[@]}"
+}