diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-13 11:06:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-13 11:06:03 +0100 |
commit | be8708090362c01c6111c4b76f1e395c14d86e00 (patch) | |
tree | bb61ca73e867522450783849eb63c9e1f0ba1730 /sys-kernel/vanilla-kernel | |
parent | e93a38d535f2c29b55a5756d2de99425986b0bf3 (diff) |
gentoo auto-resync : 13:08:2024 - 11:06:03
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.104.ebuild | 137 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.10.4.ebuild | 143 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.6.45.ebuild | 143 |
4 files changed, 432 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 6916ab7d1ad0..64ef3fc7cc38 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -38,16 +38,22 @@ DIST linux-6.1.102.tar.sign 991 BLAKE2B e5e40dd707a9ecd9642c81abdea16e0e15c069dd DIST linux-6.1.102.tar.xz 135151884 BLAKE2B aa33c053b3d868a626ec472d4e8062b49490f13e5c57996153641308e8a4a672e2c3fc42e187ffe89436cd2af6fcda9bfe1b513e2484a2a33319f8ee38d19452 SHA512 10b8a0a69750b5d9f7fa8a735707ef552da6224830847b1edd7e2641db16857684ae19c4d18a6bfb5fa45ce985d420c35fb8866ce80eaa5b86e77a9629440ef9 DIST linux-6.1.103.tar.sign 991 BLAKE2B 0afb5ad0fab7340ede83ffcf97ac683a2b3c35942bbbbb1b3f5955b934556a42ced663dc22a4882780c8aaa988652a82cdbbe3d0b75b58446c2e3870339c4b26 SHA512 c0381f7dfe44c635a1a72e1b3ebf7e820d8d08ad76984deae70adcfec773b2781381a1dda92564ca59217ad75d15489026784f75897188bf42f1ee214606ec0d DIST linux-6.1.103.tar.xz 135175280 BLAKE2B 64a4ebe7fe9f3490cdcf7801e708b04d1996a94fcd26f257c06eb156f0077723882bb2e43aa5f63b1cb3497d9beb0334e4ea7c7f73cae81a6b7c1a92da0ae504 SHA512 a6199b000e44be97f51f4c83dee93659caabd6d2e4cb3f20d4f5fb9a46119236a4df2fa6dbe3246bbb8994eac967384cf315d9db8dc7f05309e36c33636984c0 +DIST linux-6.1.104.tar.sign 991 BLAKE2B fb727b2dba92f5b1aafd4af795a79493f550c2c8a60239802435c555ddbda8245db079c1667895de652a476b46c043b12b8cc6b0f92e9c81f508e39841cf2f5e SHA512 ae912a70f2a4a4e9dfea4d75e66b441622792559173cf7f9362fe7af75d56af0d10c375849bf86e3a1f14b400d4f3cd4a42767e7536f054495a9d506da7050ac +DIST linux-6.1.104.tar.xz 135163604 BLAKE2B b32e902873f3a502c8a3dd889503015072957381debbb76c1f1334f41b507ad323d3d42d2184457fdbee1684b185a15918333cc40469f39b9ec014fcae821378 SHA512 c2dd7b34315081dc27772eb7b97581df2702894f075f72273e10277af78376c977335c7634120722b1b8b8808049aeb657392645ce71962aea15d41ceff5f14f DIST linux-6.10.2.tar.sign 989 BLAKE2B a49737993f3a525dc2963bf11bc96b7396ea753a0dc60d8d9cd53150706d027c6eafea5cb3edc615963fce0cadc56d0431668b20d1ac12192264e34225b0084e SHA512 9fe19c7dfd8ee31e7561cf21c03422c05f73223706631a5ee1cdcb02dc417d11ef0374b9ea22fd263cb3f6e01fa2a63782fb6f54d722a624a5e3320545196576 DIST linux-6.10.2.tar.xz 145157612 BLAKE2B ab1d2e79a1bb8a9b78ab5b1af93db7ef356cb5e14bba1121bbd3ae06b9589c8bfc32bab373acdd0ecf965ac132130e7eb34e70b35a9df1bd85b49dab97e2c02a SHA512 1c121e3c9c8402ec46581b38c736630d25297dc3e981cb69d47b95e2cd3204cd93c6c15c02b81fc53d62c49ded462ab6a0bb4d94b506ec0f9c366e47a1c92606 DIST linux-6.10.3.tar.sign 989 BLAKE2B 282a13b4d56e95df1432ea82294380dd019fe9faedd799201b6d43611b20cdaf673dfef4db77bd533106f44c4cc07eb293bc489ac7bce48f9a8da84cc47e7df0 SHA512 2fa43f6294818a12a88d6f018237c63968ded3f1dfa88be45ae0f7fb4cf456208f2027a7341bd4378cea0fec04ea0a3d80a4f8f89e7b3c1f3ecd0f0b88aff588 DIST linux-6.10.3.tar.xz 145125004 BLAKE2B e114bbaea91d03efa318f5a85c11e28257defa5f0c8467d3a5d467a7985bdfd7c23a5f54856c85afe800c32694f382df9b147484a3aa85e1e3f4efefbd80b564 SHA512 dd6061c5871d7b313e1b0eec791444b911f9d9d5e28b1d7a81a265708688808c157adfba92459511e9b786d09e3f96f5bc3c03980360061344ad8e225e165f6a +DIST linux-6.10.4.tar.sign 989 BLAKE2B 7a1d7c20d5d93c73eef54d54a17eb739e85d2bae6a16154c922d1bb0058bb45f46ca50532125fe3172bd15cd736c5ab1a6500f16b61cd3675e206c678e79539f SHA512 2ae08f074a16696a1162caa821a38e4290f5aa466672c036da606e84932664e11023b78d4f184686d04dc205dd7e532dd95461c6d8e9ccb52cb7734644b68f2e +DIST linux-6.10.4.tar.xz 145115632 BLAKE2B ea7e9a7d74621a6e76b2828ee80cf5df1fcf139469bb8877d93f30d7766f9145961324de5b2cadba29126d7df82a7eeba80303c82c7c1140be3fb46cf213e503 SHA512 fb96ca6b4131152cc7b86e27f5412ca16a8a37fbb79ca04d3997164fea587e03d8659612b3ba7029591a94f957f89bec6449c54c12bb000a818ada541106638f DIST linux-6.6.41.tar.sign 989 BLAKE2B 91e81c3582abc1124f618d89cd68bd32b1372a3a54511b9f60159c0282fee1dd12422beb3bfe04c2d74cd0901a39dc3dda34e4f34269af2fa8d4f3603e373345 SHA512 3c1a498443999bda491832d6fe842a3ce83c65fcd9ee1fcc24beeaa273fe6dac0e0949151595ee02e04b62a904c6d0f3b1c972d41e01f58e0e2ce99bff4359cb DIST linux-6.6.41.tar.xz 140257040 BLAKE2B d71b2a108a600aba232d2cce9df0f8d0bd6408427be31e5185fd3dcbab36a847bc497eea6237974f76f6386d3e0dd216cd7ea3d2a9dc660bc5460042f1ab7328 SHA512 d623e13d482683c47b1e00e346658928597522b45fca94b6713e75dbd57deca92cf6b1189ddaadb7b37a04e509ff713eecc76f5a818f241e328635f77f09f504 DIST linux-6.6.43.tar.sign 989 BLAKE2B 877809199e96598c321932c142aca616713e3b15ea9c05bc12ea9656fd38b753248b5d32325d4007b0f0dea8973a4f13e977b2caeb86b8ffe079428ac79867d4 SHA512 edd688351805d19a8527f5f7bce8065c05421dff60bbed22babc296c06fc13d570b0261d6abe1ff82b6c8d71f10d1856c44c47c6cb5d453309465d570927b40b DIST linux-6.6.43.tar.xz 140281980 BLAKE2B a3725c336374b173a1f4ba03ee2cc2772e5f1276dd065df039b561d2a88a9bb5c552539f699168a0967613d94f2d4461e0944d2d8141f22b4ee04d660728f241 SHA512 013027b921184cf7fee360e930472689c0ad202e06b4ddcc2b3207f52ea6244890d9ed267ffe5590335501318dd8386c873f038de875a70d637a58f1a405a55a DIST linux-6.6.44.tar.sign 989 BLAKE2B 58ca0b79641a39af5b02e989904ede39fb18f14bbf55374b98fe01839eb3d4ec3572a8661c7c6999cbc79ebd6a88547ce8c25d59ba4b835d371c62d2365575e7 SHA512 c546f1101c58683f278cb9fd683faf195ed6b1a95be917d8058d5c7a7a4506538b2c03bd618b9dca796bee0bcc42035ae98e91311f96f6160e6460b38ea68b87 DIST linux-6.6.44.tar.xz 140323036 BLAKE2B 52c7e474021f4288175477b613e04490471fc365809c48f25effe7a625db61e3599dc8c46036b250d0ff25c990eb9d9591f59f07a81ff73c83df81ccce751250 SHA512 75ea5973af1d9994c5bc7d4538a314100ffb9daf40c98cbd7eb4f409ceb5d007abc257cd7017221817f2a8d8f097558e7498a90b88ec2f3b4a611eda8b794fb4 +DIST linux-6.6.45.tar.sign 989 BLAKE2B a03525d56767d3393b9e04bfdb58e956a9348205f73bb992686ec8fe9ef391b7ead04e6e6c3f6329d9af6f2142e023d91205e2d91c8bd8f1a3b2d8c5a3904169 SHA512 63ec6aa68f1e4a4c8ffc463442538c4f3be575160fa959277175b8fbd3408809a0fdb45f5e183745e4ff5f4ecfefb698d3f99f7e421e672b1e7910273bcc8395 +DIST linux-6.6.45.tar.xz 140330280 BLAKE2B 18a088b694c7fee7e93b819bb31c30a2527f9298b33fa2ad1e60f18e4e2bd9ef86f46b5fb0c96db2bb78026c25a1411bb444b261e5ff2a95c6f8feb02f5625aa SHA512 1f70ad29581e92cb1979e0d50c2db3933c38d6c645f5f586794dab86cdf086166f63c5bec952f6bbc2ee7fe71ee75e16342b7581f9c530e5ac0af6b869f39ede EBUILD vanilla-kernel-5.10.222.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2 EBUILD vanilla-kernel-5.10.223.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2 EBUILD vanilla-kernel-5.10.9999.ebuild 3284 BLAKE2B f50697c5b5e8f0c1ecc80ce51f95cfe2bd7e4d1e7b81bfcbc5ca706378e9494b72c28a459ad2b39a09dbe8920fcd057fbe12a9df129246aedd6f56aa42baef79 SHA512 79e17fda3685dd651b8962857f131fb19c7e8082ffa2fd27df52891a4487786e5037b231f53850c22c325b76844d250bea8af9814b84b34cf046bcb3cdf6d7af @@ -57,10 +63,13 @@ EBUILD vanilla-kernel-5.15.9999.ebuild 3284 BLAKE2B a5d8cce04aa59b3e94740eb04045 EBUILD vanilla-kernel-6.1.100.ebuild 3887 BLAKE2B ba9fce000676de7081b59b6f52d6be9273e85475e7b79caa137e9eb6605dcf362b15beb45504adf8cd8c9b58797fd9f9eda43bf1c6aecb4483a2855d91fb0023 SHA512 0d1ae17d29f2b270070fd6234050c94c79b4552f56227178694c28403a01e7008f84eb84ed0f7fa79bc45f23dcc1048bb849c2d6986994b4e47e4fdb3e962e2f EBUILD vanilla-kernel-6.1.102.ebuild 3889 BLAKE2B dd1ea1a37355d7179b94964df184516b4a4da00da0166f92d4fec66574af75932f8c81d8118af6da611b3d23bc3999f938d26297225f2f459e7f947ac7e4b850 SHA512 39fbab46f7daacbdcc7a85b4f45ccd2cdc9ac7e34f5801e894e43973e2519e354263fb870b47603b9c5fee48503eff5f7511c66ce50683805e8b1e8f06e5e847 EBUILD vanilla-kernel-6.1.103.ebuild 3889 BLAKE2B dd1ea1a37355d7179b94964df184516b4a4da00da0166f92d4fec66574af75932f8c81d8118af6da611b3d23bc3999f938d26297225f2f459e7f947ac7e4b850 SHA512 39fbab46f7daacbdcc7a85b4f45ccd2cdc9ac7e34f5801e894e43973e2519e354263fb870b47603b9c5fee48503eff5f7511c66ce50683805e8b1e8f06e5e847 +EBUILD vanilla-kernel-6.1.104.ebuild 3889 BLAKE2B dd1ea1a37355d7179b94964df184516b4a4da00da0166f92d4fec66574af75932f8c81d8118af6da611b3d23bc3999f938d26297225f2f459e7f947ac7e4b850 SHA512 39fbab46f7daacbdcc7a85b4f45ccd2cdc9ac7e34f5801e894e43973e2519e354263fb870b47603b9c5fee48503eff5f7511c66ce50683805e8b1e8f06e5e847 EBUILD vanilla-kernel-6.10.2.ebuild 4024 BLAKE2B 730768585b588165760a7c5422a67ea9de262cf413d19db1417170d7f1949337662cdd1411791e02d1ca8180c898fe42f0f7dd90c0fb1770e32e9c5063730332 SHA512 c1336a7003737dce4a8e2e52987db2bf474aecaa86c9f484e0af57c6a22d22ce3e7af70dac0a78fa24e152c84bc42dbd52a61d1e11340ade275405e5aa3184bd EBUILD vanilla-kernel-6.10.3.ebuild 4024 BLAKE2B 730768585b588165760a7c5422a67ea9de262cf413d19db1417170d7f1949337662cdd1411791e02d1ca8180c898fe42f0f7dd90c0fb1770e32e9c5063730332 SHA512 c1336a7003737dce4a8e2e52987db2bf474aecaa86c9f484e0af57c6a22d22ce3e7af70dac0a78fa24e152c84bc42dbd52a61d1e11340ade275405e5aa3184bd +EBUILD vanilla-kernel-6.10.4.ebuild 4024 BLAKE2B 730768585b588165760a7c5422a67ea9de262cf413d19db1417170d7f1949337662cdd1411791e02d1ca8180c898fe42f0f7dd90c0fb1770e32e9c5063730332 SHA512 c1336a7003737dce4a8e2e52987db2bf474aecaa86c9f484e0af57c6a22d22ce3e7af70dac0a78fa24e152c84bc42dbd52a61d1e11340ade275405e5aa3184bd EBUILD vanilla-kernel-6.6.41.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc EBUILD vanilla-kernel-6.6.43.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc EBUILD vanilla-kernel-6.6.44.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc +EBUILD vanilla-kernel-6.6.45.ebuild 4024 BLAKE2B ef4f96d1617a17ca2fe7467f25642461493c52407ef9f5f366a5c92c5bf7d15f31d17e7419d1f79b37700b5979056c88f50544cad9f256b5bfb72808311bce4b SHA512 ce928951fa6de6096a71c8e9fb0244c470302443df384d256285cbc7fd672426eb587417f435e0a520d50d3f86191068f715546fb50034feeb08f3e32567a1bc EBUILD vanilla-kernel-6.6.9999.ebuild 3532 BLAKE2B 14690ff99ca00bbbfcb70d2484ef57cb24821b7d5d6bf0923895bb7b475b01b1e5810129b586831c607a7063cc8fa83fe4a7fa9fb71b91b7c10b24bf64282d04 SHA512 85ff2eb452281ced4d48946d094ca58a97d6d1467ed71ff8aac02c96079d0187a46da1b23e0c5c2213ff47de726fe8be060e888bf476d2e4e47c5f1686e8c805 MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.104.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.104.ebuild new file mode 100644 index 000000000000..7dcd0d3528a5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.104.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.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 -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.10.4.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.10.4.ebuild new file mode 100644 index 000000000000..fe28dad4c959 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.10.4.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.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 -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.6.45.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.45.ebuild new file mode 100644 index 000000000000..2de327030b51 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.45.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[@]}" +} |