diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-05-01 16:17:28 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-05-01 18:48:24 +0200 |
commit | 3db347961d275a3770018969b31f8619c07d3624 (patch) | |
tree | 55e76586db3890bb5a247c4e6911b33a1ef2716c /sys-kernel/vanilla-kernel | |
parent | Reverts: [QA] 8b443b6 (dev-db/postgis: Add blocker for dev-cpp/abseil-cpp) (diff) | |
download | gentoo-3db347961d275a3770018969b31f8619c07d3624.tar.gz gentoo-3db347961d275a3770018969b31f8619c07d3624.tar.bz2 gentoo-3db347961d275a3770018969b31f8619c07d3624.zip |
sys-kernel/vanilla-kernel: Bump to 6.2.14
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-6.2.14.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index d65bf87c6247..694ac738176f 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -43,3 +43,5 @@ DIST linux-6.1.26.tar.sign 989 BLAKE2B d0643c70d59f845548dd346d3bfbdaccb6ae19587 DIST linux-6.1.26.tar.xz 134853116 BLAKE2B ab5340a444c0af1b44c5d994a8d26ae69ba298ff9e125365a00f7dacbbbc35ebf0d45332da843998540879722958a718d94c74ff204b930c7f54eed8188b59a6 SHA512 342f2882189c82311b2abd8588bb8eb43fdcd7fd94d4168dd392c10c68be51a3a927c18b4b4fc45d8f56e3cdb2949ffa31a6e613182cdb24278d7f99e8ce8913 DIST linux-6.2.13.tar.sign 989 BLAKE2B 9109ab0ebdd93de0906382f65c4ff7da00ebfb94cc5fc12aa6896ca291816a51fc3d3284e25d943909e99635d716327c14828c33ff070dea3de5ada8260c98d9 SHA512 fd59cd27174a984b0fad3b2288a9cac311f178272ed0a4f21d5ebe51e0d2b55efeaed07d3be32999be53c7d0687084ebcde9bc714cf04ffafd0c9bb64a3a6c2f DIST linux-6.2.13.tar.xz 136481716 BLAKE2B 94d9032a12ff0f1df819d39ee411f6ba52f4dfafaa0c217f32f15b111f0e342561624de90492caceacf07e550f76fdccea3278e46c7c1b0468cf398569d81001 SHA512 fa44de0d4023595e36eed1e5af69a445a44fbe98c51a6f67ed53085d9ccb6d4bced66f0496bce203cf4b2f780ec8172eaf856e323c747229d75de5e9dc950be3 +DIST linux-6.2.14.tar.sign 989 BLAKE2B aee0a80be752237fa2061ae5199265b74d57c8ad7f62687e16e8b1ac67240bae32492b4e6ad3cab9d7021d7428bad2c4fb17b307a3cf505a8d22a3a998eb26c5 SHA512 a0cc0604925381f7489b52a8620c92304c8ac31edb0694d5c138980c672329e45ffdf69f48cbde9faa37eb2d8a51df80ddc761638b10d89a2d76b8f78b9c51e3 +DIST linux-6.2.14.tar.xz 136508180 BLAKE2B 9c944a35da1549bed2d43f2095dea351281293dc3ab1db34575b86d2df7b292dda3adab076840d52e60c5c83f1df870397d20957089cd4a910c2eca9405573cc SHA512 39fe2e687614886618ec94b133cd05394541fc423ec9f7e7e8b59a866a30984ac0ad4393b8264b1cd58c62d44019edf336a02c82adaaca4813ed57f33f22fa03 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.14.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.14.ebuild new file mode 100644 index 000000000000..1ec99df30db5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.14.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +MY_P=linux-${PV} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.2.6-gentoo +GENTOO_CONFIG_VER=g7 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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://github.com/projg2/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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/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[@]}" +} |