diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-18 19:09:05 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-18 22:06:37 +0200 |
commit | 9007e23b5bad682dc084bb65b477e601d818a5ab (patch) | |
tree | 8089a4a2fc4403e922b61d84b7d2ce47d71f5106 /sys-kernel/gentoo-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.13.12 (diff) | |
download | gentoo-9007e23b5bad682dc084bb65b477e601d818a5ab.tar.gz gentoo-9007e23b5bad682dc084bb65b477e601d818a5ab.tar.bz2 gentoo-9007e23b5bad682dc084bb65b477e601d818a5ab.zip |
sys-kernel/gentoo-kernel: Bump to 5.13.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
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.13.12.ebuild | 105 |
2 files changed, 107 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index a9a5ab2932f0..153b8fd65f78 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -24,6 +24,8 @@ DIST genpatches-5.13-12.base.tar.xz 632764 BLAKE2B b3a193373d195c18350ed1298b8bb DIST genpatches-5.13-12.extras.tar.xz 3476 BLAKE2B 4a2fc37b65d3b0be450245f4a69de878ae0fbbef2ae675d1cd5ecc55c9aa9a33f63ebab6492a378f3eef7911e76a83322f878f94f16fa822f186c34bfc89f3ba SHA512 07ca97618f12dc015d0ec478cf90d7cd03f4586aa380e9f6da234c229046dde07a734614d44501b9b8d72e9e2411470ad5eab60f63ae427280465fc0691f8077 DIST genpatches-5.13-13.base.tar.xz 634700 BLAKE2B 2f9a12c64ec10163426b9e9b59bd2e12e6703313bea2508d7fd33b90f07170aba96af87ea2821c23372bce3e7c8180bceb8bc2e9f3884bee568ad37d76e8ca9c SHA512 24a669d68f2bedb7007d508d843a92543eeabda37cf6f18a4024d43cf3e7df3d41e91bca76e23f5e1da5b8a2769b24de9953f9c454429a18a6dc1c164b2d3638 DIST genpatches-5.13-13.extras.tar.xz 3476 BLAKE2B 38f1f19267bfc6319b85ccb1e566dfeddae282c86a0c31efaec53d97ba60fd8c8294ba483e22331fb35aca4d0cd5415b6e51f2af5f63122eb99172fb816aaa82 SHA512 9be0db5a384974f5ef1637c9dded924b83e056e874e41061b9793846602c43dc9960ab7b32b0d3f9d50039384363a85f29b56ff8d4be1d6b2005f7978bfc4634 +DIST genpatches-5.13-14.base.tar.xz 677956 BLAKE2B 81d1c4280e45d5b4c3161d0faa1322c8aa63af7a431c647c4d191225fb905879aecfb1f172209213ce3da7b2b12a95145473066aaf1fbe369ece67338ee20845 SHA512 a9d858b4235238844527f95b5eabec6b6555c514691cbd001e25f437827f90b4a9008dfa297541ff287ea69bb2082099f179e8bd9dfc9fe75d0093eb47d18576 +DIST genpatches-5.13-14.extras.tar.xz 3476 BLAKE2B 3d51a9825a501f86b08f08a8e5945f8e3b9a95a4306bed9bb4a9b5730ba2a1d98fa2af30858c43dee25c0a4ec15496e22c41214ea36c75e0e1356036d7597464 SHA512 40abfb5bba735c8de649246bd7f7af325e7c1b86f7c02a41323dab17baa78af6fbf089724af701f646b5fd59a4e8aafdaaabacbbd70e70fc26df71dad2019e04 DIST genpatches-5.13-6.base.tar.xz 447968 BLAKE2B afcec75958e44f3ef7da0b2ab3e2a3d9574fbacac23d028335ce241838e36355d813fb89944ab4ed45153f5317997f18e153514f877bee6a490969b75242c043 SHA512 05afae24abbd06771ecc88b8bd93e765e7c41e9ea6826510d291cb8b10387be747ac7738e3df8cbef1d7488c96fd3fcba1138a7cbe9dc7348a76b5df51c95a74 DIST genpatches-5.13-6.extras.tar.xz 3420 BLAKE2B 9ad0d2bf1b2621b328d142cd464b6de2676c8a4f0caef8ee4c5d7fa60db56d73b9056917e07ca421b02e6de1564b3d5f900299721b6b412cb145efa9bea8d60c SHA512 a7906d25d02082217bec37c435b316880e1af9922018b88569cdb4cf8c2cf5fd789bdac946100f2b1a9e0e2125a69222fc853ab1496abdd30ca00497afcb8fd8 DIST genpatches-5.13-7.base.tar.xz 481660 BLAKE2B 810b5438e39c8928ec2aca11658cba78666e3384deda7f7ae3c21ed9987fc94b8b1d0c1b802ea454978a226fb6ddc13295097a284d84c95afc060fdbad09b9b8 SHA512 237189cd9f09bf1e83f83f27ea47306881f560fca9a96ce58185bd0dde707a0c46103889bbf798742d9eff9e2c0708c08b27698e659ad1b679d07f0ebcecb061 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.13.12.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.13.12.ebuild new file mode 100644 index 000000000000..d77a7373c837 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.13.12.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##*.} + 2 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.13.9 +CONFIG_HASH=eb52b35e8cb097413357b578903bd18eb76051c0 +GENTOO_CONFIG_VER=5.13.4 + +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[@]}" +} |