summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-04-07 17:19:37 +0200
committerMichał Górny <mgorny@gentoo.org>2021-04-07 23:17:25 +0200
commit34ae4738f8055136ce35c2f46320262015448191 (patch)
tree980ae9e8e612f836316b557556fd39ada9ff5e01 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.4.110 (diff)
downloadgentoo-34ae4738f8055136ce35c2f46320262015448191.tar.gz
gentoo-34ae4738f8055136ce35c2f46320262015448191.tar.bz2
gentoo-34ae4738f8055136ce35c2f46320262015448191.zip
sys-kernel/vanilla-kernel: Bump to 5.10.28
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.28.ebuild102
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 7a335677f738..428288432b24 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -26,6 +26,8 @@ DIST linux-5.10.26.tar.sign 991 BLAKE2B d0a2b78b68f7220ea119926c9945d5354a6575d1
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.10.28.tar.sign 991 BLAKE2B f938f3ff84952ff141c63c6a298c69b57c52debc474504d4872e6bda0c04a15ea5e15f02b10210392e5f37f45875e22faa6fb46f2be558c275682ddc655b6e7f SHA512 c83c379bd06fa6bf588da987aee234962368f7196e5f9bd340dae04321ceeee218183cb9d860ccf7c089b76afe9c4141967fae3829f4b7a5c556153f463bd8fe
+DIST linux-5.10.28.tar.xz 116296264 BLAKE2B 3694a556c5f346ea9e38551810303ceeb392c26929151450a8c8b7d39c97465d697082c27086020f5ab34adaef1223acaa0ffbec498cd1633d31ce3fbcf09e81 SHA512 709359cd755c20b01fc4ec4f2e77d231919b3b50ef6a8ceb66b0e1ca2f0ed6f7efa32ea639a6a39e9814268c48d93de13c7de788e8c1495397dff2097dea2051
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.28.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.28.ebuild
new file mode 100644
index 000000000000..fafae29a72c3
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.28.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[@]}"
+}