diff options
author | Sam James <sam@gentoo.org> | 2023-12-13 20:29:56 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-14 02:15:20 +0000 |
commit | 4488daa8c7d569f4f5b4eb8677f092c22a531b30 (patch) | |
tree | 7bfc58a368ba30154345d03d48ab7b48d800f588 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.10.204 (diff) | |
download | gentoo-4488daa8c7d569f4f5b4eb8677f092c22a531b30.tar.gz gentoo-4488daa8c7d569f4f5b4eb8677f092c22a531b30.tar.bz2 gentoo-4488daa8c7d569f4f5b4eb8677f092c22a531b30.zip |
sys-kernel/gentoo-kernel: Bump to 5.10.204
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.10.204.ebuild | 134 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 4a7641f4fcda..0648039023ea 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -1,5 +1,7 @@ DIST genpatches-5.10-214.base.tar.xz 6277292 BLAKE2B c048bb8187cad0d22c7aed931949338b08fd4fb20cec2f1ef8ca940632d1b9beb60cf6c5ae98b537c8a9d25b86de9d4a35e771b8cbb8cc5d3569b5dcaf79454d SHA512 88745e2abe59e6c41243fe05946cd82d53c85844f3c0e5e162f616f80c46243b2bbb510dec2f837ed677129d27f4678bfbdadacbfc1977ddfa142493a2c24ca6 DIST genpatches-5.10-214.extras.tar.xz 3876 BLAKE2B d3d2b1b6b2b3d4574300a7a84ed449733bcde3a1aa855a54f10d484ab0dfb1b381ad7d9ae4551993515a8af2747aa42e830c39039803e0fccbe9a06be011a819 SHA512 34f83560c6ae888feabe56906bbda4e5b68ca36f418341ef2200018a79bcfacd0c30e8535c3684fbfe2b0557fdd59383b33a7e57e7cfbaacb81d94ddbb12afb7 +DIST genpatches-5.10-215.base.tar.xz 6309840 BLAKE2B 0262f92a52738dfab01e7ff4359963652b822bff885e3f22c4afb0597099e4cd58d20215f25b0dabff662e4daa4fc1c0161e338bc3ff88cd18e8323453496dcc SHA512 f89384b62dfdf964caf0208f477211ebce680d8cdd30bbc4321bce652e8fa6cb9e666c7ca9c348daf02187c8b22b1f05bb5de064898e821a41b2752babc0ae30 +DIST genpatches-5.10-215.extras.tar.xz 3876 BLAKE2B 65cd91d6dd01837f4cef599f5c247f45e9537665a4b728401ae6fa30013b18022dde1f8e988470dcbea4593f16c93627541fa287455842e1e85d528d3dc38132 SHA512 b9976e5c2347a53b56c5a3b6dda2c702162f05137fdbdd6de005059d781ddf47a047442f05b27ac3b34929e68ed0484fdb072f593005472e8ddf78ec41030cc6 DIST genpatches-5.15-151.base.tar.xz 5817984 BLAKE2B 182b52b69171a07dc6333c139f570d1f50e2c7351150d32bd0d32d268750cbc5f548a25b07111b2fc754de920dc78bf6add2cefb233ec5601e57efb9c516c24d SHA512 364c32d0ac7372367e343292e28b4325b6529fb6b46eb84296e4622b6f1d1d1c2496865aca89c447eff113a56780ea06d94cee3f90570d4b012f3aedfbab70ef DIST genpatches-5.15-151.extras.tar.xz 3936 BLAKE2B 290c41b3f8c750f82d6fb8ae4542a64ff395c8def74c6f3c3d4752b57d1725bf1947beb626d8ee413a4ff50fcc74bad7f1efbc1bfb29b67a35e4b5ea396427f0 SHA512 a3d22a5decba9d24e65239a96b3133af07e126c7e0dd733eae61de48644bc31b012eb6595a15ac82ff763bf39e9f7c91c0153badcc2e9c83604a64f27e0ea43b DIST genpatches-5.15-152.base.tar.xz 5859680 BLAKE2B f07d522838bae14efdba3399a9e4ad0a442537b1a9942477600660df2f71cd8d17774dff0ce563a7c46595c6a5390048994be0f894f84c255ebac2f9ef885220 SHA512 bb6d744e075f6d7e380f78be870c64a14595da3b24ae217db9e69778d1f65326ade92e7fa9edbedbc6b6825ff8a83f08725d0ad165e4165047720a4f72985089 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.204.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.204.ebuild new file mode 100644 index 000000000000..89ab1fe6bec5 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.204.ebuild @@ -0,0 +1,134 @@ +# 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##*.} + 11 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g11 + +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 + 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 + ;; + 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[@]}" +} |