summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-12-08 15:14:53 +0100
committerMichał Górny <mgorny@gentoo.org>2021-12-08 19:17:30 +0100
commit1c327318a4527862e886ce780e5cc05b1341ee82 (patch)
tree160ecb9162820987151f0e24180d2318cd446995 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.10.84 (diff)
downloadgentoo-1c327318a4527862e886ce780e5cc05b1341ee82.tar.gz
gentoo-1c327318a4527862e886ce780e5cc05b1341ee82.tar.bz2
gentoo-1c327318a4527862e886ce780e5cc05b1341ee82.zip
sys-kernel/vanilla-kernel: Bump to 5.4.164
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.164.ebuild102
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 11b6063d464b..224fc64eb979 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -68,3 +68,5 @@ DIST linux-5.4.162.tar.sign 991 BLAKE2B 34133ffa90b10dbc87c21791ff46e3f1b0f9fbc5
DIST linux-5.4.162.tar.xz 109187916 BLAKE2B a3a877e3af64ec7480029a3e03285ee18dc7a599e704f56e618f9d9f07cf6939b5a011f064d62400b9b9b87898857f69f9549edc0b77aed310969be2652a4efc SHA512 1023f7e377ab94a8ae5d2d36f33ec6938ad0386cbdcd059a3718718143fbcd75339c1a99941a54dee5ea346f8e919f89685e0e8290b842d0527baeff77e18e4c
DIST linux-5.4.163.tar.sign 991 BLAKE2B 1904e491d0f3e10a7e0fc8c327bf82e51b9907374378908a3a529c04158c1b972bda35c0d279774bef821cfe38e3f3cbd58aaefad3e5535cbb9c85cce1d299c5 SHA512 d536e2b3cfb5e174c3546c166d8a8330a90e58c5d5d2a4e0c07744a8ea6c5899d354f4b25e2d9dbd465919509520d730f7bc2afef3c20943c28e3b96f902861b
DIST linux-5.4.163.tar.xz 109184420 BLAKE2B f312530d7af4480e30695231660a916f536095ffc00deb22afbe4ff715418bc8cc1a45aebbe0621ca09ddf1fda733f54ceb69bf5bda9937299f8cbfbaeee6adb SHA512 61c03176ddd533cdd7ecb654765524b6a9c634cb48766630420137e1fa3e11d6081b054ffb6a93b01bc4417c3947412353e0ff039e25ff880f27424f7ae738e6
+DIST linux-5.4.164.tar.sign 991 BLAKE2B 59483d1ee9790b771e7d1ffb1d1c3286f3db1d78fdec6eeaf0501748f6d35fefbe3572f9f64924f73dfb50db847392a32e6f9c4b71174b04a3def7757a2c9903 SHA512 d77c0210f03f5dc177f7231f7ce98fabe466eab7d93eb682daf63f72744f88c8d69a85934b1cb16e623c565b2893540fc4129273d4063270a4d7580f4d129e37
+DIST linux-5.4.164.tar.xz 109190032 BLAKE2B 01a65117c237d551c363149504ba690e9ae801fe587d53c24d2b01e4f7b4b264271077a819c6ad772c2f995bf87a242d271a5446d1378d4ac7d81e13caf9da3e SHA512 4a9cb4063707f7bc1a7390ef74f5c8fe4176ef37d3f27ccd97ab40c4935aa746652e93401bd1b1be5b01283b470597e8979fbbdbf6efb726fe3154d3c8fd9eef
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.164.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.164.ebuild
new file mode 100644
index 000000000000..42230c7d1fb5
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.164.ebuild
@@ -0,0 +1,102 @@
+# 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[@]}"
+}