summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-08 18:59:35 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-08 22:45:03 +0100
commitb64e9dacbaea9180efef987a4ad5f5948e649792 (patch)
treee24573982c6cfdf984730d52278238bd5e575353
parentsys-kernel/vanilla-kernel: Bump to 5.10.229 (diff)
downloadgentoo-b64e9dacbaea9180efef987a4ad5f5948e649792.tar.gz
gentoo-b64e9dacbaea9180efef987a4ad5f5948e649792.tar.bz2
gentoo-b64e9dacbaea9180efef987a4ad5f5948e649792.zip
sys-kernel/gentoo-kernel: Bump to 5.10.229
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.10.229.ebuild131
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index b9401acf6221..5586cb3999b8 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -1,5 +1,7 @@
DIST genpatches-5.10-240.base.tar.xz 7605364 BLAKE2B 2ab206d398eea9704f90f3485446ccdbb5e53fdbdc2ea2f468ccf8ba7d4160cf96d6f407df53a4db18a68eec98e0b3a203be74c68e45e4a1300da26ac3fcfb5a SHA512 8d935c136b8fae9a5cbe558c362536255ac228369538a448fc4728f8c7b1a1393cdd810fc5b8a08138fd70c4192b07e4845d697120679dbb6ce04180575e2f4d
DIST genpatches-5.10-240.extras.tar.xz 4056 BLAKE2B daa6ee7552a0f30598c4fd1c264509698017b64199ca993000bd6d226355c60b4d570c942a1b7e254d32eb941e2b873a4ed8b7a8f976b16cd93dea07727b8d15 SHA512 c01c07819c65357eb83ad9446b24cd2398c3ce8c4ba038ed726cba220145cf013d544b6442bcc65f7c916b5dbf85008bc638ddfee26f33c115e2c929d650db7f
+DIST genpatches-5.10-241.base.tar.xz 7627800 BLAKE2B fe3fbe6a2d1129f41cefd063750b7c2c737dd19f12ecd2dcf8ea764f155ba52f68504b6870ee2084287763b8b5743255b9d5d0b85705cf3ba693e1f25f3dbe6b SHA512 6514e763cada5d06c3869d81c2ff88a86f4540166a87b15f3749a4872e76c0ae30fc97a1c85e0e607d810775ebcc393869f139607bff80b45df619abf2cf3e3d
+DIST genpatches-5.10-241.extras.tar.xz 4060 BLAKE2B 342f265241e9f07f594feb34f5442f9a5975d4bd4f0c464104c12f300f0ab0609703e4f9b0b14611fbc0ac3511f9a8c15caa1161812524e08b8258445b195f56 SHA512 94dcb8bc67202dd010562c9bb15c0fa0c0c0732425e30bf8e400a9b06bf558453481c77863797d4accb5e5a8eccdff13a9239b1af86f0959fe008ed096522347
DIST genpatches-5.15-179.base.tar.xz 7600676 BLAKE2B 5654c1db636059018715b1ec3ae0c3f7b5f7cf9e88e4ccb1df9843eb6fc130b204d5e7aa76f77ad21502030ed5050df760b59f2af59fe2074fd9e16e3703d7da SHA512 0900b71b1c43d507a06463a657bb5739964a3badcd189c7aadacfb43758da529a07215cda9fc66fec1e9e25e07ed3d8c0053cb37b0779a01a545a3993cca516a
DIST genpatches-5.15-179.extras.tar.xz 4060 BLAKE2B d8f7885fac420f6f64dafcd5edf3500c8745fc076a382a9c62cfe1a5fd86a2c1d880ff8fdd0bd12649760ba115abc43de9da76e559330c0272f88c43926fa990 SHA512 01a08098524bf56987a55707b767911270b19b7e7ba032ad84ed3942fcdd073c0bf92443fc7cfe24ce1e88ec065f37f1a5c5c20adf3594151bc933a71c92f9d9
DIST genpatches-5.15-180.base.tar.xz 7622872 BLAKE2B bdbfebd8160b3851b67c1bba86c8f0c7f7dff79f2304c9b297755043067575a14982d0e79f2aa0e3f42994520e8bc50cbff11651ad1d546d314f01d50a33e0f3 SHA512 606659b93b9782141434313a634fd648f5f934caa2016091693039035de0fe96e6c3a88075aefde18aaf323eed0d8a4188bef64f990f20fa9d06e4bc8d7e1079
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.229.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.229.ebuild
new file mode 100644
index 000000000000..890ef205237b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.229.ebuild
@@ -0,0 +1,131 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 12 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=g14
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+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://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
+ https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ 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 )"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so
+ usr/src/linux-.*/vmlinux
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ 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="-gentoo-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[@]}"
+}