summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-08-19 13:33:18 +0200
committerMichał Górny <mgorny@gentoo.org>2024-08-19 16:47:26 +0200
commitc1aa63900dbdfc706ded95a0b3972035aa97ece3 (patch)
tree6944f051c745ef3c0ccc296e4cd4cf91254f104d /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.15.165 (diff)
downloadgentoo-c1aa63900dbdfc706ded95a0b3972035aa97ece3.tar.gz
gentoo-c1aa63900dbdfc706ded95a0b3972035aa97ece3.tar.bz2
gentoo-c1aa63900dbdfc706ded95a0b3972035aa97ece3.zip
sys-kernel/gentoo-kernel: Bump to 5.15.165
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.15.165.ebuild142
2 files changed, 144 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index ed9c6b3e63d6..62c04bff3e74 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.15-173.base.tar.xz 7038704 BLAKE2B 4cf6ffc38ba49bdcac210b165c9
DIST genpatches-5.15-173.extras.tar.xz 4052 BLAKE2B e7d4effd4092467275f3f076676daa06caa2f647da1173a6132ebc30da1be78a085ddede5aa170c3d666f1808c4824f441dc5a1e873868fd72347a0c84149fff SHA512 7d272e7448a6688efc98a5e71eb8f83a978d82e9b177ae0b9b12c479078e23fb8dd66021f1ad488d9bfc056c89e7ee8642425dbd15607eaece249b565edc7fef
DIST genpatches-5.15-174.base.tar.xz 7146696 BLAKE2B 02aaa04e156b848c1303da831795e48f038ced7134453cf1b09534df9ad46888ea807772af161b1c61a679a5c6adabe6a275dea97f425ba10d003ca9391af0b7 SHA512 cfc7e7e878d9f1fae329ea4103c785c7cda26bc37f0015a37dc1a5c79842b98a04923e53177cbf1977396a0fdff5fdc62d176642999a5b6fd89bfa9bff251597
DIST genpatches-5.15-174.extras.tar.xz 4052 BLAKE2B 9fb303cfcdb5f201b492996383adffa71543531d4b8cb77df076ceb994f2e4af2e1d510b0bb5fda77f505034ea89935efcc8ac5476970e6d96dcec01f582755e SHA512 9ede39e030d45bc668112f489cf0d4c22a14302d26f1a0e1bb9f53b0e42a16a99a24215211c1e510c7f052d00fbe294f70cc414b2d127c4c6e9ba4857ebfce72
+DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e121acf4a95d130866f37ac0113a8697df1996c13bbf65e14f4a5703f7bb3f4dd3ebfb29e258ca358d191c0580a7f8e61fbf7c0c SHA512 3fc49566b23ef50590a3b9f90eb99558c9e37847259e0defdfb0ca036c37b7f45c4989d58787b8488c67ea031114173319346c1c17799680ebfdc581ae7e4588
+DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041
DIST genpatches-6.1-110.base.tar.xz 5564556 BLAKE2B f479e7fc7a12222c9b0268825fc8200e5bc3d73b81cd2d5b64bd321bc66b4563ae17d2bb66a0b0610dbac3059564b856d16c6ee122ed51a4c72d18795575ea65 SHA512 a0e8beec29ec7c63fbad02d13acf561ae694847d482f34a9120a06692aa4df1440433b19027484d3ef6a50221411bf34d175a4c833cda56aac4578da8b0b67d5
DIST genpatches-6.1-110.extras.tar.xz 4052 BLAKE2B aeded3974b119221fe8546f59eaa9a89842b24c0dd7d1ea45be003dbf91a62194b04d01e9811abb4a4af21b0e7b77e35b521a94f6042954f6fc09958fb41a84b SHA512 729ba854dc3513d9149860015013ea8e539bbe6adca5a28c53184fe0cb722307e96998c26dc1966e25d232e19e3188daf4adece4692d2804132ef956267629ee
DIST genpatches-6.1-112.base.tar.xz 5686744 BLAKE2B 2a45c958031096547d8db5c43413057444bc76eabb91937554f78c9beac08318cba3ef890e455cbdd85f0b08e6d759a2374237a2be75293812df3bc68fdf1663 SHA512 c0c2a19af8f2bf1e76d89e084eaf4fa733bf868c11b3263f983b060f4cc7d82869ef1659939d097acce33339e25ed4f0b0f3144499913fb1ace8aded593d8a24
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.165.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.165.ebuild
new file mode 100644
index 000000000000..644b0715a957
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.165.ebuild
@@ -0,0 +1,142 @@
+# 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##*.} + 10 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.1.102-gentoo
+GENTOO_CONFIG_VER=g13
+
+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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ sparc? ( 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
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ 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
+ ;;
+ sparc)
+ return
+ ;;
+ 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[@]}"
+}