diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-30 21:21:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-30 21:21:38 +0100 |
commit | 2f210c93c08515a806199783aabe37d12a0197cb (patch) | |
tree | 8b846898d136de0503e4ec3c2cf1f90660ee3336 /sys-kernel/gentoo-kernel | |
parent | 1c19f0d8d940b35f723e28d8a6ebe388cfacd1d8 (diff) |
gentoo auto-resync : 30:05:2023 - 21:21:38
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.10.181.ebuild | 134 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.4.244.ebuild | 103 |
3 files changed, 243 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 34d2d7cf8818..b2141d49d426 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-189.base.tar.xz 5251680 BLAKE2B ef349b00e1ca8cedc2b580a07e6 DIST genpatches-5.10-189.extras.tar.xz 3872 BLAKE2B 78ab95ce3f57e4ba86655cd54009252807e32fd0b03228180fb26a47ae9e595e468e549c21a5141dc8214e55fcfa46e63e5f4e866e4113b8d3beebb99512cb86 SHA512 cc6d60a70a1f575ce69a14c265a36e58126a011cafc5a2bc7c569e0d1b626855f1cf430c44775d2602ad35144b449a8f1db1da8594f513edae4329ba354e0347 DIST genpatches-5.10-190.base.tar.xz 5340156 BLAKE2B bff4b95cacad5f8c099b559091b9c103e6989940898910861b7f8c95e7a110a055ef09d1f3db6158ca58f7faae4880a04a626002be9edb856e4260fd7d1c165b SHA512 729e3c2b3d5d1a2e4c793d4c6424965a28b65b69d2c8b9675fb7f531ccb4018419ef77e46a089640f02521f4b230eaabcdef69adc161e0aae21ac9716f130b61 DIST genpatches-5.10-190.extras.tar.xz 3868 BLAKE2B 216298c7f06796d708bc78bca0606f918dde6254915c6f3732c36d6025054793dcdcb9bf986cd16b8a7cf505b0e2308256c898c5f3dc6eaf66819253e58eb445 SHA512 72fe6586ed405f2fa0737875bbac6d823f28c0260ad681135cdcd491376936d6494b92f7710a373bbb5ca2c4a4d744cc96bbb2a96872faeed9136cdd8c928e9b +DIST genpatches-5.10-191.base.tar.xz 5394880 BLAKE2B 604549d0789ee4ea8b965b4aec921d1c5839c601019f4facb1a697dfa983476eea807d0ab9b6a37db3baf883657cfe4c016c17771400886cf8e56c313659b2d6 SHA512 b43980108645bf01af0ef00bd96ba0ddeab16439d6e26badfedefdbf02a4f9459e40b5ee4c72a26052a04ba6756ee1f8cdfa403e408f4a308050e2c8168c3a48 +DIST genpatches-5.10-191.extras.tar.xz 3868 BLAKE2B b0c035f8e43faf78344a1f413c6030fe2001216bfc9381e402e3fee7edb3cf2798042a3a3d62db2b429f53d6a68b445fb25c9c0255bdbb85d5df00c6388584b1 SHA512 dc29b28784cb160ba0a24921986b905efd8d624902b00994829b99bd383551da0b1b4419ec8b91626b896cfb3997480a62fb9691b497b01f331db1450b09fbb6 DIST genpatches-5.15-116.base.tar.xz 4433124 BLAKE2B 1ace5f7ac7fe7dee5ca92c8228fa07f1abe85d92040adc0d2b83c2d5f55976c4ecfc0a3ed4575d5528db1eab14b65250d25d9fb28a880422385a45a887117820 SHA512 7346fe13050c49737f98e5ad7bdb848caf693b2e3129a7e9e382f1c6462242dcdae1fc7e184b10f7593159c7d6c3cd8bf69dd1d66abb604746871123424563f1 DIST genpatches-5.15-116.extras.tar.xz 3928 BLAKE2B 0130495424324f43fcb5f29b4178c56b43b01c4a7ca7a3b95ac07130f44d6875519d0ee79d9cf8a9912bd6c6d8bb81a0adcd17f27da1e59e24f19073d9a20cff SHA512 ece809c981c8d2c5ed7ec66df69dec3920cc75e7e43145c0ca5dbc577e16cc58880d449d8503d1863974fd2fb707a403b5a9b5ad02d9835e01c45637fd6bcfd7 DIST genpatches-5.15-117.base.tar.xz 4520724 BLAKE2B a495289b18d587d3a02d792644d09b63e0898c65dd88c23cb96983097bcc18ff6a06ea34427c7ea414ee8e93ccdb84d9963265b9bfd52eabd44d50a3b56ecb4f SHA512 218ef84108ce10983a85f3616ea3876dc616434e97add82e201758325c7f6bc3dce14273f86f5f1729c33a8fcae2111b241969ccdc53afcff775d7d683f2588a @@ -14,6 +16,8 @@ DIST genpatches-5.4-249.base.tar.xz 5692112 BLAKE2B 8057ddb24ebbd5ee1b4fb5f5a36b DIST genpatches-5.4-249.extras.tar.xz 1812 BLAKE2B b6b7bccf77851a17e8b514439a50c44de954ff461af71414c325ca5c0a65d7a79ee92f7a8b708afd28a3433acddd13aa3bbd5afcd82b4181e57ea05b008d7090 SHA512 c4977abc2bbb1c2319e9d2e4aed38419f9e2a70813e5f28d2b799533fc945574d9fee21c881b6dd4926a9c2ebe74ae414ada4993e3fcbd117b6536f983533282 DIST genpatches-5.4-250.base.tar.xz 5760352 BLAKE2B a0780e42391ad416839c34d85f079f11e9bf1579a293ea1bbdeb95e08e76d1d3f7956fcf9c83eb85223016bd4816d23c87e0b345bcb61b5076e5bbbd42024244 SHA512 8dd686658217cda074e0731c84d3e8c63bfa914b7e607eab28ab46c8cba647591fcd0a726108a08c826290e9edb01f29b6bd135af0991d818666a853764eb11d DIST genpatches-5.4-250.extras.tar.xz 1812 BLAKE2B 0240e10d23363cde222279e844bc26ef31228e01ca433879faa24d7171dd2c775c0274df9cbf5a6cc405fd89836d059fd978456c2fc57db17c50bd9eb0d69827 SHA512 0d673a62837950215bea4ede7bb38af7fbf09305c5ee2b4b37da83a9100076c40f5b185395640139a1e1015e4417078f66b4c316d0a023f844852d71f2b851a0 +DIST genpatches-5.4-251.base.tar.xz 5798892 BLAKE2B a519f23086a440d560e5301b77aa1a627e97d9c2545adddc6fdfe9b55b35dcbef285a6e92d4ab615b517177723875a53b6b5f1dc9c237dec3f23acb511e08be7 SHA512 c8d228cb18f2c64631ee5a40d7de58e78c7fd2c452f54101d0e6f67149d5d3df30076b461dada5bd862e4b97daf30a6d15c3f50526b46156d9ffca946b3c65d7 +DIST genpatches-5.4-251.extras.tar.xz 1812 BLAKE2B 440f5d63b80e31753c46c2c2bb07bfdd257cac6847dfaed63a19c9e255da0e6ca31f5535718572afa143918bbab9d8651b0d8462f5bce619866d78acbc063682 SHA512 54d1ea7625daff0c8d50f8abfba616378d8bc4c62cdfdc03648bec9312803464d0c662bfa619c357a73247c00b22b9725896cec5aaefc66ef811e0f97ff62e91 DIST genpatches-6.1-32.base.tar.xz 1474460 BLAKE2B 43060d16a84ca2c65ef9d7447747e6b857423134fd518e05c3c052bf5c664c9a0f8af97b84e7d911c84766cf478b71695537a3c56a367589bf37adaac032a7e0 SHA512 cf8bd867d09b68a197368c546ffa4c626b1c30f0f7a63138129d3abe8a0479c88717dff6ea0a79c53d7f108d2a1fedc433b7b2088e20f082be921701e5d7d790 DIST genpatches-6.1-32.extras.tar.xz 3808 BLAKE2B b697db5da31e471ab0af978e722c12ca2d8c5cc371f1d4c2d11c5816b34b479e6ac17f1cd9ab26826bacb065e0a254e18b767c9cfcc12fb16c40f9d73aa1e3d9 SHA512 9113f7505f8dd5a535e2550863dc8d69a6961fc4180d5a7b77206a397db570571f083e39f6be87da072b588e4a2d1b9c1e4b2a725172c9a799b3dc8e88542f66 DIST genpatches-6.1-33.base.tar.xz 1668040 BLAKE2B 60823b42a19d54af313039f75bbd4656414201e11b088c49c3d1c01405da82f9bb933ffbcaecd19a9d2b414553754733059b667f458c4d78fb0e4d46c02157b7 SHA512 2cd6755b1b01fc58a2a4f9a0b5c15c3e2ee5ac74bbf67c01ee4d543e6df30ee35f01bb23aab8e4b7fa0e36fbcb6cbf5e07bae6ab21010d12441d34ea802085fb @@ -59,12 +63,14 @@ DIST linux-6.2.tar.xz 136430892 BLAKE2B 05b63254734ea685db437cb1c00a6da63eee74d7 DIST linux-6.3.tar.xz 136891752 BLAKE2B f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69 SHA512 768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65 EBUILD gentoo-kernel-5.10.179-r2.ebuild 3660 BLAKE2B a00d551fbfc33807e966bc55b6a8cb7dbe25cf56214322127f33f63adc7695a1922f502d3d3de391357ca2e79a62bb4639f385f8a1f3afe144847f526e0d20cf SHA512 4b5eede3cccb9ff548323d4cf79b0659fce001ba69c02d24a99ddb9f072b6ab6eb960bf05edbd7397b16d38970304f885d98c9c9b3a35fe46546c309aa3cf33c EBUILD gentoo-kernel-5.10.180.ebuild 3664 BLAKE2B af024625d4014a5bf402702c3d2e637ee0eeeda12e7e2e21eee657fd019f7726256bcb2639d8872e68b49cca6eb55d39f8e6d42cbc262bc74f21bd5796228eca SHA512 e4189b5c983d2f6a194e903739cc024161f3e2f4ee40a24a29490931bbf1eba2ae622da022a8103f761c29afda7bdbeaace747903741205c13c6920c1ee9cbb4 +EBUILD gentoo-kernel-5.10.181.ebuild 3664 BLAKE2B af024625d4014a5bf402702c3d2e637ee0eeeda12e7e2e21eee657fd019f7726256bcb2639d8872e68b49cca6eb55d39f8e6d42cbc262bc74f21bd5796228eca SHA512 e4189b5c983d2f6a194e903739cc024161f3e2f4ee40a24a29490931bbf1eba2ae622da022a8103f761c29afda7bdbeaace747903741205c13c6920c1ee9cbb4 EBUILD gentoo-kernel-5.15.110-r2.ebuild 3656 BLAKE2B f28fc4c7aac5f5c4f20e0feb60082a589e06c40732771613b23d6e0768fe550f8e328a25e0b292bdd80b0ef50e51f85a66f509c8672615271c041bed2059932c SHA512 31784e64a5d7dedcc6ecee27b144778502b62e2afc7f5e27ae890dfe155171970081952d425fed6499750e84c68335a0317763db7a9d1f158e655d175f6ff9d7 EBUILD gentoo-kernel-5.15.111.ebuild 3660 BLAKE2B adfae469fe7d2bc99867375d81d6a157a24d79c6314c41330c9e5460890cfe06e22780d341950f4f2002cab2a72704eb6bbd33d25683e665078b5a47eba6d380 SHA512 b168699de4088c154047829cda497d6f51aec4b56aa1f3f6eb99fc04d01d14c080ae8c5a456cfb0891f5d9477d79be7b38dff28a7040d4e04067f43fd1b246f1 EBUILD gentoo-kernel-5.15.112.ebuild 3660 BLAKE2B adfae469fe7d2bc99867375d81d6a157a24d79c6314c41330c9e5460890cfe06e22780d341950f4f2002cab2a72704eb6bbd33d25683e665078b5a47eba6d380 SHA512 b168699de4088c154047829cda497d6f51aec4b56aa1f3f6eb99fc04d01d14c080ae8c5a456cfb0891f5d9477d79be7b38dff28a7040d4e04067f43fd1b246f1 EBUILD gentoo-kernel-5.15.113.ebuild 3660 BLAKE2B adfae469fe7d2bc99867375d81d6a157a24d79c6314c41330c9e5460890cfe06e22780d341950f4f2002cab2a72704eb6bbd33d25683e665078b5a47eba6d380 SHA512 b168699de4088c154047829cda497d6f51aec4b56aa1f3f6eb99fc04d01d14c080ae8c5a456cfb0891f5d9477d79be7b38dff28a7040d4e04067f43fd1b246f1 EBUILD gentoo-kernel-5.4.242-r2.ebuild 2860 BLAKE2B bc1812c00d3f6c58b51d0e9389055a6ca000db0fea5dbdbed392790fefce8a9abb2766c1083c3215c09453d89d6fe9889ffd62b1bf873ff69dfedce41badbf7f SHA512 96e28a4dc569a8d6ae0ea10710db9187a26a448640e76507414031b5ea16ee494a889cbb4a44b9f13cefc9c00d4066a46e8a0887f9fd5dabba5072605d283023 EBUILD gentoo-kernel-5.4.243.ebuild 2864 BLAKE2B 9c8cfab868459f96ae38c0be597633a33ca73abfbf3fbe6f7e970ebf02874e440b56da5acb8368f54f30b6788b9262952b88c946b36f38dfc11a9a8b54f36f73 SHA512 014eb31ea72d58680b6c5bcadb70439775b2946789ae1a9b478fa8d50355bc834dc09b4cf7357a9ef051b657f5e8bf84a73a839bcc2f86863ec6eec51f053253 +EBUILD gentoo-kernel-5.4.244.ebuild 2864 BLAKE2B 9c8cfab868459f96ae38c0be597633a33ca73abfbf3fbe6f7e970ebf02874e440b56da5acb8368f54f30b6788b9262952b88c946b36f38dfc11a9a8b54f36f73 SHA512 014eb31ea72d58680b6c5bcadb70439775b2946789ae1a9b478fa8d50355bc834dc09b4cf7357a9ef051b657f5e8bf84a73a839bcc2f86863ec6eec51f053253 EBUILD gentoo-kernel-6.1.27-r2.ebuild 3915 BLAKE2B cdeb40055499aa278517eff23df65612c7fb693dea99ca4351f95167a1175d3d9fab18c949cba669b3e4a400092290344333a8bcba90337da114aa164708ba9a SHA512 16fe59fb76315074103bac47e4dfd18274f09dac862381b521ab0d3c32c58cd11076404d59aab7d4351ab6786294c8c06a787b2e3a4f88c7d03c9eefac58effc EBUILD gentoo-kernel-6.1.28.ebuild 3919 BLAKE2B 94d646109f6ba20b49d1b536b60f864931c42a093a934c9a54d5bab61f84adf8d072a401c36e4f464125756d15373c159d835c8b64da9e68f364dd85360e13b1 SHA512 3e9d6bf7af0ee81645f3fa3410c6fdc5cd06876c952a77e3ae043634b15b3fd6370e83eef8f312a883df87d98dd9b228f7b4d30145b514cfa5037db0fbe6243e EBUILD gentoo-kernel-6.1.29.ebuild 3919 BLAKE2B 94d646109f6ba20b49d1b536b60f864931c42a093a934c9a54d5bab61f84adf8d072a401c36e4f464125756d15373c159d835c8b64da9e68f364dd85360e13b1 SHA512 3e9d6bf7af0ee81645f3fa3410c6fdc5cd06876c952a77e3ae043634b15b3fd6370e83eef8f312a883df87d98dd9b228f7b4d30145b514cfa5037db0fbe6243e diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.181.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.181.ebuild new file mode 100644 index 000000000000..91e1b5a2d288 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.181.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g7 + +DESCRIPTION="Linux kernel built with Gentoo patches" +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://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + amd64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/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 )" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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="-gentoo-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/gentoo-kernel/gentoo-kernel-5.4.244.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.244.ebuild new file mode 100644 index 000000000000..e8d62eeacffa --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.244.ebuild @@ -0,0 +1,103 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=g7 + +DESCRIPTION="Linux kernel built with Gentoo patches" +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://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + 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 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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="-gentoo-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[@]}" +} |