diff options
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.15.93.ebuild | 134 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-6.1.11.ebuild | 140 |
3 files changed, 280 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index de51fdb2f6a4..8c8c3624604c 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -18,6 +18,8 @@ DIST genpatches-5.15-95.base.tar.xz 3957200 BLAKE2B a910caf40f1ec10a922cd3cefb2e DIST genpatches-5.15-95.extras.tar.xz 3932 BLAKE2B 8a15b3053680594c780d8df8f1cb7597c3fd15b325edf8080b3fe499937bcb9ba4587b4d2f0c0f5e8074452439aa1d6f336c5d06936a94ec14fafa291b8823d0 SHA512 25546d9f6cc4ad788f08281589ee4cfd6844b3191354e3fab929a89f9e20b647ac03be765d76b42601bcb4c36241d70e50d90abd97aac80c6bcbff66af95e9ca DIST genpatches-5.15-96.base.tar.xz 3961872 BLAKE2B 832c573ea52eb7b49ea59d975d25af9044503bfed0595082873d09496b4bf4b558e97af812c244274488100fc87b3d2e3b9ba8b3fb023d3623173a13ca034925 SHA512 4577060888eeeffe76e67026b2f6cc1743dc7501c6f3606fa06805a97abc54c59324aecb74d4c2ed65433090c50f432c7a3167b61e84cfb168dfd09dac300c5d DIST genpatches-5.15-96.extras.tar.xz 3932 BLAKE2B 5c34f507f83f8138d3e9f7fea2fe0619e326ba602972a6d37f40847526b9f95e13c1ce2b097b277573dc9f0bdc1739d5eba6020817a1956fc80fdc7076d22a01 SHA512 dc17deb594c99c9ab4b0c4c2272630c1cc9d03a88e4a1b936f2ec11c5750cedc00a9320018cbc543d5844727760e6f56807cad9d7a8a7fc9b2cb605e8ca874c5 +DIST genpatches-5.15-97.base.tar.xz 3988428 BLAKE2B d894f115bdaab2011edabb77ca6391ad1cfd5029d9d86716bc71ee8df1f263c96df1e265cf4591e25fb7a870be40ac9b01ef4ee07a8715c5be900265044fb4a4 SHA512 7e8add203a762e34fcfa672a4af7862eb31044517c93d6ae68ee02e386251c31b514efc316c89a92413c9f0b2930767bb3b680cba90f48f125935445ec88f379 +DIST genpatches-5.15-97.extras.tar.xz 3928 BLAKE2B c542e8eee62f61a513a80ad48d92812bd3967ca18963fdddf95dfcc95dd337384ab79052671026da5dc00ad87a979fbb6944e1c3880c4ff6335b1f7a132b8180 SHA512 8557ab40bff3e625b2ecde506052f0d31cb13ee2e2a2d05d1ee30ab8877f774b01bb94e450421c92c9a9e5a46df893493ece1dd5dee798ce6e9eb880b49522cb DIST genpatches-5.4-233.base.tar.xz 5294692 BLAKE2B 357046687c6f2797d5d7090dad357e00675eed329ccef44223dd476551cf04e9f711f1020144cfc59796657cb5b1e6d76b607ecb164e27636869a8bc8984f567 SHA512 45f6b35dbca12e8b9e6a9f99d12c44e47a6e471e5091ab75c42346f1d8bc12dc454cbb335f1549b497842c2d9f13a5930c80b5000cb86bd3db7b03347dfebcf4 DIST genpatches-5.4-233.extras.tar.xz 1812 BLAKE2B abedf631da893391a98a98cf48d264f9eaf9f9f7811bf595c36a774c8dde21f105afaf6f4e113e04de472bd6ce0c759bd41fd95aa980b7e05499d8571f3e8a44 SHA512 16b09d0a4465123079360ef9f070e0c163f45f9784714e98fe53f7174e836fe7b2562af01e5c2dc932571bb3eafe2d9afedfd60b5c8467bd8410de651ab82473 DIST genpatches-5.4-234.base.tar.xz 5429360 BLAKE2B 48e1199775c5174a4e25f9611f410f8c3959920b3af6d4a5639497560f9a7ca34210c3f7db7c5e279432e1562956528690f5360dfeaaf7f99227f74d8e8d04c9 SHA512 c41fefd72aea785fb40ae95e47019d07c73bb4a07c286e732f7bbaa4b1cc3eca0dc53cf088387998ba1a9bb791e9e021d6246d8ceb9b87dc6d7fc6cbecc6dce9 @@ -32,6 +34,8 @@ DIST genpatches-6.1-11.base.tar.xz 672088 BLAKE2B 29cabedf32ea3f8cb1ca75bde23955 DIST genpatches-6.1-11.extras.tar.xz 3804 BLAKE2B 9ecd609350e0ad98aedd70e1bd6838fd2d933576dd2236bc111c13b46623adba926bb1547349a1e9e35f3e90e0ef0b29fdc10bd38e3c4c5aeb3cf92b2cef9ff6 SHA512 f8aa9ac57c51f229a8a940ca57b401ca7c5b46cf40cbc1ccb427b341082c2f52e5cd945c548b2fe809935ffb94d4c8275fa4011510239d38ae13b338d568253e DIST genpatches-6.1-12.base.tar.xz 678732 BLAKE2B acc67136abb35e0d9985bb55002467e9d29797bcd560306511a58093ef56f86251531e54ff615dc3fee71f99633dfc372ad7bbe5a1ec2ff03d9fc23be5de04a8 SHA512 83fb419934c6314dc700f5bc9eaadf1909fbbd45dbb0e86269d942ba7f18162cbacf0acaff705144c271eb29b57c3a8027af03a73485dc887f551c002033326c DIST genpatches-6.1-12.extras.tar.xz 3804 BLAKE2B 59da490e3869e0b9c715453837cdae6d40b67156c966166e4d6f809e115eb9f621668a46f2632bd5eed894cdacaa5e85d26a5ef0467f95fcdeb3da3f9319a1da SHA512 d62321a73145f6275753245cad5d55b06e5fac89c7c7ed613a376c21181644e88bda7d3f7ee6f54c686bb0e534f6fdba3fdef8c9bcb06f15117276253b3a7e36 +DIST genpatches-6.1-13.base.tar.xz 739612 BLAKE2B 733d2ae5d8da2f92ea2acb01ef40b5bb49e621d80c5f2602790a0bcda197a52ac998374979d20347e545a70b8b8737365b3d9c2850ff8b24543dcefb6ce17641 SHA512 0b5495622526072e8dc7d3e5d81071340a133857c9e13afd128495809cdc7787318c2215fd996131ef050472847f207b074f3a0eec26b0b4aa45df4ef51f6a4c +DIST genpatches-6.1-13.extras.tar.xz 3808 BLAKE2B 7781c242753f2bebd8f9bab0db85f38372b4b3d7111418f2ca6a027ac056eabfb2cc0f9da84d4befd6f3b5936d9424710e7e802e5c5e51ffddac3fb32505655a SHA512 175422ae5831f7aa07bad768809443da83af46bf2f256f7ea06bae0695899e47cb653f8bff2a3a9346e1b39680b318537e6c17f7851cdcdb8b7ca4f2ae380ca0 DIST genpatches-6.1-8.base.tar.xz 477364 BLAKE2B 29fa8d45feed6333883e1f4733ace6ed52b5424aeeada3e71917a0e3d85f87a7b99f0863ff468e678ee5631c6e0f0dd7c3a0115a58d80512ac1a27d58a2df149 SHA512 d1f32215ced0ed39cc1c6d224b1a12ae3f80bcc19f1ea23189e853367ebc661c74d17d335bd615c2fc1f3c21271f6f170a35caa38194b2dfd09f78e405739ae0 DIST genpatches-6.1-8.extras.tar.xz 3808 BLAKE2B af83b01895f1b3af4c0220a89b0dabc3642e578920475402c02dbe0300c520dbc621a2245eb66842addac48565c8b612198138c49491dca7909d594a9d2ef818 SHA512 22f9378bc7b4413d60672656c2e73bfbcc6debd10179a0eb2b523bceb5f3adeacecbd433ede3aa057143163a9cc2971d5023d73ac8187eaad59508dd229feba7 DIST genpatches-6.1-9.base.tar.xz 544936 BLAKE2B 9152c33c4145f99daff4f436afcb621883d21fb05be5821a045b47be2880250d3ccf1210f3ecec0241ac41f57581da737053b86852760cd11efc524719fd0f6b SHA512 88b6bd131dfe53a51a9a0dab13ef2bfaa4818d4b0ab93e485346f96fe58a64b7338d9aa4483c751d9d1886818ee8700918721037b03f868a3b2cd9d5ecdd7799 @@ -73,11 +77,13 @@ EBUILD gentoo-kernel-5.15.89.ebuild 3660 BLAKE2B 5b15f9354482b92ce358c31cb985e04 EBUILD gentoo-kernel-5.15.90.ebuild 3658 BLAKE2B 5e1d1e367bce7c5b6ac25b1d92a3558d95e4c95cdb084646a48a4c170f34f38eeb172c665002e1e9d5ccd9d9abc207464e7eb9c05247d581aeaab8bc4f7292a4 SHA512 e32673293bd711082f1819d9ea3c1ce6d2378feda81ae7654a555d62ce1119a0fdf46710a1299346028fab4b61b6dfa284548f68830bc47d252df1150bfb2cc8 EBUILD gentoo-kernel-5.15.91.ebuild 3658 BLAKE2B 5e1d1e367bce7c5b6ac25b1d92a3558d95e4c95cdb084646a48a4c170f34f38eeb172c665002e1e9d5ccd9d9abc207464e7eb9c05247d581aeaab8bc4f7292a4 SHA512 e32673293bd711082f1819d9ea3c1ce6d2378feda81ae7654a555d62ce1119a0fdf46710a1299346028fab4b61b6dfa284548f68830bc47d252df1150bfb2cc8 EBUILD gentoo-kernel-5.15.92.ebuild 3660 BLAKE2B 9be74faea9e4a9f9460b2b002c3e503de73c291c35e8cf116f7f668b4434fafb5a8bd449a264f7868183befa47afc959be4f5f0c3d79facee1d1789477e7f011 SHA512 8d6c5e4ac6e2595dde94dcd0d36c7176f8baf3f38f60beb08a76c14d7dadac4808a897d6184fdb9d68c00eb7bcd9e381588db588f1eef6d6ba79639b0542275c +EBUILD gentoo-kernel-5.15.93.ebuild 3660 BLAKE2B 9be74faea9e4a9f9460b2b002c3e503de73c291c35e8cf116f7f668b4434fafb5a8bd449a264f7868183befa47afc959be4f5f0c3d79facee1d1789477e7f011 SHA512 8d6c5e4ac6e2595dde94dcd0d36c7176f8baf3f38f60beb08a76c14d7dadac4808a897d6184fdb9d68c00eb7bcd9e381588db588f1eef6d6ba79639b0542275c EBUILD gentoo-kernel-5.4.228.ebuild 2858 BLAKE2B 59c9a19c0d24d510af0b363078cb91e03949f0ad86b6379c2b32f7dd3fdd3a31e0617b0ddece6b9ae979b2e32d885c5d06aa9e55c031539db1a040e1bada836d SHA512 f57b58558caf42c5ea24875c7317a5cab6b35901e87ccb40748c325ee852ff2ef11f694e2df660c24d4797b1dc97de72c62ad89cf7486e93825b892d1cae5f63 EBUILD gentoo-kernel-5.4.229.ebuild 2864 BLAKE2B f7ac44e77332c77849e66a999716b1ee8baaf590ed1c5e133cda9b05fd4f7b1f2b8a8b78df24ad4d5f91f6d7fde37b6dcf9053cfd8ce6b0668926260eb5161fc SHA512 ed67d153270218178ef99873bf68bdd10d90748bb4c7a9598e1ae04a9ef624b6831186cb193a00109f7347d84b7917ab39c1a850fd8c07762034af8f1c5ddcb2 EBUILD gentoo-kernel-5.4.230.ebuild 2862 BLAKE2B 183eb2543904e9af875d03d4123644a6e5a77be9204cdbfaecf5e6febeb2a54215f3f451b622cb073fa28cd52f6ea389f823cab17dc9d0a38ba722d7639edb54 SHA512 4368f10a32b2356a5eba9f908d7a2d6f7d085ac06a659b58cac663e6ab5a677b69b119db6146e9dba39f40646ceb4f1f8453687e815a11887c3bb3a737ed5dc6 EBUILD gentoo-kernel-5.4.231.ebuild 2864 BLAKE2B 60a4dc88918721e8fdc979c64138ec081c4da7e01dcb2f89ab24a7b0b24ffc764030ba4b21a0bc04869509bfd6fdda910e0eb31e0b74ab1f3b3b334926de7643 SHA512 b41db6de60eaaf6a8e6b4d930699bf6731f6430b11403660041a439c8f709ed63234c2986f2c82e18f34fa15fe973201871b58f90fea8cf2a96cea81bd354756 EBUILD gentoo-kernel-6.1.10.ebuild 3919 BLAKE2B d5f6c9d5496c4a18d71ebe0b13e8440c5f56eac7e09affd10ae7cf187b188cb9cb31f1bac9344769b867c40ac555fc3ef6a9bd247538fa2a7522fe0f5332133e SHA512 daaea230643155b02910e7147f96a8cf3abe5a8fecc8ddc2f940a769c84ec9d683c1ef5b4072dc4c22b60469eaed024686059cd90c2543d48f2d67393d8ad306 +EBUILD gentoo-kernel-6.1.11.ebuild 3919 BLAKE2B d5f6c9d5496c4a18d71ebe0b13e8440c5f56eac7e09affd10ae7cf187b188cb9cb31f1bac9344769b867c40ac555fc3ef6a9bd247538fa2a7522fe0f5332133e SHA512 daaea230643155b02910e7147f96a8cf3abe5a8fecc8ddc2f940a769c84ec9d683c1ef5b4072dc4c22b60469eaed024686059cd90c2543d48f2d67393d8ad306 EBUILD gentoo-kernel-6.1.6.ebuild 3919 BLAKE2B 4f75cd7eb836a471fecbd88b59f107d23208900ffa9c516d75c7af2f2c9af1ff4ee34738818b30f9f395dafe82f116afeceec326a03c61a5bd883096088b6823 SHA512 eeebb93449a0d75b6098912d4a8d000dbfb2464092663aa0e7c2a249ec824817274f94bfae0cedae7ad95edf2c203e8adead43c9a095ce83fff3b2fea559ef23 EBUILD gentoo-kernel-6.1.7.ebuild 3919 BLAKE2B 4f75cd7eb836a471fecbd88b59f107d23208900ffa9c516d75c7af2f2c9af1ff4ee34738818b30f9f395dafe82f116afeceec326a03c61a5bd883096088b6823 SHA512 eeebb93449a0d75b6098912d4a8d000dbfb2464092663aa0e7c2a249ec824817274f94bfae0cedae7ad95edf2c203e8adead43c9a095ce83fff3b2fea559ef23 EBUILD gentoo-kernel-6.1.8.ebuild 3917 BLAKE2B 4b98ef355f3bbefc7cf1b715a0875cc3d75031d6717cce18f787fb818ad5be547610b903dba7deb83c11c155f4643ecfdd43621b9218b519e233136dafc04e02 SHA512 937492b4c9e9d3afa2346801d25947f55b164881b59f6d56c41110e67be3d1bc1476a05f71d9cc25533b2ad9c5db50fd51dbc5c5651a1db4f8c33643c276f8dc diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.93.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.93.ebuild new file mode 100644 index 000000000000..540d3d6d63d5 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.93.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##*.} + 4 )) +CONFIG_VER=5.15.19 +CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 +GENTOO_CONFIG_VER=g6 + +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 + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +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-6.1.11.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.11.ebuild new file mode 100644 index 000000000000..ef74508c882b --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.11.ebuild @@ -0,0 +1,140 @@ +# 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##*.} + 2 )) +# 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 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://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 ~riscv ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( 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 + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +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 + ;; + riscv) + return + ;; + 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[@]}" +} |