diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-23 03:02:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-23 03:02:57 +0000 |
commit | 71dd9d29cdaf7cc0ecdb9ea37d128726a941c630 (patch) | |
tree | 4eccd905f575579fe47abb8a83bbdb44ceb8c929 /sys-kernel/vanilla-kernel | |
parent | c7a7ec40cf928d8fc6a8241aa208272c008c7b4d (diff) |
gentoo auto-resync : 23:11:2024 - 03:02:56
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 9 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.1.119.ebuild | 134 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild | 137 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.6.63.ebuild | 137 |
4 files changed, 417 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 4c864845c118..104da18e3236 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -46,6 +46,10 @@ DIST linux-6.1.117.tar.sign 991 BLAKE2B 6e4317632b1d3edae3e73948f99b88af5b923862 DIST linux-6.1.117.tar.xz 135215868 BLAKE2B 968f47bcb86069d1ae348fdb2feb0024b586e4f0eb44c100d26100d4f40540741171b142dee95dc1e77d02f6ecfb54e5a02800769297bb8a501a01006436785b SHA512 8af5434ba3e981085f0b4a43313b580f956347ec79b5cf3e87eb90c5609a73041562b35416d86e6c1aa993e78a7c253c7c6ea72a03de685b70ed2a0bbb9a8f2e DIST linux-6.1.118.tar.sign 991 BLAKE2B 6221184420f3a933ad4dd5a58b84729639f1e8ab46778b01ad8f8f909813978cf73d4e2ae3deb6ab9ae41a117a41876cfc78d7d81047f65dafae771b9e2df9a8 SHA512 f9bd4c868544ddc086c1dca2d9331485599cf2acda22f06f5178061d2d5d342b2b03cf10aac70f0a3f43d91cf7a04681863e11a4d088986b2ba86d2f05c3118e DIST linux-6.1.118.tar.xz 135205608 BLAKE2B ff57e5b4450d6d358f8b28c429465abace96dd4e8f8c9bfa4b5693cebbf388eeee9b0e97afba17af98c0ef5f8d0053cd7157f26e7f560af0f2ab208d6766c2fb SHA512 f2c6f9735e551099538eae410212c10244eac765a5769d7ec4d6b8727137dad09b295a002bdd95afa3da92090374239a502ddfda09feff76c93ff69a0c7bb5ff +DIST linux-6.1.119.tar.sign 991 BLAKE2B 2b730bb727466194ea6aa1051a9f85d686876affc651158389c3f144839569d3443f5e939a6123f7fdc9d82e5303267030c84176e858c0001f9b09382af5b397 SHA512 c1f7b23a457ca3934cf743a9dbf9492e54861090ea84e5b15f14aaa2bcf82a416d86b278f816e056633b74f1355308a3ed3f9f58fd2f02a4ab41c22b174b25af +DIST linux-6.1.119.tar.xz 135231592 BLAKE2B ffdb7f08bc2e5c6a52889d0813490dd95126dc69baac6237f064b4a43b8d472ed80f0a4db92d0779c565bf3a7d6c4def75749d48687d5e1e4330f776a10a2630 SHA512 4f3556770337b9282211231fbeaf7d695a3312777ee1f8ff93e12c7b5180bf0babdda43132c527f741e88dbde2a0198c63cc5799535d5e23a32c4cbba1e74abd +DIST linux-6.11.10.tar.sign 991 BLAKE2B 7786945a39d02727f9f279d5aac42ec2fa641aa1413c79a1325cd3e3a0bc699db35067d95482dec8d0359d55168658365a13b65fd6ecccb8398c948b98c1ec95 SHA512 89f517764b9396cd2d14c5ee1df27477a9bd8e4111de73dcb1e19bac9a64d71011446b4ce6e246ce88d0a19ebbfd2a3ff6ade8cb3e97a05b63b2469d82888fd7 +DIST linux-6.11.10.tar.xz 147005172 BLAKE2B 7eaa4da44fd0f6cde13c92a8dffcc3e20d96fc9a8dce4502883835f4c2822d181234f7e9bc684a09da4d499d0a7c5ecaecde29e3fa1e6a3562c4da610757d9e7 SHA512 77d739417b3a25b6dead21c5c6d1bd881b714d6f35b9e102f3e0720b897f9c7686d23d1da700a880bdda9a319f71da5a33c68ac118a345d2c054835cc9d3c927 DIST linux-6.11.5.tar.sign 989 BLAKE2B 03ddeca59bb70744cae46abce20dd2b7f35e299aff419476ac657722092f4e35f98bd5aa95a142928ca642a3fc7859fba5e0f70de1c2cbce8015f0df8a78d1d9 SHA512 07bd2b0ff4b3940eb274d6b9e5ab1fb17ec18a2518a336b265fcb20f36d56121a4b03dea497ea86a9009259f73d912a393c71e2641e75ddf1354c9f6862f50df DIST linux-6.11.5.tar.xz 146975304 BLAKE2B 8749d9f78cca3d64e97d081b3ededf506c07c7fe894253e7435afb37eb7c86b690a65293fb4b582ecd951229ca61f13679d10197e4629352262db776352b96dc SHA512 532432967a1b343408be7764be67fd47dea28f41385efb6cba93f7039bf19e75027a59c53eb3752b32863d20f334e25d8dfe68237bc5449682d18eb2b7d0ea86 DIST linux-6.11.6.tar.sign 989 BLAKE2B c40f1cce49b802eff77556649774d4c733ff83dcdf9dd871ab32f599cda7fce8f61e813c7a3aedf35b088facdc938095d89e953642241abae7fdbde82c05d430 SHA512 7b277c22583e8664017f2144e664d7db3eb118143626a0d5d540e870cd713cd125cd77ead60234c761084751d6f7fc2fb911374e71c992b6295ff8f5bf83817e @@ -66,6 +70,8 @@ DIST linux-6.6.61.tar.sign 989 BLAKE2B 5d61edc56e787a779e1f4366f5f441f4cdb8aa63b DIST linux-6.6.61.tar.xz 140409040 BLAKE2B fa9c2c2a8427e6fa40f628fd8144c8b1c21ae242ce7e4977474f8a6484066ff375a93f7d8089f6ef60df2322187916c053029f93d667dabed2cbd3a5b72c8d18 SHA512 df3635ffdf68a2547eb3e992f4510bb5080bbeaea98731225f4d5e3c9afb532bc1f35f38321db49fb70ea0baec55b14f48b2251480c10432e8c428b2cc0a2028 DIST linux-6.6.62.tar.sign 989 BLAKE2B fc8e42f4e6967a3b1617590e7eda620a1e422cd1991cef4be75a3a0b7a6f7a4a3517a0229a750665ef17893d12c3f74222f3115cf557804edd6c390470688ac9 SHA512 340234e7c438e3a6396d2aa7de330e82822158193d8f1daadd7f566f29da152fc465e461383e0ab1add8981df11bd51d2593d00729ea893553d1085b933176f4 DIST linux-6.6.62.tar.xz 140430984 BLAKE2B be626b8e4af2394a9eca5024f0c6b2274d3bfccae9989c353d9b1a80c903f8a632cf986d43a0e283c02b62ae77a7409fbca6a6c7bf9cf1530119d7a712e8076f SHA512 9b49ff136afe1044ed29b776246d91fbbc9976629f3dd30bd0ee233664db10c35cd1791fc1c82c0d9b2db8829e562c547db43da60a6de962100f2a0dbdbbd00c +DIST linux-6.6.63.tar.sign 989 BLAKE2B 16ab329b4e25021c785ffd5285e369ba9e54f084a6b06e5385973a8924b635b61d34159de9fef6675d569bf04ae2b5a77be4c861db29e68756142e7172ab9987 SHA512 72ed22a290f027386f2d864f91b6c79ccb49ad164576752b8ebe3ce755c8b49e710feb1c2520d9c147830da4ba258c059940331eebd4c544a406ef46f6773629 +DIST linux-6.6.63.tar.xz 140405280 BLAKE2B e7e00e6e7e333929be3145784d0dc4cac53e236154627026bd2be0030cc76c347bffa43dffc69677b4a74a19725c54483b14f3168e743e4607e3c5228bd32aa4 SHA512 7ae46444545754d0ea70884d981206b3122adfb5217bf6d14f5726d0bc31e125000e498759f9a13378b5b8b3e1f09f85c93644671995ff05ed95603432d2c64d EBUILD vanilla-kernel-5.10.228.ebuild 3764 BLAKE2B e4e7ac881605be76416364c57e7834399afb6ca082450a0530ce2bfdeeb5509bbe2c29707a3d6916a87c3908fd3437950ed4660038b0b93b8a0064ef1e51fa6e SHA512 0b69e6ccf3f97eb619e38bc4c83537a0d70e366c3abfe6488f56a3d9355c90051c6d2e637bcac157dbfc3277fb513c032511094e52d1a9dd135c19315c874ca6 EBUILD vanilla-kernel-5.10.229.ebuild 3764 BLAKE2B e4e7ac881605be76416364c57e7834399afb6ca082450a0530ce2bfdeeb5509bbe2c29707a3d6916a87c3908fd3437950ed4660038b0b93b8a0064ef1e51fa6e SHA512 0b69e6ccf3f97eb619e38bc4c83537a0d70e366c3abfe6488f56a3d9355c90051c6d2e637bcac157dbfc3277fb513c032511094e52d1a9dd135c19315c874ca6 EBUILD vanilla-kernel-5.10.230.ebuild 3764 BLAKE2B e4e7ac881605be76416364c57e7834399afb6ca082450a0530ce2bfdeeb5509bbe2c29707a3d6916a87c3908fd3437950ed4660038b0b93b8a0064ef1e51fa6e SHA512 0b69e6ccf3f97eb619e38bc4c83537a0d70e366c3abfe6488f56a3d9355c90051c6d2e637bcac157dbfc3277fb513c032511094e52d1a9dd135c19315c874ca6 @@ -81,6 +87,8 @@ EBUILD vanilla-kernel-6.1.115.ebuild 3884 BLAKE2B ddfee1aaf8746615bdea9254735ec3 EBUILD vanilla-kernel-6.1.116.ebuild 3884 BLAKE2B ddfee1aaf8746615bdea9254735ec31f9ab7a1f053b1e6b7017f586b60d9704dc02b3ea5bb9984a05b7a2445301b24abfd46f508310cbd0a290c9e792976c6a8 SHA512 a315e86000a31e9ccef33f59c151ffb90300725745a01d9ea781037e10eba0462c42221dd23750d2eda6e3c1e7150d79caefe18d277b543daf28374e2dadfb0d EBUILD vanilla-kernel-6.1.117.ebuild 3884 BLAKE2B ddfee1aaf8746615bdea9254735ec31f9ab7a1f053b1e6b7017f586b60d9704dc02b3ea5bb9984a05b7a2445301b24abfd46f508310cbd0a290c9e792976c6a8 SHA512 a315e86000a31e9ccef33f59c151ffb90300725745a01d9ea781037e10eba0462c42221dd23750d2eda6e3c1e7150d79caefe18d277b543daf28374e2dadfb0d EBUILD vanilla-kernel-6.1.118.ebuild 3884 BLAKE2B ddfee1aaf8746615bdea9254735ec31f9ab7a1f053b1e6b7017f586b60d9704dc02b3ea5bb9984a05b7a2445301b24abfd46f508310cbd0a290c9e792976c6a8 SHA512 a315e86000a31e9ccef33f59c151ffb90300725745a01d9ea781037e10eba0462c42221dd23750d2eda6e3c1e7150d79caefe18d277b543daf28374e2dadfb0d +EBUILD vanilla-kernel-6.1.119.ebuild 3884 BLAKE2B ddfee1aaf8746615bdea9254735ec31f9ab7a1f053b1e6b7017f586b60d9704dc02b3ea5bb9984a05b7a2445301b24abfd46f508310cbd0a290c9e792976c6a8 SHA512 a315e86000a31e9ccef33f59c151ffb90300725745a01d9ea781037e10eba0462c42221dd23750d2eda6e3c1e7150d79caefe18d277b543daf28374e2dadfb0d +EBUILD vanilla-kernel-6.11.10.ebuild 4002 BLAKE2B 4d6ad84f1ce0b1d1d1c85bb5b0f980e58b155e7f181d811ebd5868fb2d441bbef4e56cfc4c569f6afc9cf84d15f8c346987ce1e43d7a9baade6f1ab7ce79366b SHA512 307b5877e0ff59b0917842d95df39848cf5d3ce2efaa4225b9f8e49158ad982bf9be91d850594b5bfb85015667e915671aef7897869ee99453420767a98fe00d EBUILD vanilla-kernel-6.11.5.ebuild 4002 BLAKE2B 4d6ad84f1ce0b1d1d1c85bb5b0f980e58b155e7f181d811ebd5868fb2d441bbef4e56cfc4c569f6afc9cf84d15f8c346987ce1e43d7a9baade6f1ab7ce79366b SHA512 307b5877e0ff59b0917842d95df39848cf5d3ce2efaa4225b9f8e49158ad982bf9be91d850594b5bfb85015667e915671aef7897869ee99453420767a98fe00d EBUILD vanilla-kernel-6.11.6.ebuild 4002 BLAKE2B 4d6ad84f1ce0b1d1d1c85bb5b0f980e58b155e7f181d811ebd5868fb2d441bbef4e56cfc4c569f6afc9cf84d15f8c346987ce1e43d7a9baade6f1ab7ce79366b SHA512 307b5877e0ff59b0917842d95df39848cf5d3ce2efaa4225b9f8e49158ad982bf9be91d850594b5bfb85015667e915671aef7897869ee99453420767a98fe00d EBUILD vanilla-kernel-6.11.7.ebuild 4002 BLAKE2B 4d6ad84f1ce0b1d1d1c85bb5b0f980e58b155e7f181d811ebd5868fb2d441bbef4e56cfc4c569f6afc9cf84d15f8c346987ce1e43d7a9baade6f1ab7ce79366b SHA512 307b5877e0ff59b0917842d95df39848cf5d3ce2efaa4225b9f8e49158ad982bf9be91d850594b5bfb85015667e915671aef7897869ee99453420767a98fe00d @@ -91,5 +99,6 @@ EBUILD vanilla-kernel-6.6.59.ebuild 4002 BLAKE2B 3845ba8050f428f23d20d11136f4f16 EBUILD vanilla-kernel-6.6.60.ebuild 4002 BLAKE2B 3845ba8050f428f23d20d11136f4f161265bdd31491bd66901c0f016a977e29713f3ba898506999264965d9b99f287f3bf1ba7a11f12106d463cd7417a218405 SHA512 9e8201a0de1dfe4c68f9c350ca6b3fca384e89dc8e517c0caf589d38f7c0847deefb2d1bd144fb9a06c088bc6a32cc2ec75dae6f929b74bdde90ba0a2e219432 EBUILD vanilla-kernel-6.6.61.ebuild 4002 BLAKE2B 3845ba8050f428f23d20d11136f4f161265bdd31491bd66901c0f016a977e29713f3ba898506999264965d9b99f287f3bf1ba7a11f12106d463cd7417a218405 SHA512 9e8201a0de1dfe4c68f9c350ca6b3fca384e89dc8e517c0caf589d38f7c0847deefb2d1bd144fb9a06c088bc6a32cc2ec75dae6f929b74bdde90ba0a2e219432 EBUILD vanilla-kernel-6.6.62.ebuild 4002 BLAKE2B 3845ba8050f428f23d20d11136f4f161265bdd31491bd66901c0f016a977e29713f3ba898506999264965d9b99f287f3bf1ba7a11f12106d463cd7417a218405 SHA512 9e8201a0de1dfe4c68f9c350ca6b3fca384e89dc8e517c0caf589d38f7c0847deefb2d1bd144fb9a06c088bc6a32cc2ec75dae6f929b74bdde90ba0a2e219432 +EBUILD vanilla-kernel-6.6.63.ebuild 4002 BLAKE2B 3845ba8050f428f23d20d11136f4f161265bdd31491bd66901c0f016a977e29713f3ba898506999264965d9b99f287f3bf1ba7a11f12106d463cd7417a218405 SHA512 9e8201a0de1dfe4c68f9c350ca6b3fca384e89dc8e517c0caf589d38f7c0847deefb2d1bd144fb9a06c088bc6a32cc2ec75dae6f929b74bdde90ba0a2e219432 EBUILD vanilla-kernel-6.6.9999.ebuild 3507 BLAKE2B 975ad487827f300f7a951c81b5e9b919333dcce1ed5b2a74b66f5d67a451a080c9a29f94fbfd271f71f72d651181fa5cd31355495aeb920929ee009ad3173ea3 SHA512 2565c099c58725eea9104276a412cf245a97d0bd67aedbca3718cf69eba6183cab15544244e6e0e39132f650ae0219d2208d6f03b485da2a40d974f09c07ce5a MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.119.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.119.ebuild new file mode 100644 index 000000000000..3e7046d330c0 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.119.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 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.1.102-gentoo +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://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=/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[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild new file mode 100644 index 000000000000..3c2cad2b80b7 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_MODULES_SIGN=1 +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.11.5-gentoo +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://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 ~loong ~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 | loong) + > .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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.63.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.63.ebuild new file mode 100644 index 000000000000..024fb0dc392c --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.63.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_MODULES_SIGN=1 +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.6.12-gentoo +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://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 ~loong ~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 | loong) + > .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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |