diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-27 09:59:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-27 09:59:33 +0100 |
commit | fdfde9fd41778789aaab6711adb9e4cc31c28360 (patch) | |
tree | ec3cf38d18dc8f9661b8914caec46bde349cab9d /sys-kernel/vanilla-kernel | |
parent | eb90394012a5d0ba3c13992fb861eb3387728c92 (diff) |
gentoo auto-resync : 27:08:2023 - 09:59:33
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.15.128.ebuild | 137 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.1.48.ebuild | 137 |
3 files changed, 280 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 4bffb83bf097..17fc7fb10911 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -28,12 +28,16 @@ DIST linux-5.10.191.tar.sign 993 BLAKE2B e1111d38fdcb966d68938bcd63d04fc2d40f43e DIST linux-5.10.191.tar.xz 120603864 BLAKE2B 721f760a73fc2e429272e95b288d7e0c6f95cbd6ae3d87384ec534b2a294b52f8c980170dd5c6f22955225dd6aa35797a2702a17b2a1c9438d0c134d6cf003f9 SHA512 d80b71f27bfb70b574d944c3d1cc6ec31a42bf9764967eeaaeeab4e40248efed4e2269012d6d8f9c598a3573e6a996833c35499abe60d50dab82c3a73721984d DIST linux-5.15.127.tar.sign 993 BLAKE2B 84310652ba933bb13ff2b0442eaedfcc56d94e0adceef77009abd7bdc2d614d1c61c83041b57adb62ac6591e7e127cb65f2557a29e6c89a616b84f07e89611ab SHA512 b34247621ce40eb2131b1c5c320d0ffe706010439b81238a1d28c9bddee69c0ca7575f90c7df86a92af4a6da520f42624e5cc39462eb0abc6de74a006d08af9e DIST linux-5.15.127.tar.xz 126542840 BLAKE2B 3c5f6ec2b917099deff2bafc2c144f06ddf2274f02ccee386cbde34323b7b7dc01b82f5914b0165c2e9dad48a13f4fbd22aedb25e7a07533be3becf90e7b7a9e SHA512 5245a87e10c986657d42dc78d0789905c1e61cc0af5ef619f0ed73788b0192375a8996a340e693604305cfd15ba202023fa4f4575ad4a7a5a38edf73aac892cc +DIST linux-5.15.128.tar.sign 993 BLAKE2B 29542245fc2dbda9c586685c3248ab2563819c58c130afc3d54e579d13d094591f7b586308cb5564b81ecb968cb839863babc917f88f1feda785adbe8c8c870f SHA512 ee6c022bed702db161a3cd05bf5688a9ddbcd175dd426ba3f6ad0261508ad15b11ce584a1d1d97f8828c800b70c4583085cfdf7cd21a5b07a08f2e95ee1ed791 +DIST linux-5.15.128.tar.xz 126528336 BLAKE2B b594e8a2c02baa6bcf8df7b574a998f80c6926ee2b6dcc539a5b1316cd9626021c99cd17fce9f39fd123d11f2d3c2c95e4a6748e0d183d7d537235929d8ea3a2 SHA512 5a9ef31d0cb44964af520fc8837122a0217b848f50168be3706d208de385298970fb6ca39c67d104ce1b5c739685470b05f2079e4578898feb0678f957f6e083 DIST linux-5.4.254.tar.sign 991 BLAKE2B 4f5a5e4ea2c930a62e3743c4f10d8e9999530a106134c61635f2f1fd627e6cb375a6d21a2f66f0bc02bc99e419cb0a4db3499af090f8787f523e009789205007 SHA512 71b4b3777c238034d5624be9ad79f40634d2e861ae2665d2aee1701cc3d5a09e6a5d1a114642d0d01a97cf1556022a658fc3deef7c59e93ab9b41c829018bfc5 DIST linux-5.4.254.tar.xz 112963588 BLAKE2B e0e395636643c49063cc1fbb04e06476ecf17471818f909559dc8f77fa5de69b8774ab8d6b16b4a2a57f32a7bf90126d381360fdd52069fc435090cde07769f8 SHA512 ccd82451c72eef0a0f35eb8c0e296e3018573ab99b602cce0a107bf2514bccf93113ea86d16205cb1b6a9f7c0198d411a250b215aed3cb0b4be6fcd27b878039 DIST linux-6.1.46.tar.sign 989 BLAKE2B 95f91ecbbad15ec67a2723799419e295485cf1fbfb7dca7dc12c8433835df4ce2efe92c7f24f58a890e2c2311eaa7e52d71c9df442944edc9893dff05c780571 SHA512 bc2b89126155d9bcbe0275a221bb88a1bb1d615b5ec036ee964d664af0cac8d15b3511265aebc8910f0174deb30547cc23e836efc0db061d0e2c841b87ff7464 DIST linux-6.1.46.tar.xz 134962288 BLAKE2B 07a069c04919899ce2b0859d0a528ee13b154ec8c9e868a2a0e64f6bdcc0ce30ea4fd002f1b58e62eebfaf8216e528e26b79c7a99c67f208e4d36eca590836bf SHA512 677d524974f76aeaaddab158e13df7c820e92f6e3c74683f5cd3dc9923859982079cd1da3fb41d3e87f96d72fb0abbc92d662122898e0a79adc7c8eebf005bd5 DIST linux-6.1.47.tar.sign 989 BLAKE2B 5783f29b3e5803559e818c17c22c8a3766e3e00dea494b2184c3199d6c068de4151f9a0684035d7c43ae9d7d21a762095cd726fc49f653f1c7b298874c72a31f SHA512 7f3a831b0274c54b719cc0ec94cd3e0499406fb6f5fe3caa07d9aa9e42feaf416f8bbaf908d1e7d308c7eee2a9a37e05742b41405ac6822726a08e23e3f4db7c DIST linux-6.1.47.tar.xz 134962984 BLAKE2B 318276ea54366300aa4893cc861c35fe267ff101de23e700a0a4566d3f0db0e332faacace4747453e546089e33bc9bc3103f8f320e54154b725dc3a401032047 SHA512 2c559ae816532815d5aaafdf3f9e7a6a36e03252ef87d0fd5f6c6391eea618338bcddde7bfe6839d741db0121b93c733baa1d3b7547cefbe8ffb7cb76f72f1a2 +DIST linux-6.1.48.tar.sign 989 BLAKE2B f6aafdf12eeb8e1e781e839b29530acef36220bb8705515ebd07a5dca573b0cbcf65a4489ebba51fdbccd8073c58559cb9b8268f045f9202d4f4330f6c94b08b SHA512 59adb56ea5e87305cfd06bc3b9b3a059721e9514403337e3ad401ada9404d774f50ceb37be66a8eff4ea69ea3ce26baded659ffa07f0de4c7fce62299ace7b0b +DIST linux-6.1.48.tar.xz 134962064 BLAKE2B b0f4abe3dec9c95ef4a51df92a0f2101d7114485798df58ecf3f4310190417fc8ec38f48aa3e022ea276b6267fe1cfb7ccfc4b999128adbcf47332769063e2e0 SHA512 edc8d9017bed9fbf3817fe5a907cd31e58ea76b9d9570016023181ec91f0183ff2eae2ba4887c44756b016b43181ec3e1d658777c95540de694db0525ea9b9a1 DIST linux-6.4.11.tar.sign 989 BLAKE2B b8b55a05aa9d5249365a17faf7c0654d6172988ba2894d6bf21c33a8c175dd220cce190415f84235175eec729a05a85b25f2ce9f240e59f81172823ed3a60eb9 SHA512 c4d218992809cfd6ed6afc324cddae579bd2d1cec66f40d04c1d182ca4dbfa8487539cb63b2ec432528b28f30b9e156fc0ce243878ac8c6607cb1e83c01b5888 DIST linux-6.4.11.tar.xz 137836952 BLAKE2B dfb97f2c9905a150c0890b9c3d464bc13986bec7bcd038c333f4dce443e0a1988a9075554219f9f419ef71af98827c05fad4a62aba1e58aa7f2ef8249f140175 SHA512 b3abf1d7c6b03644ddfc0a1994c88abd9b6db71089aeb4ff8749e9eed5d3772bc3468eabdeec99d998ec091898e5c81a84ef839345ba368580509500a3cc73dd DIST linux-6.4.12.tar.sign 989 BLAKE2B 598b2dd8b0beb25db5b0500547bfcf7ea669c06ff4afaf6252f996d0bb519f5d19da96a1b618ae7a03c4e27a56a5a1540d2c1b66bef9683d14aa964e0d768d39 SHA512 d1941097b97dee631cec1487ecdb9a3a4c145ec8cfdac325776e9e890bfff2f559140d178fe5ec27b0482f04df2713cb2d6da59e20a7bdbce8ed50c148f3b585 @@ -41,12 +45,14 @@ DIST linux-6.4.12.tar.xz 137846568 BLAKE2B 0d8b6e447a7fe390b44967ab8dc2e116de29b EBUILD vanilla-kernel-5.10.191.ebuild 3776 BLAKE2B 8123c455d8037eb8f221741523b7276ed013007d928fa7b76d4401b67a3d1d904a39519da67c466967ecd657aa2465175f4214d79a3e2ecd063df9bc19e72300 SHA512 46737c9425cad5c99bebb4f233a049e0f08d0539cc1a9eb3afdca285d081f778e6effbdaf012d0f0a58b92a64e14e33bb5b463ba4ec6e9ef45a8bd825b616e87 EBUILD vanilla-kernel-5.10.9999.ebuild 3295 BLAKE2B d55f087638b0f40abb649765db84505032571215fa29a51da118dee67c6815b92544ac4f2baa35571bc90b7a3e83c8ffe76c24327c31ac82e018b94a9d773ab9 SHA512 c0acc21c6d0af4b59e8b687254501a77340261b6927a84e82f2ddfdc4373c580cc5e987610b844c3fca348c44b1276415443efcfbfd70c3350043ef6fb57d743 EBUILD vanilla-kernel-5.15.127.ebuild 3776 BLAKE2B c24a30442a8b2fa704c58bf31061467f8f077ace3721ebae232fd81639e95def5bd06c950f73b5823f9d2667cef4f31f24ccf8d308d1b1b480ba4af7a794179c SHA512 aebfea3cc05d1af79fdb155328d54c5d9beaa86259c543b3b24f4b11115cf7c9b6e433aede426925eee67cd84524eafb223c3e75e32380b22cb630e750475054 +EBUILD vanilla-kernel-5.15.128.ebuild 3776 BLAKE2B c24a30442a8b2fa704c58bf31061467f8f077ace3721ebae232fd81639e95def5bd06c950f73b5823f9d2667cef4f31f24ccf8d308d1b1b480ba4af7a794179c SHA512 aebfea3cc05d1af79fdb155328d54c5d9beaa86259c543b3b24f4b11115cf7c9b6e433aede426925eee67cd84524eafb223c3e75e32380b22cb630e750475054 EBUILD vanilla-kernel-5.15.9999.ebuild 3295 BLAKE2B 1e2783cbee7e2750f9f89f6ac90245535f427c85ee9cd00aff625e3e2f0dcbb6c978c63d0801b3ee491956fe71d005c1db12d799daccc1273862f27eaf0c4c18 SHA512 1f658d769c4baebe9582a309942e10d2c4edb289753f17344941a1ac429057b031a9b16cb17c5c23ea3a0f549f689cc55729f97e772c497f56054525f954ab25 EBUILD vanilla-kernel-5.19.9999.ebuild 3415 BLAKE2B fccd59b033a2c78ed80927aef1fb8c2e56ac60ae94cdc29569ab038af25d7d4a3234e978eb5ceb63f4527a2ec65682ea1a7fec076a3f63ababab520f3ccd1889 SHA512 7e7d154e927d8617e9fac062242388cd5372632cc9d7fb9183315d5ab2e0e116ce3531cc9965ed132b911a72bd956969ab9bfc39f999805b82a96a3320d3d7d4 EBUILD vanilla-kernel-5.4.254.ebuild 3062 BLAKE2B 57f0ff3da486dcf8c18cd11607ac6835b7dadd1d792c2499ff6530f0a28a017695ef9ef6e7a0fc15d31b857bfa0359694572cea594cf1a473d639ebb55ff0e58 SHA512 a7c2010a4ac27038d55adc11bc2f5340015266b60f61d93d41fbc20346fdd5ac624673fd08da709d5a144b78ff6a46f28cfc94663f627e0a87ea97db24cb7f42 EBUILD vanilla-kernel-5.4.9999.ebuild 2635 BLAKE2B a24d5ab83210f70c0f0b32b326b786743c07920dedbb5576994c32f5be09aafdddb5d30c660cc131d26ffb1a86255491ff6c8a7bbacac81f53af5fe92b976095 SHA512 52efbf88e5634ff7a6545aaf0edb975e3e23b68c6799d293ce90c260486bc16c8d1ecba96c301c99e2dbcfc7de85eef071d8e9ee0ca3cd7279b2545e41e11396 EBUILD vanilla-kernel-6.1.46.ebuild 3894 BLAKE2B ceb59b4d1f283b856477226d074a57d4f46201306ccbe33e6036445ad008a095bc72ef572fd31f1a26c63008e10f80ed10eae149526cf2eb7e16b1fa045022a1 SHA512 55818f504b9f43b0b866cebfc38a33951bbbc602dcf5cc938204a94b7e5854ef7c78217d644105c36bfc56a845a0bb5235bf55edbf80d9a467865847011c6132 EBUILD vanilla-kernel-6.1.47.ebuild 3894 BLAKE2B ceb59b4d1f283b856477226d074a57d4f46201306ccbe33e6036445ad008a095bc72ef572fd31f1a26c63008e10f80ed10eae149526cf2eb7e16b1fa045022a1 SHA512 55818f504b9f43b0b866cebfc38a33951bbbc602dcf5cc938204a94b7e5854ef7c78217d644105c36bfc56a845a0bb5235bf55edbf80d9a467865847011c6132 +EBUILD vanilla-kernel-6.1.48.ebuild 3894 BLAKE2B ceb59b4d1f283b856477226d074a57d4f46201306ccbe33e6036445ad008a095bc72ef572fd31f1a26c63008e10f80ed10eae149526cf2eb7e16b1fa045022a1 SHA512 55818f504b9f43b0b866cebfc38a33951bbbc602dcf5cc938204a94b7e5854ef7c78217d644105c36bfc56a845a0bb5235bf55edbf80d9a467865847011c6132 EBUILD vanilla-kernel-6.1.9999.ebuild 3413 BLAKE2B 3e286878f8ad61cd41dfab86e7f5a143f3e165af8fbffa7277d1c5b0a712fbdde55440d069383e273b029967c108ee02caeddf5b6782d966ff3d47bc13763a01 SHA512 4adf01bafd3116668c406ab443e3b45bb37c182ad01931d32ce08eadea26d66df7657eba9f4f199009fb80adca108cb2401fb0a6e3c1c94b2dd77399303dc818 EBUILD vanilla-kernel-6.4.11.ebuild 3921 BLAKE2B 383346969ebe5e0c76da683072328fd578964ab349353fe078b475a8f2322560184d58ceae63bccb31b47faf2abc6ed6d6a60673208bc226cf3eb58401a8b0bc SHA512 889e37788a7b07aac030487533925a99620e97407c50cb1045d88da6484c7dd79abe613258ffba6b93d2a47e36252ee459ac6948bb144b7ef45b7f7003f0ee72 EBUILD vanilla-kernel-6.4.12.ebuild 3921 BLAKE2B 383346969ebe5e0c76da683072328fd578964ab349353fe078b475a8f2322560184d58ceae63bccb31b47faf2abc6ed6d6a60673208bc226cf3eb58401a8b0bc SHA512 889e37788a7b07aac030487533925a99620e97407c50cb1045d88da6484c7dd79abe613258ffba6b93d2a47e36252ee459ac6948bb144b7ef45b7f7003f0ee72 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.128.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.128.ebuild new file mode 100644 index 000000000000..f68caf0fd433 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.128.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 +CONFIG_VER=5.15.19 +CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 +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://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 )" + +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.1.48.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.48.ebuild new file mode 100644 index 000000000000..e3a0c5f7f691 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.48.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=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[@]}" +} |