diff options
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-5.4.234.ebuild | 111 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.1.15.ebuild | 137 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.2.2.ebuild | 137 |
4 files changed, 394 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 159242909ae6..17d287087022 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -46,14 +46,20 @@ DIST linux-5.4.232.tar.sign 991 BLAKE2B 0b5a5c61858195a6a51169a48a0ddf533c28e8ce DIST linux-5.4.232.tar.xz 112999736 BLAKE2B 238a66be2dad1dc754418fbcfbcadd74c57c4915d727b6f679dd88e5f90645f35a9c66f47fb7ee16a661b6a9575d5ac903a6b44c8ed697d2378a98c9d1a83f3d SHA512 7d4339f7db5845e9bb3dc440adc90c23b8f63f5166c19fc143979b9dc84551649c275a8ee815792818b6c20bac17349c0802e8037a74e6fcb30693cb27f94439 DIST linux-5.4.233.tar.sign 991 BLAKE2B c664e65c6e12b72ea34e3f5522dd29e3bf7227ad93a8c3b682b6192230aac97603a40cad145913041ab8afc45b9c2d211bcccbd4b705546cbb10916eb99d8395 SHA512 dc32b18222dfd6c089e3e6a60ede4a79396e3664ed1108dddd9fae00e6dc31300bc8e0869995298c3243b2296a00c153268bb43b14571a28c80995512d7aef43 DIST linux-5.4.233.tar.xz 112992216 BLAKE2B 8d629328a88f0eff4332a8e5c21305bdc4166b440986be953ce227e3c356dc470e47c7d720a598666b5ee824332fee35ff55cf35992f7ca4e37b2010e6105536 SHA512 76257b8077b85308c82850cb9a902659af9b554e37a61919ab74e60adf9b813bf2bee55cbb3ee4727cdc4eb192ba6f7b36efe06a689236235bf37d7d67029b4c +DIST linux-5.4.234.tar.sign 991 BLAKE2B 7de2660c6fe2001fc0c3b0f0c938c1490089f145c984d50b1cbfd338ca11dc96af07bedbcbe29f52295f6fa77f8c3ff29df3b596322296d4603b154e04d82b23 SHA512 db7c748faaeb976adcd86625f453b35fc2d71c5cccaac0e08bce60d069a669a2cbe8954e7423ad3dca3d0c2a116fdec07f08284af75eea01ccac98d6642275f8 +DIST linux-5.4.234.tar.xz 113019048 BLAKE2B 93efb145f53e9072c63169637361bfa74e40de999300f27a684cbaa23678f61593edf06b46a1d03c84d1881489b560c436827589ab04bdf92dadbd51c77dae87 SHA512 58684c5106b1fc6d50bb2297d7d6894babe79addc055e5e4c78805bd4da88e01f8751b64e4c410f60827d2562494fb333fb609e251264aa91e37d25f89e65559 DIST linux-6.1.12.tar.sign 989 BLAKE2B b55e15679dbf0a29dcd5ece9cb68fb2123132818810fd03492a6d8fc5556814bfc8604b38a25dd0b71acc4ea8f515ce60d36d6e24eb944fa8a48bc851b2c25f3 SHA512 7459ad3491bfcb2dccfde4a929da7b78e842dd34e0230ba49da152891b5157dcd54cf84696988da560cc918852b1d59b76f7184d39e7c444385e20266aed8b05 DIST linux-6.1.12.tar.xz 134848688 BLAKE2B 1ff8d14fa1544a9d613fe372073e6735cc9444383e598a1c6a546177e1a9516b7f5a0d16aac4fc141fef134ffe14a0e40ab5db4200c11c953fec7f70a7bc9079 SHA512 e870aa9038f0508c50af5329721a5649c3537deb333d18f006bbf6d3c310b64262630eed5682022b7eceece9ef0956d2c110555cc9257591b7a221d063976735 DIST linux-6.1.13.tar.sign 989 BLAKE2B 6a59d32b2782eae32371c306b251d30e79c4123d53ff7587a8a02ef4b3f1b46749609561c885a6c530ee83c5b22cb9ca816e14b767790e2a25ae0e4e9fb11b5e SHA512 63c6c8af47b6c08890553e8a8292fa423be470d00322d046cc5f104ade9fedeb17f74a606ce230aca053795f720d08fe102530897b53d81004bc4d34a1497aa4 DIST linux-6.1.13.tar.xz 134802392 BLAKE2B b47d283374b71388c4795e9f9731f6a2739bb5f34759320338b22ce439d563398e9a9628df18c5ef488c6bd5ccc7a8749313aecb4191365e6ea012781119b4ad SHA512 33acc343d5cf8728f737935580d8ad9acca192770e94dc8fa9877f78193fd2d3ea1a1f3a2e0a2850a418b5699c9d2e7a4b1bf962186f464a5fd56b773dfe5f73 DIST linux-6.1.14.tar.sign 989 BLAKE2B f42ab20b9e6f0c2bf0168af954d3a6a935b81964f2745d36d9f9a105929e8cedcf95131f821c02516877a7e862d9836385a5d1bcaa6f725e869a4a358b56f102 SHA512 29a769a9e2c6be9a0384b19d64f6a3d1a6a494051de82cc37513cbbf6f076ed5bb8cac8d25466d3383674633282e234815f6b419b546708cdbb152f27de1e420 DIST linux-6.1.14.tar.xz 134814408 BLAKE2B 9ad53bc025283b6ba1d426d7f24deff809c041ace336ce696266c81c832370da3590d99d8669c54aed509ae3fbdc8ffe97a8b4f2ab5fcc3dcaf44f0d32d33827 SHA512 55f57edf9cbb1076f887f061898639b6a977c1a5f80e0bee1d4d2aed22a7831609eb13cab3f5653802f1a97333976e409db18d0757b98979e3df632b576f991e +DIST linux-6.1.15.tar.sign 989 BLAKE2B b7232f040bc4be3d24223aff245306571b8e63243e11acb99ea95644d490598bccc02e6abe84be7007f074178b9c10fbcc87f2238f25b07ae7e091b502fe18e4 SHA512 a3212cc8b1fae98508caf16b783e6408d0abeb7b903157285fc65f49297d5f68cd0555376cee85fc50afa5ffe03330cf86055280fa948903a047f7416448182a +DIST linux-6.1.15.tar.xz 134854068 BLAKE2B 3481d756a4daee96f732388a93d7423a784ddd573a0ee973e2e6d44ddc0ba5bb6ab84279c117c3ef6b2b086ccb6128bcd025286180848e89411d03e2e9797bc7 SHA512 0f98aee21ba902254881317148a78dcc3bc2dc3b6a8651bc0c35e8d63850ed1a9ac4271d5f74ed0ec110c219c80674d26abf9ffdd2631278cf1c7c85d6cc209e DIST linux-6.2.1.tar.sign 987 BLAKE2B 37c7a969bbdf12b86b72c245e632e0990154e4ae57ab35da8c3efa5e092d42ba758a88739b5628775635eb0f9e8e7b007111bf63426adc0ee0ade2d1a2f984bf SHA512 70c4ee9c0a39127e0893fa639e65488d11f8f9f342de76259f28ab709842860165a200d8ba986de627628f4689bd10b1e0c95a17db9e2c909e4d4ad2aa99297c DIST linux-6.2.1.tar.xz 136445896 BLAKE2B 72c221e68c6bfb19b49c15c491c2ec35db045c730487e409186819620b65b605046a03df8e0c173141d1893ecf7408576b266fe1b33baa72cd44aa26458da562 SHA512 79d3465955dd557dc599fa1c18c7a68699f4febdd7264fe4e223c694e879ef5bb65fff9fad1ec5599f894ad6519bad292efbd5b9990dac3223d843f5c22c65f2 +DIST linux-6.2.2.tar.sign 987 BLAKE2B ee5dae47aab443841f6073b2da066ec7cb625059ed1f300c623a1d38df995055ca84a0ae4d4215826de467a3355bccc3ab9a26bc228aec4f7f0a4b2d9cc92171 SHA512 42b166f3e5a5a3d6507a1bf7c7a8801cc8f3d7f663e3580847014cb404b7043cbe395f29528a482d70514ebc55db69105303b369ca12dfd7add2fd3125ecd6e1 +DIST linux-6.2.2.tar.xz 136431916 BLAKE2B 7f0ace4eb3f3dbba6104adf1b64682ce3d76e96a33cd0500f9943c150b5aa17c9e25690615f9ab0bdabe33c3e13548d9cd9f1f3faecd0369554f2cb5982c44aa SHA512 749df066dee0c3e003db47f66be692f12fe57bfa06b90d68394685961764a98a299a08f20587a24cb254fe4881f4849415e47b391d824b35ded2fb67c14ed3e6 EBUILD vanilla-kernel-5.10.167.ebuild 3776 BLAKE2B f17a71ce2af16261001d766fb6e9d280a9939bebe3d6df50dde64a04b662f43df2df41ff222d903fafd58ab981122103fb6020771eb82a4615fb532a8ad0dc5d SHA512 5a7d0ce4b2b601a6c1a891b09376d81a84d518f7faa387f68ffa707a916b7d325aa11424781e32042b392598bae5c99f718c408aeb96270f8256e287a8305d33 EBUILD vanilla-kernel-5.10.168.ebuild 3776 BLAKE2B f17a71ce2af16261001d766fb6e9d280a9939bebe3d6df50dde64a04b662f43df2df41ff222d903fafd58ab981122103fb6020771eb82a4615fb532a8ad0dc5d SHA512 5a7d0ce4b2b601a6c1a891b09376d81a84d518f7faa387f68ffa707a916b7d325aa11424781e32042b392598bae5c99f718c408aeb96270f8256e287a8305d33 EBUILD vanilla-kernel-5.10.169.ebuild 3776 BLAKE2B f17a71ce2af16261001d766fb6e9d280a9939bebe3d6df50dde64a04b662f43df2df41ff222d903fafd58ab981122103fb6020771eb82a4615fb532a8ad0dc5d SHA512 5a7d0ce4b2b601a6c1a891b09376d81a84d518f7faa387f68ffa707a916b7d325aa11424781e32042b392598bae5c99f718c408aeb96270f8256e287a8305d33 @@ -67,9 +73,12 @@ EBUILD vanilla-kernel-5.19.9999.ebuild 3415 BLAKE2B fccd59b033a2c78ed80927aef1fb EBUILD vanilla-kernel-5.4.231.ebuild 3062 BLAKE2B 596abc4cc489a193e1e573661789ff36d8da65e7416caa52cd3d0b74d472b6079d9859f40fc346818147ad9f7d95337d42792567997c612ce1da164c9968c325 SHA512 2fa5be41becf64b346d2dc63a30f687394c2797079a4f5db5112f294d550e6590bcc202740de1afa40d259cee18a4731ecefd2ae4ef72a7be1fc8758bff7a8f8 EBUILD vanilla-kernel-5.4.232.ebuild 3062 BLAKE2B 596abc4cc489a193e1e573661789ff36d8da65e7416caa52cd3d0b74d472b6079d9859f40fc346818147ad9f7d95337d42792567997c612ce1da164c9968c325 SHA512 2fa5be41becf64b346d2dc63a30f687394c2797079a4f5db5112f294d550e6590bcc202740de1afa40d259cee18a4731ecefd2ae4ef72a7be1fc8758bff7a8f8 EBUILD vanilla-kernel-5.4.233.ebuild 3062 BLAKE2B 596abc4cc489a193e1e573661789ff36d8da65e7416caa52cd3d0b74d472b6079d9859f40fc346818147ad9f7d95337d42792567997c612ce1da164c9968c325 SHA512 2fa5be41becf64b346d2dc63a30f687394c2797079a4f5db5112f294d550e6590bcc202740de1afa40d259cee18a4731ecefd2ae4ef72a7be1fc8758bff7a8f8 +EBUILD vanilla-kernel-5.4.234.ebuild 3062 BLAKE2B 596abc4cc489a193e1e573661789ff36d8da65e7416caa52cd3d0b74d472b6079d9859f40fc346818147ad9f7d95337d42792567997c612ce1da164c9968c325 SHA512 2fa5be41becf64b346d2dc63a30f687394c2797079a4f5db5112f294d550e6590bcc202740de1afa40d259cee18a4731ecefd2ae4ef72a7be1fc8758bff7a8f8 EBUILD vanilla-kernel-5.4.9999.ebuild 2635 BLAKE2B 16aaff3ea21368478a85a6bb93cf79a1074e68a7510101586cf6d06d11884c99d474cb19fb47e46fa64b34397528e32719667e2895e01c946a5da3a842f2d7ea SHA512 dd115a18e6005ab5a7d22fde68c5866118e26cb3151dba2ceb8c96cd843a7992fad0edfab8adef57d58653871c6b59ad7fbc0371396ff5cc56ade469626d3019 EBUILD vanilla-kernel-6.1.12.ebuild 3894 BLAKE2B 33a0975c3412120cc5cef7d64e4c89e261676ea8b932f051cfae2b62c0c7e960b0c820a9af00e3ac8978630f103c88b2548a9dbfa9b8777b98fed45b5d993fb9 SHA512 abe01b978e9f4b6260856e13076367e2115845f13d017f8e85377dc6f3523561ab26824e785c7954bc71afd26a5577264c1e3d75e58cf3ff086252a5a9cb55f2 EBUILD vanilla-kernel-6.1.13.ebuild 3894 BLAKE2B 33a0975c3412120cc5cef7d64e4c89e261676ea8b932f051cfae2b62c0c7e960b0c820a9af00e3ac8978630f103c88b2548a9dbfa9b8777b98fed45b5d993fb9 SHA512 abe01b978e9f4b6260856e13076367e2115845f13d017f8e85377dc6f3523561ab26824e785c7954bc71afd26a5577264c1e3d75e58cf3ff086252a5a9cb55f2 EBUILD vanilla-kernel-6.1.14.ebuild 3894 BLAKE2B 33a0975c3412120cc5cef7d64e4c89e261676ea8b932f051cfae2b62c0c7e960b0c820a9af00e3ac8978630f103c88b2548a9dbfa9b8777b98fed45b5d993fb9 SHA512 abe01b978e9f4b6260856e13076367e2115845f13d017f8e85377dc6f3523561ab26824e785c7954bc71afd26a5577264c1e3d75e58cf3ff086252a5a9cb55f2 +EBUILD vanilla-kernel-6.1.15.ebuild 3894 BLAKE2B 33a0975c3412120cc5cef7d64e4c89e261676ea8b932f051cfae2b62c0c7e960b0c820a9af00e3ac8978630f103c88b2548a9dbfa9b8777b98fed45b5d993fb9 SHA512 abe01b978e9f4b6260856e13076367e2115845f13d017f8e85377dc6f3523561ab26824e785c7954bc71afd26a5577264c1e3d75e58cf3ff086252a5a9cb55f2 EBUILD vanilla-kernel-6.2.1.ebuild 3894 BLAKE2B 255c844fd54ae440e02ee41e09a1c7932bbf94039d733aea21cc6ce013a81448fbabdc12b842dc149109fa3a56d340f04fb3889140e48ad5df4b61ad923ce763 SHA512 04af9a4f274095bcfe414ade9c7836ec2d20acbe520b99643012eaa1960739b6b51d85cb0cd1226d12164cd3d5f944ff3f7ca1d606df8cc0768de4e1bb394cfa +EBUILD vanilla-kernel-6.2.2.ebuild 3894 BLAKE2B 255c844fd54ae440e02ee41e09a1c7932bbf94039d733aea21cc6ce013a81448fbabdc12b842dc149109fa3a56d340f04fb3889140e48ad5df4b61ad923ce763 SHA512 04af9a4f274095bcfe414ade9c7836ec2d20acbe520b99643012eaa1960739b6b51d85cb0cd1226d12164cd3d5f944ff3f7ca1d606df8cc0768de4e1bb394cfa MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.234.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.234.ebuild new file mode 100644 index 000000000000..0e9fbe2eb0d3 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.234.ebuild @@ -0,0 +1,111 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build verify-sig + +MY_P=linux-${PV} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=g6 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +HOMEPAGE=" + https://wiki.gentoo.org/wiki/Project:Distribution_Kernel + https://www.kernel.org/ +" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign + ) + amd64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config + -> kernel-x86_64.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config + -> kernel-aarch64.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config + -> kernel-ppc64le.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config + -> kernel-i686.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86" +IUSE="debug" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( sec-keys/openpgp-keys-kernel ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/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 + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die + ;; + 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.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + echo 'CONFIG_LOCALVERSION="-dist"' > "${T}"/version.config || die + local merge_configs=( + "${T}"/version.config + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config + ) + use debug || merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config + ) + [[ ${ARCH} == x86 ]] && merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.15.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.15.ebuild new file mode 100644 index 000000000000..ab59a222a25e --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.15.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2023 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=g6 + +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=${BROOT}/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.2.2.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.2.ebuild new file mode 100644 index 000000000000..750a7d7f1f80 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.2.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2023 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.2.0-gentoo +GENTOO_CONFIG_VER=g7 + +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=${BROOT}/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[@]}" +} |