diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-07-07 16:42:55 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-07-07 21:35:16 +0200 |
commit | 053b0e269dbd0199bbf7e87b0cc7a855b8e5cbd2 (patch) | |
tree | e300b1995758117164f1234dca1ead06b39ea4fd /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.10.48 (diff) | |
download | gentoo-053b0e269dbd0199bbf7e87b0cc7a855b8e5cbd2.tar.gz gentoo-053b0e269dbd0199bbf7e87b0cc7a855b8e5cbd2.tar.bz2 gentoo-053b0e269dbd0199bbf7e87b0cc7a855b8e5cbd2.zip |
sys-kernel/gentoo-kernel: Bump to 5.10.48
Signed-off-by: Michał Górny <mgorny@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.48.ebuild | 105 |
2 files changed, 107 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 7c7b9215ee5e..70301465f721 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.10-50.base.tar.xz 1622300 BLAKE2B edc737c022aa9855ce8afa612061 DIST genpatches-5.10-50.extras.tar.xz 3412 BLAKE2B cb86ec70bae4b4260f973dbb23251e0c9f9841b12cd3e1e405215e9d54828ed4f7e32aeed131000f7ee467c3b23068f1dc6ca7e056a8b0308add810a0d6bc7c4 SHA512 39dffaddc87116a9ce91fdd07e9dfe7b4ab9c8c74328f3a6e7fffd5b2258837f2e6ccbf27d394fb4be15792c032b12a6289d3903a7e9e221fd411028d78f0073 DIST genpatches-5.10-51.base.tar.xz 1649104 BLAKE2B 611e698ca58531702279ae9874c07bb3ff44a15cb8df4bf7e53b74ee1f5e7c846c058bbe16d57578a59e6baa1fd427e27bcea6a68516e16b285623ff2ccedc55 SHA512 1b7002696deb32915ccb459ab6e5e500fe8f27657dc0c93e99d129b7b843cf6574a5c1f04b70c5c3d7f405a6f17a5dd63fa1987a1e11ae6f770399cf7fb749c8 DIST genpatches-5.10-51.extras.tar.xz 3412 BLAKE2B dbbe9031fdf275673014bafe3ee7d15e668f61187b6809df769a660830d026172b1eef1eefbbae61a2471004c14deba15913b0d4b57cfdf3750954ca075074b0 SHA512 6276fbea90ad4655021bcfb4e22c247e861807fa0c1a0ea6ce2fa439264422beaf74d0c8e08bf5fb0951727e1c4c189db5fe6672ff182d6c993919c0fcbeacbf +DIST genpatches-5.10-52.base.tar.xz 1649944 BLAKE2B 9712926fab35abb79b0c4bcc448fca65c1941f0840bbcfa3dc3c13a22f7711105bf3dd9536d3ff00fc5717eed70df5977d6771c3bd62a51cb8d36df824432831 SHA512 04519253c689cb6d88e82b624ef2928fe1bb8203113267c74cba5c1dd87cda072071c795410598f7f5ccd2533b65958027c959809c4b12503ecf9a4d7eb3fe50 +DIST genpatches-5.10-52.extras.tar.xz 3412 BLAKE2B a458b569dfb6643b5a13fcce6c5df46c844119009c0593c6e655a2b0b7589af70a682745fc79f14fbc4fd7e45c52a924b8cc4665a31665a6abe1ba0c8d779bc2 SHA512 5a8f76b2791fefc6f0990402bd5307870517e79daccd52b4d126b8b278dafc086b47649631b3b07f220e3b06d03f12f765bbfb837988257db737c34806a78744 DIST genpatches-5.11-25.base.tar.xz 1030312 BLAKE2B c3e0f5840c32292d36be31a8606934bfa1ccb7e31f04cd214574009577907d00912bacce1f85dddeda77ba99f40f61fa5aa5259a693c74abd63a05be5a44f2aa SHA512 5adbe3770562b57d7180a44ccca8e665cc5b0d9ba5168c4b3555b348708edd7469464bd770124d9a8641095bdbe786d843ae3da64b845d577999c9e40360c970 DIST genpatches-5.11-25.extras.tar.xz 1772 BLAKE2B 0bd2afbd93cd7553c8e058f61c515ed9d47e9f328529e6cf36a7100b363dc8e4c3004afa06a0c0b95963bcf69a216ae6a7bf595062401725a4a25f942f44a3e8 SHA512 114094a87bad0dc4a265847fa18b88a2795daf151de8451bb4fbe4af70f3f4bcff8905d8d90522f85914bb7ba7227ebab7f69ab59112afb2187332b393450fec DIST genpatches-5.12-11.base.tar.xz 611232 BLAKE2B af0db172fa831bc84b1935d387e3d7b360c5a94d8499b6fa204f21b7a822c844e88a87f4a2724d0b8b508676ee564dbbe304893bfdd3197d67c8f6aeae011cb2 SHA512 f422bc1aca29732db09184ca2fcf7478536a87e73b59325f063c73103c8ce425858baa78b185eab61a80dda15e3818b45a669c69f7898382aa3563b315ad45b3 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.48.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.48.ebuild new file mode 100644 index 000000000000..5151cab9b14f --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.48.ebuild @@ -0,0 +1,105 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=5.10.42 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="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/mgorny/gentoo-kernel-config/archive/v${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 ~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" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # 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 + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + ;; + 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 + kernel-build_merge_configs "${merge_configs[@]}" +} |