diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-23 06:55:29 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-23 11:42:43 +0200 |
commit | bc047afcae6e4f93de9b031eb896ea9c16a051b2 (patch) | |
tree | 08bfb4a38896d30a43e9c9590f60568ca34922db /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.15.169 (diff) | |
download | gentoo-bc047afcae6e4f93de9b031eb896ea9c16a051b2.tar.gz gentoo-bc047afcae6e4f93de9b031eb896ea9c16a051b2.tar.bz2 gentoo-bc047afcae6e4f93de9b031eb896ea9c16a051b2.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.228
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.10.228.ebuild | 134 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 3e120b71488a..b8be08a7e194 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -33,6 +33,8 @@ DIST linux-5.10.226.tar.sign 993 BLAKE2B 4270f42f91b03331d06a1e0d1612ee2895e1917 DIST linux-5.10.226.tar.xz 120709524 BLAKE2B a072b30b5ce6bb0343d19cd29c9dd12a3af0b2c5a319cb3e6adb3a40e2befbfa1c07d7716a24235b094a3178917ce3a0c3dbb6155385eb31e9b047f312b5dceb SHA512 99f43ac2679bb9f90df4a7cad39b98a44e8904fe50cd2c5c40ea766e86af24f16c258836c0edbfee27fda4830b773d5a0c13ced8d304b88f5d4ee12aafbd6da9 DIST linux-5.10.227.tar.sign 993 BLAKE2B fc17d46845bfca6a917cfb7801217132d157aa5e7d7366e45cee87fcaead0dae49fcac96cf7d93b4d02a4cb71326d39aba09ae88a8baee0bc290833dc3091fcf SHA512 12c80919443b6ffc9c8cb6e5b651b20cd770cc09ad16e9b12aacc02f5eb5260e605b231e1426aebb2496caaf0f9c9ae8dd1850d72fe0f6f7084dc2514c592352 DIST linux-5.10.227.tar.xz 120717528 BLAKE2B 160b2b9056c9b2fa6a2772c57ed8d9e072372cdc71efcdac93f46f348ab7c790cd11e391b7fce31115dc9270d4dccdce9f3965753d4266dda7a12630558a5bd6 SHA512 163fcc3a2aa15f6a3f5f0148ce3aa6bc650df0a763c6b0a76531e0bcfc164f69a1653043650d030d5e5fa3cebce4f63ca68d05db02166fbf00b77d3ebbf679f3 +DIST linux-5.10.228.tar.sign 993 BLAKE2B ab719347cc4ce78c930147f589e61a797a401c0f7e713ce1b74c959fd4eecb3cbae1083114776570cddc788b93b6e78077c5810d00c5053713d10b76694eb67b SHA512 36d6f275f8c0dafead6c85895d2089b064fd6569d6794b1dbe90be462f0a22a150377c34d7d2035d3f35634b9e06846a733a536c2c7d14c92e0513032977035b +DIST linux-5.10.228.tar.xz 120743132 BLAKE2B 166b9a0c4abe717f63aed90a62bd09979bc34a445184431ae42fede9a72b045e5e27f1b0bd87717c454974fafbe01f16517f9ebc4b6b50b74d18a327434a4a07 SHA512 a6d60f086c5bca2b5b18e5ec3fd410198edf4a34c8f6d3f4f9ba39a1346db9289647a9ea58eb44b3f73f2cf39aef97bd5364876b0a28619cbf5e478ec2e9977f DIST linux-5.15.167.tar.sign 993 BLAKE2B e3a74697c175bc3b6944b05a754fb015edb1137d053039b4d122d43b2ed02c55218736835877f37bfbddcc42b115259049d391dcaa4ccc319b445ed9b21d98d9 SHA512 c42daa300b5b95ca1b3e5c1874e0112ea66f2c4d51a2d2df59ac0b3094945a39f98324d75b53a2e29a564ce2a091376dcbc8ae0166df78aa73042d85552fc605 DIST linux-5.15.167.tar.xz 126681812 BLAKE2B 24acaf9a064f4b2af4a272f49ad63ac565fa55408d595f4c15ebcccd8a44a2ab964e5bfbb9b9b10f765d741da541c9e3911aa7dee3164c091b203cd06c5ad08b SHA512 3ce1848fef40dcee6de3808574ab236c72799aed5aa5a295d169b45ed529e254b43df81c9d9b15902723d7316c3d1af366aeee815ee9be985cd2d380e360cf0b DIST linux-5.15.168.tar.sign 993 BLAKE2B 90d6895485802ced84e9be9d59389d3a7b0b1e7ce4beb7127c86cc06265a8fb6b0ca195219a76edd83cc8951a21fc1b294874f36582bf96c8c0e447c06d2e8ad SHA512 0119b75a97054d432addce1ce8c02924bec10e516d7e16c24ebd6f19afece14e2a26fb0e1f246b5a890da18c75d9f68afb51d6d0bf41e6e5a3e96d3f2cc5fe29 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.228.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.228.ebuild new file mode 100644 index 000000000000..2f3273b2f39d --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.228.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2024 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=g14 + +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=/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 -xf -)) + 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 + arm | hppa) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + 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[@]}" +} |