summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-03-31 09:13:39 +0200
committerMichał Górny <mgorny@gentoo.org>2021-03-31 12:14:15 +0200
commit424bac79276f21f9db26333aced0436237fd7cc5 (patch)
tree46539432d6d5145421137ea3537259a1e83739e6 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.11.11 (diff)
downloadgentoo-424bac79276f21f9db26333aced0436237fd7cc5.tar.gz
gentoo-424bac79276f21f9db26333aced0436237fd7cc5.tar.bz2
gentoo-424bac79276f21f9db26333aced0436237fd7cc5.zip
sys-kernel/vanilla-kernel: Bump to 5.10.27
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.10.27.ebuild102
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 4bd0654735be..49332cedbdbb 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -24,6 +24,8 @@ DIST linux-5.10.24.tar.sign 991 BLAKE2B 4a095d90b5703f0df09dfa742e72238f5f9c56d1
DIST linux-5.10.24.tar.xz 116299600 BLAKE2B 104be7cceeff8a0e89c8f9a15a8c31f269e8f15eb00b573edbbb555df4861a8105a1a5547e790c23f74d36d20d5dc3be91457869d3a3766fafe536262ea45405 SHA512 27a3bbe8f01e420381dfd8a69e89ea68ae26454113286ab5104ad11e687f3628ae886db2dd3112a916fc39d182fb6269c52caa2117c9a8d22ad7d21e247c0141
DIST linux-5.10.26.tar.sign 991 BLAKE2B d0a2b78b68f7220ea119926c9945d5354a6575d10974277c302e97adb51dc27fa48e76c31129963bb13423c36a9901986c582eb156e14057c9c1e8ef6a3b0cac SHA512 abac1ce410454a3abb055d4710bea27d8bc15dc06559c55a2ee29ba1928c65e83f225ba3419669607a2cd466cb0ef6c9f24d9882275de24c9daa4c98c5957480
DIST linux-5.10.26.tar.xz 116302632 BLAKE2B cc3f1632ad24e205f485cc2fef036e4356f67d70fd8ec14e965a24555843e721f18edc0d2f588cba2141a34ae16c13945df21245e2abf03c812d9f35d62e0a15 SHA512 2ff537f519f9cd706f0f18c9635016cf091f2a97b1ae61779955b3861c006a338906acff3bede342d3dcf334cd636bf00a5756f4d55be0c9d924668149534755
+DIST linux-5.10.27.tar.sign 991 BLAKE2B cdc14c00dd1a472f72248e8dfdcdfa08bfccc2308b5a597fcbc71875f84abc6ce0afb43bdeb0ac711a192a69ec9aa4154394954092188c155afd71081d03382d SHA512 4c38f43a8d64896b586854fdeea8b66b00bd19a99a6522a0f775d4667be88b161925c827dd3aea59a8852a3fbdfe7b3d2e59c98000d848b10a19c74d8903b1ca
+DIST linux-5.10.27.tar.xz 116306960 BLAKE2B 0a88aad9f4cff1354069de700806b9d33a7fbe1a9729948178bb763b8513d62bfa71f581a50c2ff0852279f19f8af80e62cb332e950cb5660cad8024568ab321 SHA512 96175a9a08cfa1cdcc4ac510d29420b8b6551f2c9b2afd9b41356d31c287caf43f9ca7197c6f5ede69851fcda63606c7b6ea698e5b098a108671d7c9b2c73e30
DIST linux-5.11.10.tar.sign 991 BLAKE2B 8c8e423e547e665369f7e62779b6f612f9b05ae2631a53e2333c623b7a65e3f69f25510451731555829e9d36f78dcabd83eddc350837025323c5ab5dc91e46ed SHA512 8f1e37e39e8ce56a3bb5972cf6a0045e1415395f0cb52a8c12f2c2440a7669114d5f19a739bd803a422abbefb073ebaf32dc6a5b3af46068b965217372bc33de
DIST linux-5.11.10.tar.xz 117644104 BLAKE2B 84b97aeb190d570144d0e315edf8c0b51fd92a70f94a30f08ef49a65eedd48ee135b2c2f3a1a2827ace96fef2d1963e83948790c7729f3d7c1f615f8d32c9656 SHA512 504f73124e730df2a9e1399b64ba388fea4adf66b52f145cc39a9807a0476b998ea66b6de6d5aafdf9cc1930c1dc8de7bb8c1ae0da93d9ee9ca409ce0b0aff38
DIST linux-5.11.11.tar.sign 991 BLAKE2B a32455da9348b68fad565c0aa3dcabaee6170720d5641d7e847d919c292393faa55fc1a334382d3cf0e211202fd4a7044a6933b089c40a99764f50c7e9d02518 SHA512 e50774feee452315fa05b1cb7c2f490c7ae36fc7770ab91b9f7ee73a122b11ad57800331ecb73e74bb6cfa9051276b33c41aecad0bc79c8faf66809e201fc55f
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.27.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.27.ebuild
new file mode 100644
index 000000000000..fafae29a72c3
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.27.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.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=5.10.18
+
+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-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="debug"
+REQUIRED_USE="
+ arm? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+BDEPEND="
+ debug? ( dev-util/dwarves )
+ 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-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.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
+ )
+ kernel-build_merge_configs "${merge_configs[@]}"
+}