diff options
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.10.188.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index c85c2cd41392..6b90bb360391 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -26,6 +26,8 @@ DIST kernel-x86_64-fedora.config.6.4.3-gentoo 233494 BLAKE2B 15481955940dc58447f DIST kernel-x86_64.config.5.4.21 184907 BLAKE2B 0eb2b07c14cea7545350fcdf3a94f2a531f0137c502ebda9299cacf44da5385686e2049b480b28bc153c9d413d453cfe682b9655eefe70428cb720f57c7bd200 SHA512 f3b3ee6841555ac3a9cc11536a7d44e1a5a8df2bab14ba341fda7df1ceb0de45cf1c799a1d54a64f2858fd1272d348bb52cf269ffa396878c5402baf2730237f DIST linux-5.10.187.tar.sign 993 BLAKE2B 5739f7361b320d36db7489ceb7afeb56583d4364eb9e2f18c999545d7d97960cd8686e8ecfb8994878249cffaa8e905fc2a6fa45b5738e6016305990b2f5238d SHA512 0ad381430b76a20fc678b905b2d6ba76897f99d52157e3d03d4e53329603b83b463dac2647c36e57b26857bcafa4de91125177206acdabb8d30d918a39aa2aaa DIST linux-5.10.187.tar.xz 120576532 BLAKE2B 098bcad0944cbf6bacea7b62baa41e2583561cd1995cdd112ecc9459eec09dc64dcd4ea0c8494a8cb6dc9c17d2482b62b44567ce805c57beac91a84f2ad3ba65 SHA512 c61a22f3f1f9c54e416e8761e52cfb35dccb7c0f9a4171be9893b8e2a5a186d8417b88141f616f109d3429b1676fdaadc79f687a104a0e05a75e2d479af9bd9a +DIST linux-5.10.188.tar.sign 993 BLAKE2B b6c7ee466addada512ea6ba9fc86468040e0fea9542d38f468d48f0f9dde0ea0797461a678b1639fb0273422f1e686248469694da008f4cad01fc1da36054b45 SHA512 7a18c298eb35247d3b4574bd651cec57db94b3dce8055e5f901eb7d90ac3e69c5131347fec9fba4f33fa6b431ff03663ab35da25d5b054738ee6197126ac452d +DIST linux-5.10.188.tar.xz 120594860 BLAKE2B dd995a1dd78f7eb37a7152d5156e69aedcee5a08587edf826edbdda0544871eb6e10971d3a31cafaa2f9597b6c2b9aa1fcc10904f5054c7d3e6e89583d6f3df2 SHA512 b8f8f560a03ba9a95ccff0eb820286fbb6f17730f3e5959d26dd60ad4c3f4e9344ed7bdf5f7ff3558b52cdcda51a2c9141d0e2901e00d32ed1ece690437148f5 DIST linux-5.15.122.tar.sign 993 BLAKE2B 8a021595b519795a89fec13df9afa15087823348fc92d91e4306e598faac7b56d892b2db63823023df3ef5dfa7fdbcf887b4daa1a980f166367cc68de0657c9f SHA512 d67c1331aad447c49a2f8f52d38506e3fc2539eab387d84ac9de9fe47db94a2632d7297ff58a161f50deecb32e9a81b7d111438fb0c1b3abff2c346d040f1960 DIST linux-5.15.122.tar.xz 126497672 BLAKE2B ac2861be0226c0f49847cbf7466069712f75e8fb00fadbd3db5ab6e72e70b78f1b7fa954f46be442237112cf069b50c2fc085510e82164d620f15dcbc0517bc9 SHA512 a9eec228d9fc9cde2377b4c5445abf1b15c588bc9a15f529ae4c2924a6fc7daa0b8994ea6266e0648ce347a3b36f2439243b91269e4d8b5eea86296dad1abaaa DIST linux-5.15.123.tar.sign 993 BLAKE2B cdb1ec66d92d6f91c87b52e52f967e7ddea8536b9e1bc4638464b1aee2bc34e5937fc5766c14d1d5b365143f27ce03d24ba357d8c1d7d6f51708d4dfa8add742 SHA512 234865ede0c1aa2f4f7be71858ba872bb2a37f9d85ff423e1085e20bfabf5a55dbb75e63652bf075c791eeb1f382fccbb3092ee33db84d1591e309ef692eb7a1 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.188.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.188.ebuild new file mode 100644 index 000000000000..3d406f474e2f --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.188.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 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +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://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[@]}" +} |