summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-10-23 06:54:31 +0200
committerMichał Górny <mgorny@gentoo.org>2024-10-23 11:42:41 +0200
commitddbddd904f26ea7e053b824c3328b91f25a28f6b (patch)
treee41aec7e5ad76bb15fca426f337d21bace35ecd4 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.15.169 (diff)
downloadgentoo-ddbddd904f26ea7e053b824c3328b91f25a28f6b.tar.gz
gentoo-ddbddd904f26ea7e053b824c3328b91f25a28f6b.tar.bz2
gentoo-ddbddd904f26ea7e053b824c3328b91f25a28f6b.zip
sys-kernel/gentoo-kernel: Bump to 5.15.169
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.169.ebuild136
2 files changed, 138 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 4e83430879d4..042ff810c02f 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.15-177.base.tar.xz 7376212 BLAKE2B 4ed8e73ea307a1544b5e6ed04b2
DIST genpatches-5.15-177.extras.tar.xz 4056 BLAKE2B 95e3b595edbe0f3f927aaf93fe28a0342b0d01bd889df73357c09856c5f937eb33d31e6753b1a4f59d3c472bb1c372a7f5f228c1a791182aa9f25c32e537860a SHA512 36f1ea35379d89f09614a94fe9a64d8de2989e72175ccc110723ee91de4ca2498203a2e6e1605cd06a5fc7469276fbb3b0478a5a17a0409e8acd6b2a053a4d38
DIST genpatches-5.15-178.base.tar.xz 7578036 BLAKE2B 2b8da3b41e178d6362e7dd783ee6a00f14d5f2103ef74f8e791a705dea94fa701b4ca06aec41ea277efa943d759a004b4760f61ec29b45a167b46a4898ba8a25 SHA512 bd29d8b6e4ad66fb5d7beb92b7cc8ea57f07ec1f0d311e345904f23d311b081499641ff5d45bbedc256ac99510cb8011cbcfb43d385b8f7ff059fa4e233e82d3
DIST genpatches-5.15-178.extras.tar.xz 4060 BLAKE2B e697a3db43b97846bea924160efe1073736db1ca4c0b9634322a18de6e2da7d1b57c07dbcccd167811aa128072e81884b29e5abcee219e9e095457544bcd1149 SHA512 18e3a1a48c4c0dde29fc25e3a4d1aba2a843d3453363d76533918c71033f35f6cea3d325f0724c60227bea74f9b68fa6a2c870afa3230bad7312d1766825bd2e
+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-6.1-120.base.tar.xz 6050748 BLAKE2B 8e81d186a9e5618d9f561fd0d49974031baa44ddb9b1885bb3ef6298d49b591e1c1582c306eddba07f3da733dea7ed82ae948838989010ee6471c052f99541c6 SHA512 7ec81a4b97becc07a15fc9e888f2e9c340334fb7ee2b9d0083123f67fdef44f7e155bdf7dd662158ea86d7eed3753017401479a5e50cc16eedde145dc77018c9
DIST genpatches-6.1-120.extras.tar.xz 4056 BLAKE2B 2295b59dea7ee450c0d6b109da2fc341e96030616635800a02847f93c4cd0191229c6d74bd68994ac42d2a96691856315127a060cd3873af34357f12ab54193c SHA512 8e1b92d4ab4cb327868f4e06c7bef5a099339c3cf2331ceff3aa3731632d1f8f7b427da5f892540a64f8afd86d89048100b93c8a08d40a99f5760a35553dca25
DIST genpatches-6.1-121.base.tar.xz 6065048 BLAKE2B ef60651e53c53c2e918da2c9dd4759cde88472e2f6aecf4ed6a86f089a282bbdf7acab040c7660e52ea09e441f6008f17ae3d49afcd339e8b91d50cba48bda18 SHA512 e34af3822f10164dc0729d0803c6f3ea05e57c6ac157567bdec6d8d0a3e78fc72252606f3b3160089e7b4b8167ee76b13088cf1d238cc3db2841e2dde63b82aa
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.169.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.169.ebuild
new file mode 100644
index 000000000000..e38fbdb5532e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.169.ebuild
@@ -0,0 +1,136 @@
+# 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=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://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
+ arm | hppa | sparc)
+ > .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[@]}"
+}