From 37bccfe5e76c5740c4ef5ba1179e9488d8404075 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Jul 2024 12:25:39 +0100 Subject: gentoo auto-resync : 12:07:2024 - 12:25:38 --- sys-kernel/vanilla-kernel/Manifest | 9 ++ .../vanilla-kernel/vanilla-kernel-6.1.98.ebuild | 137 ++++++++++++++++++++ .../vanilla-kernel/vanilla-kernel-6.6.39.ebuild | 143 +++++++++++++++++++++ .../vanilla-kernel/vanilla-kernel-6.9.9.ebuild | 143 +++++++++++++++++++++ 4 files changed, 432 insertions(+) create mode 100644 sys-kernel/vanilla-kernel/vanilla-kernel-6.1.98.ebuild create mode 100644 sys-kernel/vanilla-kernel/vanilla-kernel-6.6.39.ebuild create mode 100644 sys-kernel/vanilla-kernel/vanilla-kernel-6.9.9.ebuild (limited to 'sys-kernel/vanilla-kernel') diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 1c5a4a3cb9c3..768ffc54c83a 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -32,14 +32,20 @@ DIST linux-6.1.95.tar.sign 989 BLAKE2B abd402b54ac2dca9b1e6d7df1fd4db8690d584c13 DIST linux-6.1.95.tar.xz 135134536 BLAKE2B 3334f93a646017d22cac7374033acda5fd0df41de9d415d172a2c31f770d28ec16a388bc61d0577b53db4642bb31db472efd5ecee354a4b36e64a9c2df706604 SHA512 b6997281f9909483ed16a1b3998da6ad9f64c1c524db558663f17ed38987f42d8b1431de8c6ba354e30f7da2f8237b675fd4fa341d8218fcfaf2a5b9ac84b2d8 DIST linux-6.1.97.tar.sign 989 BLAKE2B 5314822c4096f8d3dfd37a680bd8c278b60cc086d7c2567912d81c6a27ff73c1cb7db42f7eec1049996a855593333b0dc7be882dd5713d2a30cad9da8c70b81e SHA512 5f37bf0f27faf0fa13219109b202f139b875155f6f4e938625aa8b67b6a7ddcbbbb3364638192739e78d08c621a47afa5eec7e0f67193eaae8b337611774d633 DIST linux-6.1.97.tar.xz 135133628 BLAKE2B 16cb37ecf36c188f8324ba71abfadd818b5209b6d957701babc9545f0f5455f50e90d6bb30213aef21b8a07011a11bb4293a436d92ad13adc3f0089e1ab13462 SHA512 0688fed5cfe71137fb4072e25cdcccd4d2105c54314b72b30de3716a595d0adf1e2a9867f96bcc12b49958b081d404dca35a36747dd924ac510b001da5217b43 +DIST linux-6.1.98.tar.sign 989 BLAKE2B be83fd5d7c323b69450992ca460af2a7f937297ad7bfd00d96afdd4fe87101c896f0dba21b863454331d0732c2ba33ff235b0d335a3145d5a7ebffb0f5b4dd90 SHA512 7745a5ecf35d5f7ae386a290ab5532ef1509e75454ccedcc064e66e53642a6e0f55daeb26c9fff97476d1187d3d1ecd736671c068203cc4531afdd81df666f10 +DIST linux-6.1.98.tar.xz 135161992 BLAKE2B 18f868d7578be707da10e86b4c74793656d53f133819c6c03355689f9480c47c6c46008f7d7ea55020cfe0e7808fc6a0240fc55ab4642573d619d174adfb57d9 SHA512 3d0670c347595993f615945cda4cedc589782d2c1c4b3be01dcb62c81428e7895c775cfcd10d0f64e9e4fa0e60638752edc07c0bfc78ae243f6e483ef2320436 DIST linux-6.6.35.tar.sign 989 BLAKE2B d5a5dfeb1e92c11107b71d6b2965d2a595e51fd3244abce72f9fdd0cd4405b562602695015e3cb8944f9ac0d999566c0007569b5141cb5f42d32458c20166f0a SHA512 dc98406c4b15a0e15623694e88b881cdbf082ae48f8e737d96bbeb1cec1c8ca6c9c5448b359447c6bfe34e8f1f6807efaa114dbe23097079e5046996134aad8c DIST linux-6.6.35.tar.xz 140269708 BLAKE2B 93fff6421875329ab7d7ad2f0a0d3d1377c1eb42df295638c967eced3551b08986445b5e47b9d3bd1b24f93d3feeed43b1aba77f6912dc13449d956be3616571 SHA512 a94a75eec75f43fcab56a425927eeb299ec8eb72a056b26e9c629ec66fc5b65badf0403612549dfd4bc01b620451924ec30b980403a47cf723e98ab57775b6d2 DIST linux-6.6.37.tar.sign 989 BLAKE2B bf4db9046bb721ea6020c967e67592fcd0c6fbc3b2675275d567181e901495115e2199d83a811a9f825b70b00cc977dba25a3e26556f2325903ca8a106731eb3 SHA512 df30b7a643b58093ef0fa8ba6da0c0c8254fcca72443da03702293b20e668ada73a2fbf37eed4b64fd1d5d243f106055b0dc6728bed577df31ffbe71eb1caf9f DIST linux-6.6.37.tar.xz 140257932 BLAKE2B 26cb9557f774b294c67f7562ecb69b4f8ed717bed59a2386385a814e18fdad48e05a94ed0c29290791f7494fa4cd0168f412bb463d69a8bad9ce71d7d7e5429e SHA512 04f7048d62b369bbe12d3a5c3f421834354a7eabf5a8819d22d9e7450d3b52d763c98a55c203f6d2a2b01163d1e5f95e52beea1280586e452fa6e7c22ac86f1a DIST linux-6.6.38.tar.sign 989 BLAKE2B 747f1b7bb8fda1a099f35c0c0dc3c169a086236d3ae288eb50ae915f22018a0760aa9c2f24b9bd9d38c924a9c2887fe5fef0ee8735beebab2d818588a2a0cdd4 SHA512 e79da8f3497a38afca1a431fe33da0362795408437ee66a565fe533802c2fc8debbcbbb9852900d81264861a9b4ed55e45f68515ddde051af885d811d3b622ab DIST linux-6.6.38.tar.xz 140247952 BLAKE2B 0aaea98cc6db13bdfd9515f43a1714f6c7297b71c1de3ea6b2e00a2dd9ede125c141aed4c09989096f4d3321144bc8ad03453357e08a9346f52198f4ddd14440 SHA512 744c6830594f9989daaf2f76ae70fec4ae09a50e21724696926185636b55c22c9a83c2e7ba3632b6e26cfcc3f2f800fa8b2cacae0c8288dcf79ce202dcfc7033 +DIST linux-6.6.39.tar.sign 989 BLAKE2B 95beab3aec919809a6185822ea669dff9a19b30d5a505a073058f617d5e07290bdc32865d002cef93ddc43b3b41293933a5119940642ce175a542840f23624e2 SHA512 9dc378231622ca586242a3d06b566711501e2a84271020b7b2b4d57beec05d63e1fa357828f5cca98a1d3f1c49e6119b97c6fc4bba3bb0982a1bdc7795215b6d +DIST linux-6.6.39.tar.xz 140291004 BLAKE2B 995aa17bbdc4a15499be6d9527b1df79ea72a8f8074526c06cad04ec7d4d94b7091ce3e1b87b5bbc7c27e9641b4fa1e13b2a7b19afb36f1768233021d26ea270 SHA512 fbf1e27f7fc68ac42dd2cb40f853a77d4b2aeaee0190beededd39d4251b206a0d2f6784b4b5aafbe21bae36669bb00e20235b15ba4dfe84231968334dc65e71c DIST linux-6.9.8.tar.sign 987 BLAKE2B bb81040fb2134eb33ff7f0f9d9d18e827d3828d53fffbccdcaecbb22edfef04309a2f42987220552422735af5a6f17aad603d7a5fd4c7dcb9ba2d3659fecfd8d SHA512 7de43543511a017a135c4b33fa511fbca060097da13be2a593f9b912b7388d9e3b025854ddb91518cb5e96bd77befe7ea86f5766db2515db7c39addb0409ad99 DIST linux-6.9.8.tar.xz 144093812 BLAKE2B 3c3874b053d7076564936f2053ef666733d329c402999aac736cf64418cb74e471cf9d7ae62e8fab49e4e916f196c5b8317aa243691b1d18119a25196108dd06 SHA512 e7616207a1f08100cbfd9a3cd08bb0ea6cfd474c3a4cb95b3bf738461b7a8ae128270ba1bbaf512ae9c0eb2a409fa0c1d79317ab6dec9ff317aa9019c86d0c62 +DIST linux-6.9.9.tar.sign 987 BLAKE2B a1430dbb6cfd6536c859f5c5fd682b2caf8e940c57ed3d55dc46d67d8851be61dc4215a249aef0b644478622725bd269f814f15f315a5a58a09fa93d20a48094 SHA512 55add916efb2bcc69c294b34a6690dc3b99c7d01f5e4bb53c91f421da4175bd8b7b3ff0df56096f5d6708bb06daf25aecb623364e555276845a38b6d4ffed248 +DIST linux-6.9.9.tar.xz 144131116 BLAKE2B a228397902894f566d49adef24e4d44271893173cf0c58e8eb6006137dfb870b5f3aea17cadc775988a0682ba4a5261ebd3f10689b6c096f762cc8af666c56ff SHA512 b6f08a8254f62e184489c2822ceaa4d0dd4ef73f4c08a8458bc8ab4fb6ffcdee5218798360b4f53b684f73590c531dea90c9e488e0a6afbabb4e32b642746332 EBUILD vanilla-kernel-5.10.220.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2 EBUILD vanilla-kernel-5.10.221.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2 EBUILD vanilla-kernel-5.10.9999.ebuild 3284 BLAKE2B f50697c5b5e8f0c1ecc80ce51f95cfe2bd7e4d1e7b81bfcbc5ca706378e9494b72c28a459ad2b39a09dbe8920fcd057fbe12a9df129246aedd6f56aa42baef79 SHA512 79e17fda3685dd651b8962857f131fb19c7e8082ffa2fd27df52891a4487786e5037b231f53850c22c325b76844d250bea8af9814b84b34cf046bcb3cdf6d7af @@ -48,10 +54,13 @@ EBUILD vanilla-kernel-5.15.162.ebuild 3769 BLAKE2B f8f161e4bb54334a52c39b61a89a2 EBUILD vanilla-kernel-5.15.9999.ebuild 3284 BLAKE2B a5d8cce04aa59b3e94740eb04045499d7cee17fad129208396d27b81899b7c1bcd71df080bae7c250c38451f220f5aeaee7187087de033419763f78e150e2e8e SHA512 1780ccc6cae8f8fc963054333bfa025d4b80c72d233386fa247c68c773a9080c45c0b9ea881f3ee5046d24f292bbd64b5912848654687dfab9c826a83e91bfae EBUILD vanilla-kernel-6.1.95.ebuild 3887 BLAKE2B ba9fce000676de7081b59b6f52d6be9273e85475e7b79caa137e9eb6605dcf362b15beb45504adf8cd8c9b58797fd9f9eda43bf1c6aecb4483a2855d91fb0023 SHA512 0d1ae17d29f2b270070fd6234050c94c79b4552f56227178694c28403a01e7008f84eb84ed0f7fa79bc45f23dcc1048bb849c2d6986994b4e47e4fdb3e962e2f EBUILD vanilla-kernel-6.1.97.ebuild 3887 BLAKE2B ba9fce000676de7081b59b6f52d6be9273e85475e7b79caa137e9eb6605dcf362b15beb45504adf8cd8c9b58797fd9f9eda43bf1c6aecb4483a2855d91fb0023 SHA512 0d1ae17d29f2b270070fd6234050c94c79b4552f56227178694c28403a01e7008f84eb84ed0f7fa79bc45f23dcc1048bb849c2d6986994b4e47e4fdb3e962e2f +EBUILD vanilla-kernel-6.1.98.ebuild 3887 BLAKE2B ba9fce000676de7081b59b6f52d6be9273e85475e7b79caa137e9eb6605dcf362b15beb45504adf8cd8c9b58797fd9f9eda43bf1c6aecb4483a2855d91fb0023 SHA512 0d1ae17d29f2b270070fd6234050c94c79b4552f56227178694c28403a01e7008f84eb84ed0f7fa79bc45f23dcc1048bb849c2d6986994b4e47e4fdb3e962e2f EBUILD vanilla-kernel-6.1.9999.ebuild 3402 BLAKE2B 1c1395e8d35a4b0b32d5e80b72d7589de2c593ce057cc8fb03e04e72dcc440755c633a4c2f52d6d69d4f4245d543dbb559516b925dd929a122e7f4e5aa135782 SHA512 3cfaa7e5c1557904270706ec647ae07ddecb8f7b5cdb7380aa4a97a44e61e9362e12adfea0bfe95998cf0bdc35bd3f62450e12ba18c5b0d1cfb1bd805f9ef56f EBUILD vanilla-kernel-6.6.35.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc EBUILD vanilla-kernel-6.6.37.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc EBUILD vanilla-kernel-6.6.38.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc +EBUILD vanilla-kernel-6.6.39.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc EBUILD vanilla-kernel-6.6.9999.ebuild 3532 BLAKE2B 14690ff99ca00bbbfcb70d2484ef57cb24821b7d5d6bf0923895bb7b475b01b1e5810129b586831c607a7063cc8fa83fe4a7fa9fb71b91b7c10b24bf64282d04 SHA512 85ff2eb452281ced4d48946d094ca58a97d6d1467ed71ff8aac02c96079d0187a46da1b23e0c5c2213ff47de726fe8be060e888bf476d2e4e47c5f1686e8c805 EBUILD vanilla-kernel-6.9.8.ebuild 4023 BLAKE2B 9aa7a8cda2244c2ba4f89793dd41c9f1ccb10b76012f545c4b6e4eec0809190ad6561296a85a3a18bc143f8c4bdd8de80ac144edbfb56e137da5ce0f689580ec SHA512 76491cab039635c8f144f37943788fd73af6df0b241996bfd060dede016155b6561870a1b7af36e76977555de7c3fd03755ff32ee932b540e704c7a774f17bea +EBUILD vanilla-kernel-6.9.9.ebuild 4023 BLAKE2B 9aa7a8cda2244c2ba4f89793dd41c9f1ccb10b76012f545c4b6e4eec0809190ad6561296a85a3a18bc143f8c4bdd8de80ac144edbfb56e137da5ce0f689580ec SHA512 76491cab039635c8f144f37943788fd73af6df0b241996bfd060dede016155b6561870a1b7af36e76977555de7c3fd03755ff32ee932b540e704c7a774f17bea MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.98.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.98.ebuild new file mode 100644 index 000000000000..2a01b55657d3 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.98.ebuild @@ -0,0 +1,137 @@ +# 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.7-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 -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[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.39.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.39.ebuild new file mode 100644 index 000000000000..2de327030b51 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.39.ebuild @@ -0,0 +1,143 @@ +# 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 -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 + ;; + loong) + 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 + + 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.9.9.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.9.ebuild new file mode 100644 index 000000000000..dd693350cdc8 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.9.ebuild @@ -0,0 +1,143 @@ +# 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.9.3-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 -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 + ;; + loong) + 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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} -- cgit v1.2.3