diff options
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.10.221.ebuild | 134 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 3b59eec7a2f6..a0c14ace358f 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-230.base.tar.xz 6876488 BLAKE2B 9fad0e5e713c4487cfdc3bf370b DIST genpatches-5.10-230.extras.tar.xz 4052 BLAKE2B 5a1b37765f94e0d259c97b797ff2c64f9347f98882d5b759a42f5124da0cc1abf19226c89cdc52a74dbbb693c26f066610480d99474601d0f8fbd524a5778a53 SHA512 66b82411df58f53e6557d4afb6d9dc34ee529b32bb41415e345255aa4c4deececd1720be6ded4910aada1813476f7fa8aa51d5dc288bdf55b08b8f06dadbef2f DIST genpatches-5.10-231.base.tar.xz 7075456 BLAKE2B ca5cd718126f7c56a81b5949e0b0d4f8ca0897065a98c85d018ae0d97198522f063f7c51e4f82b0f137cd1f00d41a497ec6e420b8551cbb6bede39e8e619e9f3 SHA512 0ff3dbce85538a626fab5a6f42f490d865c17fbbece66654f90e26e740ad42483788ea7a368a3e00c47cd6a4e3bbf8b5b1d68d8dc5d42c92312e844dceb89853 DIST genpatches-5.10-231.extras.tar.xz 4048 BLAKE2B 305514796a88972e4011dcfed0b7d38a647a7b55950e31b480402cf5f483f258185df7b5b23f2bbfa5b91a1bbfe31e6531da5a8985e48387df458228703b1625 SHA512 0fd5314ad98b88b052fdb341535ec39505a538eaa20f7b6afc5c059b77919f513898ef73db140b615e726af00dcf146db8dc23f5350dece194b7e084de5a9cb3 +DIST genpatches-5.10-232.base.tar.xz 7140012 BLAKE2B 9052d2ded65b6ea556321b0983727cb5416f58f357ec9d77a21689ab97ef57c1410fae5b28f4972a23d64e4bb2c69eb287ad96d92800b24de36e70e38bad0a8c SHA512 e2958dfb876f9b752b9c4500eed60bff05aefe2e9384f0600eaa881139ec3156e86c4e0cddcc2eddc460a0a2fa5ca96ad4e451cc0501250d45dfc29e7aa18ae4 +DIST genpatches-5.10-232.extras.tar.xz 4048 BLAKE2B b2eb1785c307710457b9979e1fbb7ae3f6929b4d1ae46863367ebd3c4ca817160c14b42a36018fa29e9b384defabba30f0ee8a0dcb153306bed8d31fb47041d6 SHA512 760817111313bed3dcbe056638c3d1148768811a8221295084111c4deea07d393e7d70e1af6411eab9b4df9d0840fd58616cb78aa91996f2b86ece4cabcb6f7d DIST genpatches-5.15-170.base.tar.xz 6810444 BLAKE2B 979cea1e399d312eac94ef4e4fa417132fce1d2522713e78234dff05db3fbcb13ead3fc679d2d0f42f801d8f796cbea47cfc2a64d212ea1b6bb3b312f775aa86 SHA512 0d75430202e4f9e59ec923fa9cc9a11276b10ec1dfff5fba30746d9e8c60bc82d2ff027463ac4b17ac048285438a7a6657679f6a5aeb2caf10391016163ff446 DIST genpatches-5.15-170.extras.tar.xz 4048 BLAKE2B dd052053b2f791b558938755ecd1946d55aa52374acaa98b666aa2017d678d3552d161b36e50bfce63b9a71f0e252cf298c8416e3c6ce8318854886e9c1caf67 SHA512 b2befc9604dd5fecdcdf7d58ca219fc780548b439780b64c3e3eabe5b3a53fb33af30af8a0807b6d5d327381d9541f94645dd0f8475bfdebbe0ca41fa9de7846 DIST genpatches-5.15-171.base.tar.xz 6912380 BLAKE2B 3d5572ca2854c0dcaa6000ffc7ccc6921115f95ada5e8902c5681c5e0367f525bc658afd504dfabf25111ad1a9a6f6de1bf90e699fec38be68997f1e780f4715 SHA512 176edf85ec8e212036ce90b83a1a00bae1ea84770d8cf60c4f313498a219644a29774da6be34247ad55e6def08b4fe2f1c4a880c528c1d98e63a65acb0ba5a2c diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.221.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.221.ebuild new file mode 100644 index 000000000000..0845d4e45e94 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.221.ebuild @@ -0,0 +1,134 @@ +# 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##*.} + 11 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +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://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[@]}" +} |