diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-02 01:26:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-02 01:26:11 +0100 |
commit | d39b2406e1496a2848b3f450a5737ae3dbd8c6f7 (patch) | |
tree | 2f21fa7a75d2873c67fb5d3faab2a0f60fb785ce /sys-kernel/vanilla-kernel | |
parent | 95ce69d324747e9aa715e1761abab42204529b28 (diff) |
gentoo auto-resync : 02:10:2024 - 01:26:10
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.112.ebuild | 134 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.10.12.ebuild | 137 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.6.53.ebuild | 137 |
4 files changed, 417 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 59920ee028d4..b13101f7d195 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -28,20 +28,29 @@ DIST linux-6.1.110.tar.sign 991 BLAKE2B c93c23243b3f9df9da66cd9c3d1c65d6cc09212b DIST linux-6.1.110.tar.xz 135196940 BLAKE2B a4d78c86f74c0684a3ec53056241900a0fec06862fa47b963085ed7e797a0c5c8dc8d9b5e6d83d5da412e8ae8f820bcbc2f83c2a049ceed81e545fb0733ad582 SHA512 48c9515d32bbba034e3a477554bac627f131533a9b47ec55c8ded5f464c7e57f0f27c1f34ec92403792680d1019baa4472b2c55892c5e1d8edfd04cf7bd79eb4 DIST linux-6.1.111.tar.sign 991 BLAKE2B f65cdcfcde31e4e281af4f6efbaabaec9f347d1be4b801e839e372c608fc8cda925ff4fc7da6e2f4c495c0ba8bacb41b5c4540e97f1354225a5884f7fae9e7f2 SHA512 4a575810a76953383fe9a20071f3c07af638537a93edf10a7cbb452931666079d99314a15b15cd37016ff9e73057dfc23686887f1f044d7d7116734cb64f4954 DIST linux-6.1.111.tar.xz 135180332 BLAKE2B 4e60152884277015e12e9830da2fd4816507e36fc263506d270a17bb641d4811c83ea358c7fec0d3204a02b5cc3d47c3a935a52a4a5ccec869a96e458ff86d89 SHA512 239a37cc75c6f19d9f8480cc1fed27e885a60b1d68b127848d3e00ed6e2ffe3fe5d9bea0ada95dad1e39c6e829446f10722b2d8ab062f85aab189ee74512ca9a +DIST linux-6.1.112.tar.sign 991 BLAKE2B 6353287da4cf4745c80b24e46787f65e2e725d247f633cffe98983f536c7e288695dd3994727cd8f1fe4ac7d96c7699d6b109ab3684dcb9b402d8d40688755bc SHA512 11578d2dd51242c0e9e7b362b3b120b820c2f12ebfc31aa107eaabacc7dee1cbff7bd00d1ed48e648bf97533bb83f5ebb4007bac18fa3ee213f7ec0762602f72 +DIST linux-6.1.112.tar.xz 135183972 BLAKE2B 79da8b2cd91aa4f96ba3c6e296fd06b72ad92790df44ef73a063c4e02dfcbae181970008631adb8ee4cea13c20bfd191cf50a9062ab81a10790a588871b94b15 SHA512 3fb3fea3efe0be30d58c8638e14f13ef7ec7ef61c8bdff2007ca4777a72bca9a41d5e2f92bd054dc932ace4a2fd23e9a02baf7e47ff0f774d034a78554ae08db DIST linux-6.10.11.tar.sign 991 BLAKE2B 45a05ada9cbe48948bbf1cbd581eafa6ace4f2b1f9b8d3dd0d6059f6120ff15ff55e0b1a74d3819105294e8abbc1be2c8c806e4c9e04f69cf5e7e6bed80ee06b SHA512 f9ae418c735b250c55444634375dc9bf5481f2709fb70bb3f3b939100325274c60ee52fd3e2294b1277d9dda2e3bc5574f3c867029aec2e4a414f5b40ace47da DIST linux-6.10.11.tar.xz 145185812 BLAKE2B 55380d2af9fc535f6359cdb9b36612d1f81f2f140652f44bf927c320dda382109c9fb9591cc741914d3221e8d8bda954a10dbbeff8c163bf1ed57eff1831c8df SHA512 bb118bf74c0fd613e55e84f849849124f1d6093cb57c178258e2210e400e9fe492c16578bba583b1434b65175ebe1f20dfb722c271bf71b1157d38f3c0b2bca3 +DIST linux-6.10.12.tar.sign 991 BLAKE2B 4e48b45853b4a486d0bb6c4357c2df3f9ef9c26d4cf50299e5998b6aab84057da6d095f222a59bea86e65012029960195f48006c143805ad7e1442f10d8ca636 SHA512 5fd50b4e3252a69b8159afe8ee536b0dc143fe49f2dd98f8ff05c8b0e52e2a1dbf5d20f15fc370ef5e47904deb4dffeb1b1021d42b59b2f9ec5bbc3fd17833f6 +DIST linux-6.10.12.tar.xz 145175356 BLAKE2B 22cb2e7c59e65da55f1db0678f3e913376d343f8285666bbc2c4e6a2b1b45c492c8d01a10f9a0ab6f944745a676ed7da9270683d29ca4984f68c86f965dfe121 SHA512 735720dd392a50a3b625f8e095f56c4c3632996883fcc80d7bf864c122c7417fac056295740fd2c5c9d3f77e75cfc1e7cd988566b3e32f64366e90c31c4ee9b1 DIST linux-6.6.51.tar.sign 989 BLAKE2B 6413a28f43c12842b24a6bbb3def5cdff4776ddb773afe71d13f987212e8247b721599f24fe003585f85402b39e175a223053d47871603ab5878b1caa9a13f1d SHA512 0eecf63ad8f3c20edef379b90e9c7b576457ae5dee6cf265bbc7bbed1e46f6fc33fbbdf437497edc3ca821349762f97d8b2a11f249fc14ecd91c4f7002528a66 DIST linux-6.6.51.tar.xz 140337048 BLAKE2B 11c628d94cd62e08ec500fd67fc8b989e03cfa617690f5f7ce010f211c7778c7b57c119d827a707b3c09e862b5b96de3eb8e503b7128a4e1651789e4420ac1e6 SHA512 c79fcd957dbc855e101464a04b33921ab0dab7bf16201da0cd49b4c3dc9746f22a7f3411033035698ef98e8c9bcc6edf560e44c2b740235beac7cd59a4ea695c DIST linux-6.6.52.tar.sign 989 BLAKE2B c3ea21b0921eab9df4fd36ee10ba4f417ccdde013be1d4a75c28e50578495812ec058a51bbbefdd9baf9b5fab97ee1558c6bb9ba79172750dd89ac8494f5913c SHA512 a19d1283072c8a648b02765e9ac94284171a1376e0a07fd4872a32c565e5d6f213cf38af636475c46e9369bf45c32971ad60afaed3c2ebe9d6e6614fc9731d5b DIST linux-6.6.52.tar.xz 140320676 BLAKE2B f42461ea587b2027ce4e096dd7188d4d5bc8aa559eb037afbb2250493900988925d69e2882356739ac3b9d028f833a63578ed9087f7bd9ee44dc096b4608d352 SHA512 3fb7b4e6e19e87c4012037ea32dc4e28a30b75fa4260530edb7686c39b0c6fb6c4e35550a97c0e40c604513a0ba5f26490a6a74da21de08226d54fda73d316a0 +DIST linux-6.6.53.tar.sign 989 BLAKE2B edca06d7c0b33f98d19dfe1015857a882fc4122c4f5c48aa223f7b5dd560be498278794f9a2186ddb8043f102f533a5455ab7babc4a70628aac1e36447bca0fc SHA512 b77d40d19102100ab5862487b6c44cd14a213fde932301be6df0ea4713020e700d7432d3f1ff160aacc385767dbe2137fccfbffff837ba89e0bc05af9135e6d4 +DIST linux-6.6.53.tar.xz 140328808 BLAKE2B dfd4ae4bcc65c7b078163c182d5b86df56abd62aa44c3b1fdfd8dd7b2533b1a4472b24e8e2e9cb1661230f550e43419e5a93bb133504781f6cfddf029033caaa SHA512 c5ac0eeea96f367088c1e9e137e48ab30e580bdc6d9d710211d23c6e3787156b7925e5827792b642ef6725799a9f588a2e6194625768e9c75ec846a44196c5c5 EBUILD vanilla-kernel-5.10.226.ebuild 3764 BLAKE2B 43089c603ae954540d1cd342807f80c1d48b8dca6e6daa11b1d9fddcf5cd2825f7bce4d9e0beccf2d6dec094a7b635cc4eeddddacf57c01b96bd61a25fba04a7 SHA512 75dadccf961b229811e7545870091871fb40e5d31d5cd6f836ea5c1a53e4c9d3715d8c943d12419ac2f654c0f4fbd3e412ed9545d5c903ae92886eea70c6eabe EBUILD vanilla-kernel-5.10.9999.ebuild 3276 BLAKE2B c60d73d8b0cd26bac12ddb2fb7a13453b368263d67f0a33ebcef8dfd7cd98b079c20b201d7ca4e2885e4e6d6c32dee2b69aa3305e0fcecccca8cadd4390556da SHA512 42ddd72b3fc53f19dc134cb0a602c69f2bad3d88b663e6a34dcb70e8d91e1043b47dafb4cecbdd06a7b54b134c27b56b2a0d07fcbb52284ea09544463a075686 EBUILD vanilla-kernel-5.15.167.ebuild 3884 BLAKE2B 22c4512e55f664facf50f13c352917b7282ae0e471357a7aad9cc662752f6a7050c469d32d89a3c45204b0e93ffef5b972b502710552753c3b7f8b162e0846c4 SHA512 48529a915db79aa35900e89becc0df56b9a06d7278e271902d19dd92a293bf320df9b999beb3ca76688a7876a39491f658e0313e9b8c50b7e85adae8f3580494 EBUILD vanilla-kernel-5.15.9999.ebuild 3276 BLAKE2B e7eb0895a0bb3b3b4221bfe8d31af6d2027092971fdab0fef70bedea14e3198db8bef6e72728984a815421fdeecb60ef8ce7d002ba7b22960d42ae6abb6464cb SHA512 83acb727dcdbaa9d051ac2ff028a181445a82d3936580a6c02fb6f3d873da841f34b2a82f5ab1cb5278f74469202c8c77811707b064dbb8e371d7c81676b6578 EBUILD vanilla-kernel-6.1.110.ebuild 3884 BLAKE2B 22c4512e55f664facf50f13c352917b7282ae0e471357a7aad9cc662752f6a7050c469d32d89a3c45204b0e93ffef5b972b502710552753c3b7f8b162e0846c4 SHA512 48529a915db79aa35900e89becc0df56b9a06d7278e271902d19dd92a293bf320df9b999beb3ca76688a7876a39491f658e0313e9b8c50b7e85adae8f3580494 EBUILD vanilla-kernel-6.1.111.ebuild 3884 BLAKE2B 22c4512e55f664facf50f13c352917b7282ae0e471357a7aad9cc662752f6a7050c469d32d89a3c45204b0e93ffef5b972b502710552753c3b7f8b162e0846c4 SHA512 48529a915db79aa35900e89becc0df56b9a06d7278e271902d19dd92a293bf320df9b999beb3ca76688a7876a39491f658e0313e9b8c50b7e85adae8f3580494 +EBUILD vanilla-kernel-6.1.112.ebuild 3884 BLAKE2B 22c4512e55f664facf50f13c352917b7282ae0e471357a7aad9cc662752f6a7050c469d32d89a3c45204b0e93ffef5b972b502710552753c3b7f8b162e0846c4 SHA512 48529a915db79aa35900e89becc0df56b9a06d7278e271902d19dd92a293bf320df9b999beb3ca76688a7876a39491f658e0313e9b8c50b7e85adae8f3580494 EBUILD vanilla-kernel-6.10.11.ebuild 4002 BLAKE2B 29f8100e097f6bdbd1774976269cb2a8c03d65430f25a603357b876d0f255bdcbc522f95565b5e60e389515f61f855c12f93f3db7ba0c8f21c70d06f41b9bb1c SHA512 0ca779de97d3e18195a6f4f7650d8dd22f1e8b1799d96bf72a2fd71c7cd16c0ba985b70da26f684915b12b817ed2c0b3ebf2fe805c5299d2949a371c935c35dd +EBUILD vanilla-kernel-6.10.12.ebuild 4002 BLAKE2B 29f8100e097f6bdbd1774976269cb2a8c03d65430f25a603357b876d0f255bdcbc522f95565b5e60e389515f61f855c12f93f3db7ba0c8f21c70d06f41b9bb1c SHA512 0ca779de97d3e18195a6f4f7650d8dd22f1e8b1799d96bf72a2fd71c7cd16c0ba985b70da26f684915b12b817ed2c0b3ebf2fe805c5299d2949a371c935c35dd EBUILD vanilla-kernel-6.6.51.ebuild 4002 BLAKE2B feed5fe4d2c0e67d41eb206fb6b6c730696ecc6e7005a091c601439e6bd049f02f4f3eaa5e0d4384f20d2be7eba3f0284f311c1c05d70cdd2fc276966102ec87 SHA512 350031bd437db0389713c56c31aaa3004a96b0b7929af09320126766dc26c7437caa441fee5d773ac6bcde6602d027302fa6e22c3c0dd98f38164a9716476724 EBUILD vanilla-kernel-6.6.52.ebuild 4002 BLAKE2B feed5fe4d2c0e67d41eb206fb6b6c730696ecc6e7005a091c601439e6bd049f02f4f3eaa5e0d4384f20d2be7eba3f0284f311c1c05d70cdd2fc276966102ec87 SHA512 350031bd437db0389713c56c31aaa3004a96b0b7929af09320126766dc26c7437caa441fee5d773ac6bcde6602d027302fa6e22c3c0dd98f38164a9716476724 +EBUILD vanilla-kernel-6.6.53.ebuild 4002 BLAKE2B feed5fe4d2c0e67d41eb206fb6b6c730696ecc6e7005a091c601439e6bd049f02f4f3eaa5e0d4384f20d2be7eba3f0284f311c1c05d70cdd2fc276966102ec87 SHA512 350031bd437db0389713c56c31aaa3004a96b0b7929af09320126766dc26c7437caa441fee5d773ac6bcde6602d027302fa6e22c3c0dd98f38164a9716476724 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.112.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.112.ebuild new file mode 100644 index 000000000000..a680c8f10f19 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.112.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=g13 + +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.10.12.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.10.12.ebuild new file mode 100644 index 000000000000..8b28adae0b64 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.10.12.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.10.1-gentoo +GENTOO_CONFIG_VER=g13 + +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.53.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.53.ebuild new file mode 100644 index 000000000000..6ffb176dab80 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.53.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=g13 + +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[@]}" +} |