summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-02 19:15:09 +0100
committerMichał Górny <mgorny@gentoo.org>2022-12-02 22:28:54 +0100
commit4bd3100630491e5f0ddfc3a858f83ca18e28bb0c (patch)
tree912d324583fa30630a5d196dcd2dadb65e5b514f /sys-kernel/vanilla-kernel
parentdev-ruby/semantic_puppet: Stabilize 1.0.4 ppc64, #884025 (diff)
downloadgentoo-4bd3100630491e5f0ddfc3a858f83ca18e28bb0c.tar.gz
gentoo-4bd3100630491e5f0ddfc3a858f83ca18e28bb0c.tar.bz2
gentoo-4bd3100630491e5f0ddfc3a858f83ca18e28bb0c.zip
sys-kernel/vanilla-kernel: Bump to 6.0.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-6.0.11.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 2b46b2828e93..6d9e3afd52aa 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -40,5 +40,7 @@ DIST linux-5.4.225.tar.sign 991 BLAKE2B 7979abcf47899c61a9a661d73bcb07b097507e3e
DIST linux-5.4.225.tar.xz 112975708 BLAKE2B 1fcc64d4a71f4c1b9ae282fabd37a542f53b78b023cedf657a9649b5a1091b27677acee778c28b7919dfb634e4e2494f868ba7ceced2ae4fc5f3d901b9b02b2a SHA512 2519e9ca893014253e7af9e1e99168693c50c2c39a819a65105dc70f5ad6906d9348a61009c0575ffccc625b7df49c6e1c51bd141bf7b9f64c4ad9f5a173ed4c
DIST linux-6.0.10.tar.sign 989 BLAKE2B b61afc42b98f495da3e93ad800a8256fa330c5538e52a68ef4bcab382e3a0dc423e89024b2840e7063857f3db82ceaa06ec21d84f8efc51c65c1090e12de7a9c SHA512 90a8d3cec46b748eac6113e338fd26f19d2e4851487361ab38fe2d6a6abd0f6afc8db18d913a0978a774f26297cad944fd5f0dbca9a176462a2995742b7d76a1
DIST linux-6.0.10.tar.xz 133913388 BLAKE2B f061e3f871e5925bbe8f829c1dd7cac72afcb59fa2fc76226268c32eb990c8637b7dadf56c9f9608f0828debf8a7af519b7f1aa2a37e82d64b97f4f95bbd3f76 SHA512 f25b2a778be1f0879b152ce01d33c344e6fcb670b48d85d6d287a2d3b244fd248b0b775639cf8101c166adb19f8daccaf0e88815b5efefb6355ff2741a1888ef
+DIST linux-6.0.11.tar.sign 989 BLAKE2B 75e55b5b6162d02b6fa34e16bc7997aa39c12a8171f1ac7e309aa143fb2747c85672f7785c8b09c262f0302477655735e98f6dd4a6536cd044ede0e3c3101b2d SHA512 7af082a265cb4cbd78ea91275223f934787600e56be25f74f356831ef750751181e76d3e0dafdf608872fdf3cc86e0d01e8417d4cb0e756cec724bfb2ddb8a79
+DIST linux-6.0.11.tar.xz 133918204 BLAKE2B 55d3fc789bd0775afc3415c3cdbdf0819f1cce599fa383a44fd62eb80734bc204ef9848b35ae7746b6fb74db58bff106639ed2ac971b12b60f0ade3fae96f404 SHA512 992861a2338fb8128239da6ad5935bf3a1aac42fed177e451b86621b9490cdf17f61e4e001181c63edfd77c14be348bfcfcd81905a7753021cc1edb973041c83
DIST linux-6.0.9.tar.sign 987 BLAKE2B ccec935f65a836b1f646eccbb453312b4f9e84d06e4f3aa33ed7b8aae03fd8c3f4e505c6560dbac58d2741df991cfab43c014b6175fe94014f758aa434502a44 SHA512 5d5ecb51ae1a0e40f7b505fc14a6a5665efcefd7363dd9d71bffbe4a72ed2498a79d99c1ce7f80712d8cf753d2bba5f0069447385be74994638657b5a4bc7fbd
DIST linux-6.0.9.tar.xz 133911648 BLAKE2B 23ad9036cc771135c4f6bcb17950ec61e182981c4bff596062aa92cfccc66c316b35598e7a162ca4c346ca6b18796e2c5fd8112b05544fdde062faa0c3a82305 SHA512 8269caa07b39c668085c9e956a6924c93b698fef7a927ba59a85e615b4be6828b10dd72502e9a1eedb5a4ef1a271ca78a5dea255be6dd0960536e1574ef7f678
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.0.11.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.0.11.ebuild
new file mode 100644
index 000000000000..d2f94947b12d
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.0.11.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2022 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.0.8-gentoo
+GENTOO_CONFIG_VER=g3
+
+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/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[@]}"
+}