summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-06-29 15:07:24 +0200
committerMichał Górny <mgorny@gentoo.org>2022-06-29 19:36:19 +0200
commit9ff949dd2679ff58d4d64a89ef385f05d984cc20 (patch)
tree6a1d977755bde8c41191c9469972db5d603a5fff /sys-kernel
parentvirtual/dist-kernel: Bump to 5.4.202 (diff)
downloadgentoo-9ff949dd2679ff58d4d64a89ef385f05d984cc20.tar.gz
gentoo-9ff949dd2679ff58d4d64a89ef385f05d984cc20.tar.bz2
gentoo-9ff949dd2679ff58d4d64a89ef385f05d984cc20.zip
sys-kernel/vanilla-kernel: Bump to 5.10.127
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.127.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 248dcf34df8c..dc39d1e8100e 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -21,6 +21,8 @@ DIST linux-5.10.124.tar.sign 993 BLAKE2B cc0cd95e6c6a3ad78f802d2a2192b718a4a0ef9
DIST linux-5.10.124.tar.xz 120409020 BLAKE2B b2e775ec64ee45c5e17e2a35badeb5f76b948057eacd90a6b1a3232de91c64a3d3381310c9628fa6ac8258bd2df2be460704236e6d72774c2105a938585f3dad SHA512 98454c50b382c94d88e24942a87d91cac053ae5c888bac94eb167261c9cd3268367734f8d61eed77bc7dde3d8bc96586b83be6a7bc3289e13c26a90874df6405
DIST linux-5.10.125.tar.sign 993 BLAKE2B 0bcef2b389a8058d29039fe5c3985745e6bdc43f2e8ea1fb2adf0c033c9e67591adefd378d7fb749747a2e2b89fd8b85b3bd27a06808da7cdff84d7b62d3377d SHA512 453af9f1bd6ed18e2d7411bacd9dfd6f629859459789fa402d9b85ed65900ced06124d0fc8db528b2327416cd0672869593af8ee2e8daf6f330a4c76ba9a8ace
DIST linux-5.10.125.tar.xz 120432884 BLAKE2B 935895819c52ab31f4a8e305d97e412318684324992b1bfde581c0a05d2cb452e3eb7ad9ca9b7ed14d8ebbca8069df769a3b923d70d013d2eea11b1ba0665f15 SHA512 8ef183c5c460f0ef7910c49003695e064a5ac67d1a77114f6cd2d39e739f9c86ce7e3458ed2f7570469fe273cac34931297064ca47169a3374a7489d002f5259
+DIST linux-5.10.127.tar.sign 993 BLAKE2B c085f64d89b1f878a8554911091603131005508dcb97268246fc42e56527b7f103703e30c744ee36c8ddf3b2ffb7caad5b46a4cb84cbc7f5169f1b7b8675d434 SHA512 1673be243a21abf2a22ef59f6b2ef7883831108767c495b1ea8dc792c794858d1fcf36a4f7ae11d28ac01a1fd5da78a478839a13b2bad060b5cf6c5cbed159f1
+DIST linux-5.10.127.tar.xz 120415864 BLAKE2B 46122653b3d5d1716c4e21a0571a26d73229264097fe94acfd1f8fc77691d83ddaf42b379a9d2000d379ac58644499443b035709d4e57d550e6eb2ca01053a22 SHA512 2456b564b3124491dff07f818bcf9ceb63becf4de618a2797e7d1e8b412bf296eaa69dee3d1f63c0cb5a5121776a23cf15a090204f5938d8a9c59bb0480cd146
DIST linux-5.15.48.tar.sign 991 BLAKE2B 763026ae690c17bc2e1fee512fa792425a9bdc3ac15f35ffefb32d99adda90e1a0acb4bfa96528b1f90f50127b5a4cb86cb5a7b44fd8ad78f4d31312ed8ca9dd SHA512 160bcdb7aa692c5413ac7b13bb6548c73b0d5256df8eda25d02d910d8de3b9afa27820da4c4273f7f7244265c92e1dca88f70ce7deeab7d9f670af49f1cd03ae
DIST linux-5.15.48.tar.xz 126357096 BLAKE2B a23dd33dfac22741e5112961d92543a895c858be62c4e82a60b639e47c7b05e623c41a13a6c5157ec7b71ae1f152b381b7729f2bbaf03734cd40dfc0c27923f8 SHA512 6eee3ff3352a864a5d98295527056da0d6d52b5f566fd7858b2e12a5d0094efea0af484a7e8cdcb344bba343c5d95b5d19c0d2756dd3f38531712438223755b6
DIST linux-5.15.49.tar.sign 991 BLAKE2B 18117df94ba81e7581b1e20d9e97dbbc219680a7f14306e6943ab7165b93feb49bdb0f491e5a0b34f921c729bf368d475fbb4745b29ebc9130bb50583fac061d SHA512 f64b92e792ba1834ad9604f756189bba6179f76257c58b69fe5121594584f413e44e4a77f0826461c23e0e9795ca4fd1f0a54bb562514d991552a7351c7abfb7
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.127.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.127.ebuild
new file mode 100644
index 000000000000..96cb3e86fc4b
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.127.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build toolchain-funcs 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=g1
+
+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/${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 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )"
+
+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
+
+ local biendian=false
+
+ # 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
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ 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-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}