summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-10-06 15:28:36 +0200
committerMichał Górny <mgorny@gentoo.org>2023-10-06 20:11:53 +0200
commit54ecb4b94e830ce3b3f7853d50998819c8991867 (patch)
tree1b0a107afc2c9309383f7dee592a63a0963ba2e2 /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 6.1.56 (diff)
downloadgentoo-54ecb4b94e830ce3b3f7853d50998819c8991867.tar.gz
gentoo-54ecb4b94e830ce3b3f7853d50998819c8991867.tar.bz2
gentoo-54ecb4b94e830ce3b3f7853d50998819c8991867.zip
sys-kernel/gentoo-kernel: Bump to 6.1.56
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.1.56.ebuild146
2 files changed, 148 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 5b46cb3d5feb..58afac7e7c2c 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.4-264.base.tar.xz 6232296 BLAKE2B 09955b4c773e8f945a83f24ba79d
DIST genpatches-5.4-264.extras.tar.xz 1812 BLAKE2B 5fe283f8ae6572dfc1c156baa6574c1ff172e05772b3e74352f61af9c4165f02544c62c3378a42fa0cb4167daf59b4f2fd95092d9cb459efc44f3f18e695c03b SHA512 3fb7e314a03c4f370efb47e97699d74d8b8b3d562fc3619e8b71c7431168d30875d5bfdbb826c2bb5b72d4e752b28a2b0b2885bc336cf5470c5099b2804f04cc
DIST genpatches-6.1-62.base.tar.xz 3593184 BLAKE2B b9ede84287025cfb00e4772aecef49bb1528e3d47a4bfba110dc019ea94ed6319db1831ee765a497150e410e0d66029317c9859e951672207664345750531d5f SHA512 e1f5c54758b001cb9c4be6fcf0e92ad95cfe213b32186be0160bf5980ce1c6a77150f26baf89bf5e23c10c9c96df6ae3b5d77e2d84a4b792a93bb968a600fe58
DIST genpatches-6.1-62.extras.tar.xz 3812 BLAKE2B 2f642be1d81a2e94221c9c713b8df8994953dcbac4d612bdad2f8e7d64111e8dfa4d988c105eea7d926e7fe08ec7232499e9bd8b8e2a9fccebf78d62bde91c43 SHA512 e06d58f69e3055ff38af09061daf6d0571590136fd154dd2ef2dfaca93d151391315abb5d45e252db4acadffbc7a87124c4ee50b6fffd278ce63fac819c38d12
+DIST genpatches-6.1-63.base.tar.xz 3660676 BLAKE2B 6af8b23486d6458d06aadd6e3d72d36a768e17bfb1917c23744954746931af6747682f3ab3e8cc12040087d760b63067d7f1fb73355dd7cb1287f42e60019e06 SHA512 9552fbef812ed0cfd950d1606ecf62414886bc0f79b572ec27a58e1f9f80a4c872fa6d28aec6301fd0474d9168156092318aa84faa108668b0f6df1965d01a2c
+DIST genpatches-6.1-63.extras.tar.xz 3816 BLAKE2B 6a9badb695f9306720e1bcc2836f90c82b27ac9205b455e76d9a0d6898f3539eaa05b96824aafb650c7efa1d1f9698190fccc5d115581c2a29617ef5b4259433 SHA512 e5fc923760637bf27dcadd2e59a6822e39f7c2d81d89019ebdba8853081ae875a60f657f8d483cd71dc8dacec51151a7dd3c9a5c4a7822fe32b658bcbe668c56
DIST genpatches-6.5-7.base.tar.xz 428224 BLAKE2B 9038c1beda5e3778508a29ccb0f906520f93a505f9a45f7050c47814eaf2e474d46e3cb8760dcf5a3bfbc504c5c133f8dcd8b55261a3d0c824cb374a42d98801 SHA512 89942e28ec1c594401a4ecfd6ba240e334356be0f1f35e48dd9abb1f4ffd122a044a76079f214c534a6acada0db4b735a8fa8face05feeeba82e2b51231c0472
DIST genpatches-6.5-7.extras.tar.xz 3696 BLAKE2B 0cba288c1d1c753e5a317e87432dbdc2e711635cd074b1daac3b40af683da939981eaa40b8d4291ad59d4abb92aba5fc97be134524e02b1c2c29653382d7f402 SHA512 ea3bcaffbf58f981388c2021baeea809a35a1b270cff6a0613dce2da8ff8431886612d22073c7a8d6462d20eb1f27d0c0518164c14e4af96b9393bb6a1a038e4
DIST genpatches-6.5-8.base.tar.xz 521272 BLAKE2B 31bdac516a0a3f82cbe2c95d9fb0162d7a2b9f3865487528e7b92cb2316f559be9754d4c4c697f29500425c13fd0bb743c69b89530b4d471249f1b322315dbcb SHA512 debb1b1e499b94e4139143df5b3f22663fb6a216850e3262f5aeb0ade760f1a026d00e33f874c920369e3da968a192574351f6d93fcba3eb6b76ec45f5382b90
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.56.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.56.ebuild
new file mode 100644
index 000000000000..803053479832
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.56.ebuild
@@ -0,0 +1,146 @@
+# Copyright 2020-2023 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##*.} + 7 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.1.7-gentoo
+GENTOO_CONFIG_VER=g9
+
+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 ~riscv ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( 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
+ ;;
+ riscv)
+ return
+ ;;
+ 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[@]}"
+}