diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-12 14:35:35 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-12 18:35:08 +0200 |
commit | f47cbd0040db08cf2d62ba76c722a569cf3e7db9 (patch) | |
tree | ca2948e06bdb5aff712fd941c2ec0dbe05eb205b /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.10.115 (diff) | |
download | gentoo-f47cbd0040db08cf2d62ba76c722a569cf3e7db9.tar.gz gentoo-f47cbd0040db08cf2d62ba76c722a569cf3e7db9.tar.bz2 gentoo-f47cbd0040db08cf2d62ba76c722a569cf3e7db9.zip |
sys-kernel/vanilla-kernel: Bump to 5.15.39
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.15.39.ebuild | 134 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index ad638f34a524..0aaf27f96406 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -35,6 +35,8 @@ DIST linux-5.15.37.tar.sign 991 BLAKE2B 224f222dda3d7221a32b575ae52fe0ea36cf5315 DIST linux-5.15.37.tar.xz 126314716 BLAKE2B 41fa48151cf9ba20aaf9161ff1bc48a890a165107784e41e9e7535093ea7fb833ed5d0ff75534bd721ff1c80dc52d55b3585c3473917c665ee4d0f107d7e1e41 SHA512 afc84a10b96e70b859ec328f8d803d7e270264c8649492899292b92650840586c08e1df3196af41c09185e68f2d400cdc302bd0a474cd4ee86c34979098fae48 DIST linux-5.15.38.tar.sign 991 BLAKE2B 7df327224ade127429be8188fe510a075add14b8e276e83218d02c0b7330199c136ea7f00d8fe8ffb8859bb2933f97d78e30cbf9399b21e1e33eadf41613255c SHA512 20b32fcbb58472cf7b5821df6635f0d186e6758f23363e987daa59f1e3a83520a6bbceaed45ff1c2e4dcbc7f075d6e547cc26688016bbfa0c824fe950d99dbfd DIST linux-5.15.38.tar.xz 126323716 BLAKE2B 60f564ec7b896a2cae631735400f467ae0095c67fcb94f5415c38f0863b71babe435df15c19938f19cb083849d686404b362bab5922e8743569e547c556909a2 SHA512 9db4817e02e8e1328d5dd27d1655ef49e3e357fe733fbfa8baac95ffc215aac33328321e4c1b8c6219580d3f288ceacf9e8d97681ed533519dfd3880ba9ca9a7 +DIST linux-5.15.39.tar.sign 991 BLAKE2B e1b9446d695c20140108320471fe9f6d9c95a0d525ae1e88b5a4acfbb082afde83272461befca10e253799b088cbabd856256d83856ac03aca0e5cfb4c787f63 SHA512 30951a220de1f8cef56d2f4267d12fd78f03a966b11af0bf74b4521c746147549215a6d435c130f230685f2bd90500ba47fe1b178cf5aa560e3024ba10b7de8f +DIST linux-5.15.39.tar.xz 126317316 BLAKE2B c2b7e8e944e30aca07b70355a89b86e15756226e8a13826e749b330668cca28e0caf758c1a4f8166590d5a26ecda49f665ad0caab4c800c599e857fdf281ce3e SHA512 712608b95a53ff3ae31313c518614c1376a809d621d845bc23f096243f3ea509a11e451b14709ce4ed48b964547f177bcb20d57e62806938d129e0187a2cd296 DIST linux-5.17.5.tar.sign 989 BLAKE2B 72791ecee72367cb6eb883295dbe8dbb1d9d16b137fec43947df60e7a551415e74a93b7eaa1e568617e54e6fbabebb3f7582597c08eef9060d8a70d1d20f0a4d SHA512 d9bec5b8fafc3c33154498f5ff3d5bb432124d89c531cf650d4b0a8bf0c008fe2bed7a3228514a97225b43ebe641b3d5d8011ef01f2914d01a6ad2ef2fe0b861 DIST linux-5.17.5.tar.xz 128430464 BLAKE2B 253dff70d1f41a8d7483d98dfc374ef11367e7a07db0584787742b5a929458c3a52c81373622aa34f0421af3e4e270ba7f187e0421b3b124db43248f5ac04a36 SHA512 9a0b97b0179094fa4c3f91ad1f94ac274b4b7946b3c5112995fd5f60b263389772491f1a756186bb638ee868d42ccd7449cb9aa3227f1637949b6b54418c6bab DIST linux-5.17.6.tar.sign 989 BLAKE2B 1da547f5631c8e154cd5364777c268afbc9f75d0a1330216be974ba3a0f2760e260515eaa58e8d29d4ccac6109814d782645457a355e56751175a513e33aa64a SHA512 5dd1b591acfea2c261ce9e5fad1170fa767e3f409c44481cbcc7f833c1389a64888074661912783d2cc8db081e80f597c8dcfbbc4629b65139c45decc4d8922f diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.39.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.39.ebuild new file mode 100644 index 000000000000..0ef902726d5d --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.39.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.15.19 +CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 +GENTOO_CONFIG_VER=g1 + +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/${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 ~hppa ~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[@]}" +} |