diff options
author | Sam James <sam@gentoo.org> | 2022-03-12 16:49:35 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-12 16:50:46 +0000 |
commit | eef02da2e5b54067efcec28da39de05f3ce2d8ef (patch) | |
tree | 70a6977d7c7d9aef4123c363b7e1f411692dc9bd /sys-kernel | |
parent | sys-kernel/vanilla-kernel: add 5.15.28 (diff) | |
download | gentoo-eef02da2e5b54067efcec28da39de05f3ce2d8ef.tar.gz gentoo-eef02da2e5b54067efcec28da39de05f3ce2d8ef.tar.bz2 gentoo-eef02da2e5b54067efcec28da39de05f3ce2d8ef.zip |
sys-kernel/vanilla-kernel: add 5.16.14
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.16.14.ebuild | 134 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 89204ae89cf3..2d314619f971 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -42,6 +42,8 @@ DIST linux-5.16.11.tar.sign 991 BLAKE2B a08fef5aefd7762197c3c7c809c53d84fd7560db DIST linux-5.16.11.tar.xz 127555284 BLAKE2B 165fc78193959c0876158b3448fe33361a9b30ead17f216b92f94a11aad7a6a0e38a852a69239d954ad71978c14b79f8aca19903ce9d540c9776c855308beb50 SHA512 d877304a868cf29bb32d059544806314c2cd975be6132eee645d1dd54ed6e1281c4ea4a18ce30c9b59a8d2b5cd9a0bcf9933a36d4754201fb04e06dee2717e7a DIST linux-5.16.13.tar.sign 991 BLAKE2B 4553a9d234ba1336d90be0337b57b863858097590c15c99bb2f3f12447cd47ee337438772c61b3e54666097fbc6ebb1eb7b888ef269b666cbc9a8a84a1c0f340 SHA512 85423a4f6ac6ef71130f833d440a022fe08b512828a759517935658602da96a71378a538960e608b2c35c0e34985d3575d76580c80dd5eea12386ad996f3e77a DIST linux-5.16.13.tar.xz 127576900 BLAKE2B 6631cd1c19819a4cb2ba747eb62590f0f7739ef8c00302a78cffc0af907fbad135f3cf2934fbf403940c3331b015f8dd9bdf0362315feab7a3ff45076ed04515 SHA512 427140bb0da00e375299944da4dea992773e707c7c416e426e40397ee6f339a745a5b98dee0d9b36096dde6e9a18e5f45b462857782c6cc5aa3e5690b6019c79 +DIST linux-5.16.14.tar.sign 991 BLAKE2B 86c4ea68d91d9faf8efed5922a33d783e7c292b4e00d63cb97da3ec0a056786f9eeec698e5c7021f96474c1ec85d9552379733bd8f88fd7de572ee1118e55b20 SHA512 63298e9ea02247ca59e5eada0dfd2e549893d71092664321eea0b62a296e2a066b42d00a3da41a221d9ec672590c578456d12271e0bb964621c793406b0b8721 +DIST linux-5.16.14.tar.xz 127571576 BLAKE2B 151fa2d87c04de862913c360fb8bdb4d2cf4cbc7ca9777b97ee3f03005e8d5ef72b307fa5787ae53157291773158bca6b499cb1e71f6dc5098f424e15ff6c948 SHA512 3daf1b5a01cbab632492e18a8e71aaf2085545f4944ce587bc7c27e86a0a739d0cbffe7890ce9c5bc863b3c5083281bca6ed4df8d3c69d60c6dcc210cd86993e DIST linux-5.16.9.tar.sign 989 BLAKE2B 7e81a5ca6c68e347316bb96d75576d6034c849019da15bf9a64d44a01898d4f5306fb792c94bd290906e4dd20918fed78bdb74e8b56eb69e998cee1f51d39f67 SHA512 4db28620856d7f25f42f4c527eb1b15b28d265ddeb443d7b7c13efd5173dd038365cd6a336a4acbbc1570106e540b5ded7c4a17ced6d39f088121751e9dcae7a DIST linux-5.16.9.tar.xz 127566148 BLAKE2B ce4544512021eebfb8d7c87e176ae1e4ba741021c60484369af5280c51c64df48553ab2d7b53de2c3e358ea9bfbb8545a1dc7ef694628668bfcab329c59fb0fc SHA512 9f6f1c3b665b277c0432e86fb99fda2579685f680b245793f58d75d962f588a5142ff79325efa3ac233e946f076245cf8bb9f94f35f7a99932dc7f51e7f69d4e DIST linux-5.4.179.tar.sign 991 BLAKE2B 3774c967791c06ba872128010ec391480011941ff995723f6c9afb1707ffa30c530ec746061a75d392287b70e6fd45c11206749f6a3b655ce5281e7c8ba3ea20 SHA512 891681d1fe6ffd8dada62d5ec3d4e5de1f901952126deafaa0e2c754b903a8865f13cf580b99d50055f1af15476ddf2fa87a394b676b988fd302070d4b273cae diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.16.14.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.16.14.ebuild new file mode 100644 index 000000000000..1eccf5c622da --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.16.14.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build toolchain-funcs verify-sig + +MY_P=linux-${PV} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.16.8 +CONFIG_HASH=f38101bdd0124e3ae7c3116b66f7fd1cd76e5601 +GENTOO_CONFIG_VER=5.15.5 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign + ) + 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 ~ppc ~ppc64 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( savedconfig )" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( sec-keys/openpgp-keys-kernel ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + einfo "Unpacking linux-${PV}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \ + < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz" + else + default + fi +} + +src_prepare() { + 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="-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[@]}" +} |