summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-17 19:26:47 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-17 22:02:09 +0100
commit3da00f1bd8db88c25a62440a2c03b773a09a8aee (patch)
treeb9a7a5ba86ae26fa59a6a11c684dda830dcb0133 /sys-kernel
parentdev-util/oprofile: fix implicit declarations in configure (diff)
downloadgentoo-3da00f1bd8db88c25a62440a2c03b773a09a8aee.tar.gz
gentoo-3da00f1bd8db88c25a62440a2c03b773a09a8aee.tar.bz2
gentoo-3da00f1bd8db88c25a62440a2c03b773a09a8aee.zip
sys-kernel/vanilla-kernel: Bump to 5.10.230
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.230.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 2cbd5f986696..dd01006e9e00 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -24,6 +24,8 @@ DIST linux-5.10.228.tar.sign 993 BLAKE2B ab719347cc4ce78c930147f589e61a797a401c0
DIST linux-5.10.228.tar.xz 120743132 BLAKE2B 166b9a0c4abe717f63aed90a62bd09979bc34a445184431ae42fede9a72b045e5e27f1b0bd87717c454974fafbe01f16517f9ebc4b6b50b74d18a327434a4a07 SHA512 a6d60f086c5bca2b5b18e5ec3fd410198edf4a34c8f6d3f4f9ba39a1346db9289647a9ea58eb44b3f73f2cf39aef97bd5364876b0a28619cbf5e478ec2e9977f
DIST linux-5.10.229.tar.sign 993 BLAKE2B 5797a2d5cf802c8789b898d881ac49888b4f5fb6fd02dcc29fda26addc267a2b825622f594740aa31317d7e6f268cef73a2f65d4ef02920f2ee744007721d206 SHA512 4d0d02c6bd85a17ca6db20d3ccccdc91dabc41791e348c3dcbbeab777dad54e7a022910ff47bfd2de27bd5b395a20d51563137bbbe9a92266ae7e429f876eca9
DIST linux-5.10.229.tar.xz 120741940 BLAKE2B a03efb87ca6aab43a9f8d86077e54d7d7d0b84a4d268a033ae3c98a8357cc1bbe1334820531407a21bbd7abd5280dd997638c34ce521d5c574668805d86af3ea SHA512 786a151093bb11118b1b7b360e62f29c959b08fb208e112ea9b09f67dee4133866e3183d347ffa57e9f476566a8ab13f21f5263f82fdbae90abef395a0936692
+DIST linux-5.10.230.tar.sign 993 BLAKE2B 0e695130a1bc132e77465039931bb9d11896f99865caa4ea9774e02f1a4fc0f273206a3cde388a40910eab2d5b320a29bd649d311e95d17e11f4fd9209379693 SHA512 eac8c7dbdb7f48f30fe7579093a1e04d587143848a681cecba6be62b0a64d3fb2b8af7a79417410b5bef7119b028154e7a8a5c2c8f7fdd9648af1a8c63fb353d
+DIST linux-5.10.230.tar.xz 120728924 BLAKE2B c2630a1826aed28c752016174a21ed394d81c53a097ae686bfd5100666a46abe61c4f9ebecc6ee3fad43c0c9137d26de63afd65df305ab73d833d65246eaaad5 SHA512 8f22f82a74a99022df3261e246a28d6f0c9a2626fc6547f133d4bd87bc418186d2c1dc234d837391dc5302f7e843c744a01eaaa616f5c71dd6b746ce3c4f047b
DIST linux-5.15.169.tar.sign 993 BLAKE2B 36ae1b4cfb5204cce96e504f2ca10da2a569ac89bc5d7703fe8ae89ec8b301efd82cfb0f8c23921b06868391b8f648cee004a32eb88864b9c387d6ec57fb6ea0 SHA512 57712a56504579d3492c1bdf452b099d0559da6c65a2b422ded528030a4c7a8bd7174f06b66aaf9ca12036511d98cb9d411d3e2ec33962426f3deed936fa36fe
DIST linux-5.15.169.tar.xz 126706236 BLAKE2B 3d6abd967b995593f1617db755bebfbf5f5a79985951798b205d380ca53382d6af16de71f3d852d8154db60e2da6a6f87fc8bc6b0e60410538ca98bd5e3b4378 SHA512 9f02d7ee0737cf72ed34331db8c073578380290ec46913a9126b1c5c5f75c445ea9e17432707d5efdf8a5f4238ce7028876e8b6899d2af5a2e2919ef66e03470
DIST linux-5.15.170.tar.sign 993 BLAKE2B ffe5095f8006744245153d3533f4439ed268fadb9d02d2987eaa54a4c246e7c15811720728a6622a65db03fd74d219c79ab1b08d7929248cf1470e8de859ff7e SHA512 68fe98b1df9a92b650824e9bd3df38d18fdf2b3287483b770426595611809a29ad245f78ac7b7b84eec27394061b73503c61aec8c1ec900008392bc679ab4614
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.230.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.230.ebuild
new file mode 100644
index 000000000000..2f3273b2f39d
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.230.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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=g14
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+ 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/projg2/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=/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 -xf -))
+ 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
+ arm | hppa)
+ > .config || die
+ ;;
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ 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[@]}"
+}