summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-16 15:22:08 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-16 19:07:44 +0100
commit77588c9808a50cec232290809702524574070ce8 (patch)
tree744f0f37b993ee94497e239d294a06de97e51bc5 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.10.101 (diff)
downloadgentoo-77588c9808a50cec232290809702524574070ce8.tar.gz
gentoo-77588c9808a50cec232290809702524574070ce8.tar.bz2
gentoo-77588c9808a50cec232290809702524574070ce8.zip
sys-kernel/vanilla-kernel: Bump to 5.4.180
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.180.ebuild105
2 files changed, 107 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 4492028cb6a7..291d3dfd5040 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -30,3 +30,5 @@ DIST linux-5.16.9.tar.sign 989 BLAKE2B 7e81a5ca6c68e347316bb96d75576d6034c849019
DIST linux-5.16.9.tar.xz 127566148 BLAKE2B ce4544512021eebfb8d7c87e176ae1e4ba741021c60484369af5280c51c64df48553ab2d7b53de2c3e358ea9bfbb8545a1dc7ef694628668bfcab329c59fb0fc SHA512 9f6f1c3b665b277c0432e86fb99fda2579685f680b245793f58d75d962f588a5142ff79325efa3ac233e946f076245cf8bb9f94f35f7a99932dc7f51e7f69d4e
DIST linux-5.4.179.tar.sign 991 BLAKE2B 3774c967791c06ba872128010ec391480011941ff995723f6c9afb1707ffa30c530ec746061a75d392287b70e6fd45c11206749f6a3b655ce5281e7c8ba3ea20 SHA512 891681d1fe6ffd8dada62d5ec3d4e5de1f901952126deafaa0e2c754b903a8865f13cf580b99d50055f1af15476ddf2fa87a394b676b988fd302070d4b273cae
DIST linux-5.4.179.tar.xz 112895912 BLAKE2B a37ed171cf26d191dfecd8c891efc9f23092ff7b22791756e506b7f201781a1d02394f5f6f607595250da7b846d50f4b9251f088cc83f9acdbf77c434d6729c2 SHA512 36f72c4e9eddaf73be4f32858ed30831da6b79f0b991b97af8ed49d8517afae52e2095f0efed019da78dc2a397dd4aec8bea9d16b866dbdac5c1379f3cf491a8
+DIST linux-5.4.180.tar.sign 991 BLAKE2B 43cc3e91dc3b8d9bc6440059ae0ad521b864dafcc60146d12a7faf811032f08a8647f188ae3c518bfc88947fe43a41f3cc1f016d82787d09e19207c6f21a60cf SHA512 326ced59d325f139c2f42b404bf74b2046b41256bf2eee8713fef235f378d15d38854750b5566316a11943173d8010be3c641ecb497833205446775ee863b7bb
+DIST linux-5.4.180.tar.xz 112877376 BLAKE2B ba7eb71fa677daa4e1b605faf8558dfbaa0e9871ab7e341c73b9fef9caedda1b0bba06f84cb2f52cbbd9fca6b781fa48692d31ce22d453957f0d2af4c648e984 SHA512 6725ac1017cd4c5e6d91094593e2f1111c610b8444a9166b6eaa6dfa7537f4da548341443629d59c80a818fdd045294e16143b6d5919be9dbbcf55f4518b79f7
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.180.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.180.ebuild
new file mode 100644
index 000000000000..0cc0038429d9
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.180.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[@]}"
+}