diff options
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 7 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.7.2-r1.ebuild | 161 |
2 files changed, 168 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 15adaeba351e..9858064e020b 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -18,6 +18,8 @@ DIST genpatches-6.7-3.base.tar.xz 19844 BLAKE2B 69f53a7bf61154f3644919b870ed4434 DIST genpatches-6.7-3.extras.tar.xz 3700 BLAKE2B ce7bc87494eec57d39330b1de3462b99a088781bca0beefad667674bbd9eaa2f2413c712638d16ef8c335b6a0e353aec83f4eb69e3da53a88d51ca6853d3254c SHA512 43558eb7a699d5e24c8f2bea13689adaacc6c7c58b4975c3d204a4c2278620032add6ca6017c3fc6ae70ade7e3e227a655deb989b85ef05acb05804d33475ec6 DIST genpatches-6.7-4.base.tar.xz 193776 BLAKE2B d0b6ee8e055d0c3b8122e1050818b49600a94c8b1b06ee4b6209d89207d527fc6c65352c728e359ad2830830ff25079a2d6d6ef6a55ecf60e43887c16673376f SHA512 5cc15425a7e9e80320f0b18b891d2efa2dfab4090441003b3c617d820c7e449a792aa266941bde0d22ba26e9a6999e42c3b686b270bc00389047678dd71b93d0 DIST genpatches-6.7-4.extras.tar.xz 3704 BLAKE2B bf9fe3be461e9a5e7ebe59704bf22a418b67644345728b494ce3b725c03902d7cc226a32cc46c831afbb07e0111d397556b9f12c63871a8f173d7fe136acb2f0 SHA512 70e91002ba6b48fb9161a1f28279f29636e381a34b67856bb492fa36edbce68ae8aed48f50df5e7a14c59f1f8fa4e74ab9430b7cf762a5dd3feee08952213f69 +DIST genpatches-6.7-5.base.tar.xz 195356 BLAKE2B 64dc86eb0d86a4afb318c09593bf0be4e210dd61e02c66d8b71bb56c2da29ebe04aed1329f90b3c6a1adadfded7bffc3a02d055b72c12df7e5500084c106bf2f SHA512 c24f66198ad33c2cd4f8bd62ed2f21bb482803e874427318443742a28577c907c83c00365e99fc123e708334ae76d6d5f7237e50d1f6d8969a7888aa5041f26f +DIST genpatches-6.7-5.extras.tar.xz 3700 BLAKE2B 8d4dcde0675f4921e2c0e34dd7df63da281fdef2e670b050cee44ef8cd3b0040031491a8585e72d166dd00af3e278baa1c4df7f3386a1a946ae141b67d31b25b SHA512 6654e57796aaa17275621dd91ac1b205e4fb645231aba99366a3fe4136e713cb5ba87fee7ab3b0f606b3a6a0c72f402764760a110ca7299b2faaca492ea5585b DIST gentoo-kernel-5.10.208-1.amd64.gpkg.tar 63252480 BLAKE2B 659253d258d12ae26473b9a3ad2b8e2ca9f481447870f290dca411f473db81ccde43c35b86590c0df563870c8d75496a4b2bd0918224f0f36a04a960be4b28a5 SHA512 d251deb2cfe021e477489f471bbe9c41c098416eb4b3c148c51e790be075b661a9db4264c3d6125352a7ac325bb0b982f8b650859c34fc48f61464851a7ab750 DIST gentoo-kernel-5.10.208-1.arm64.gpkg.tar 56729600 BLAKE2B 3a57808162fac71ccf1f9539d268680f384476b1c497b573be141da8a48c68299562bf206813a0e35ad097b426fa70a14956b3ac474117e7eab227cf3f780230 SHA512 18beb0123749b717a21438f26aefb49298e392e57b517a7be6012d484d6dd80968d87d78d0c48cefd2edf45885d691ecfc2cfbc86481188c296d4afc6187b975 DIST gentoo-kernel-5.10.208-1.ppc64le.gpkg.tar 52879360 BLAKE2B 34db7f65b4213a245e96716aa74af9fc2bafb67647f76681abde762c72a3b4c1d4b8dc8c98e3a5fed51ddc6c49baf6473a8717fcd596d4e2ebcc9aee4df8ded1 SHA512 c0704b57a4de8bcbfa04f683ff5155ba022774ec22d8ef7dc65bd14db574e95648ea67a5340f7c979d57c14bcc779fe1a53007da249c8d6b251230fa9f04af98 @@ -58,6 +60,10 @@ DIST gentoo-kernel-6.7.2-1.amd64.gpkg.tar 148234240 BLAKE2B 6a6bba15615213dace9b DIST gentoo-kernel-6.7.2-1.arm64.gpkg.tar 120760320 BLAKE2B bb928c929e5d17696a724595c6c247c4c6b9dae11c3bc4aceb720409de6046db10a017b3e38630ee1839fee8459243ead620fd8e4440a39ba298f07c32a7b9e1 SHA512 8d0d67025cbcf1dfad98afc46e150880e7ad1e3b4b21c129dc5cda766852bcb52f3bc7a74a606c1e529ad4c83a37d8f65254f678c12dac2731013275c1ca8c15 DIST gentoo-kernel-6.7.2-1.ppc64le.gpkg.tar 65505280 BLAKE2B d306a1570272d9c8df6adc0f06cfd8e63e1d318f95ef2c11bfb750e37fb4b3cce42c124758a6963161f4bf17c08059c7b8621baae2e9d31f393ad8a12d1a8c57 SHA512 f8777ab4c09c9ae5d0e81092cc70b5266fd4454586432c983b56c10135afb3d6812cf446d23fa5deb64a8d7616ee01babd05dd312b88a2f6dd915da083ba01a9 DIST gentoo-kernel-6.7.2-1.x86.gpkg.tar 69478400 BLAKE2B 61961a9071bffa0a3c0bee9529f7443dd0f41cb0abbe37e539df6f5915fb46ae412238c1e6cab4cbdbeaa4eee77e2edd513e976f523f28f77dc96f38fe1f14aa SHA512 e2a287cbb47db3fd7ff49b1d6676ecb42f1587e1946c3980cc2d13652d3390a0fe445d695630d65571e974a32f72431d2d8c05109073522dd0ad8d3d1710735f +DIST gentoo-kernel-6.7.2-r1-1.amd64.gpkg.tar 148172800 BLAKE2B 115940819c422ad97d28ddf75a436f08002ba30f2ca26560ff2dd5aef9b04404303f9c7e43eaa5aa169e96bad17c5ed1e914115da66caba26624af69cff585e2 SHA512 6b1dc6f1f7326b2508f18481a942d9c5b24249348b8f1b396fe9c8fa0fe8db34d758e6d63eb446d6ce5fe7de36d9e437ba5050ee42ff9a63171351180cded487 +DIST gentoo-kernel-6.7.2-r1-1.arm64.gpkg.tar 120750080 BLAKE2B fed0208b7b8cc75d267cde94b87ddfdb710a0f78a3bfefbd4a21d1bc2b6a4fae0601272e9a3048aee85ae90439504523c21788266da2d76a8ae9d44198e29418 SHA512 6fa187abacae81c8ac48b49cf24f13d00e48ab82f41dc65262d072bc31e8443d49e09c2817dff5b88f6d181b20a66e7a479e05de90e684c7a84753e6c8d7dee9 +DIST gentoo-kernel-6.7.2-r1-1.ppc64le.gpkg.tar 65474560 BLAKE2B 4c05b042af87543f8bf3fd36a78f7ca95b478129f10aeb1b0eec1e0340583ece0b06cbf2960f28af173b140b3cf87054d92049449ab62957b4ffb5385af4247d SHA512 4bc5cc3ee50017f50c5a23fd1e823b61108873d579f9036f9b994cae12d81bbdfb4c300286a865b0d4b26e291e0c624f2ade0d3dce67803cea2f1face988985d +DIST gentoo-kernel-6.7.2-r1-1.x86.gpkg.tar 69457920 BLAKE2B e1be7f1a47a14d6672fcece12a00b99131be34e19e22bfacb3ef2e56b634115d11c553bdbb0fd0157727aadf9ef2a591f4c430a4698e3c9c127c28e01af992ff SHA512 af52a0c5d6976c42079f6caab2e9ec735824d2d8109b17f55adabfc535fe5661c478e95b88336241ecb6fac93ac3628c257b18ad0bdb5beff4a21f1e9faf86b2 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 @@ -72,5 +78,6 @@ EBUILD gentoo-kernel-bin-6.1.75.ebuild 3042 BLAKE2B 71642740131c708c13c44e70bc03 EBUILD gentoo-kernel-bin-6.6.13.ebuild 4076 BLAKE2B 40de95f3bcd35312cbf9ed788d2d2b8a606c0e8cf11f3cf275dafc9197d19bce739662c3dca2a8b1dfbc329a0cd96905101b3345f2a6770305b290faf806bf0e SHA512 7a232c533361a1fb1dbe180e8df472099e47caf97cfa9e1498f31f0f9f20417e602971c164600e2649cda27f6a0c8b0c8c5a8dbe33738d73cefa16f491b2331a EBUILD gentoo-kernel-bin-6.6.14.ebuild 4080 BLAKE2B 0d88324cba03dbbb1712817c289fee4becfb7a7c4ce22c4ec230800eeed6d3321e963ed9cf5858129988a3f3e885dc71b2b1404b393b3c345eb16c2e6ed8b733 SHA512 52a65d01059371d646f1109c2d0d4977fcb6f76b158f0c0bcd36a09d68b4b7ed145b9d5fce9d8815acb82ca4ed7c3c35e343e9f3ae5dc76ee4b57f80f5570616 EBUILD gentoo-kernel-bin-6.7.1.ebuild 4080 BLAKE2B 7c3c46033601e1e5ee7c58609ae5b2475fb812faa6cd5e3de60dbdb76297cf49e610e689fda6242dcb477c8373ac6511c917f3e157bb808edc8f95cdc3d47cef SHA512 e8043d46217f9197a8f0c3468d8341f44afdbbb26b603d95274d186d3a5262d9cd8c03235749f6db93bc7c8defebdf07c7beba43c25359d81e67c83e281bc980 +EBUILD gentoo-kernel-bin-6.7.2-r1.ebuild 4080 BLAKE2B 0d88324cba03dbbb1712817c289fee4becfb7a7c4ce22c4ec230800eeed6d3321e963ed9cf5858129988a3f3e885dc71b2b1404b393b3c345eb16c2e6ed8b733 SHA512 52a65d01059371d646f1109c2d0d4977fcb6f76b158f0c0bcd36a09d68b4b7ed145b9d5fce9d8815acb82ca4ed7c3c35e343e9f3ae5dc76ee4b57f80f5570616 EBUILD gentoo-kernel-bin-6.7.2.ebuild 4080 BLAKE2B 7c3c46033601e1e5ee7c58609ae5b2475fb812faa6cd5e3de60dbdb76297cf49e610e689fda6242dcb477c8373ac6511c917f3e157bb808edc8f95cdc3d47cef SHA512 e8043d46217f9197a8f0c3468d8341f44afdbbb26b603d95274d186d3a5262d9cd8c03235749f6db93bc7c8defebdf07c7beba43c25359d81e67c83e281bc980 MISC metadata.xml 482 BLAKE2B 3e7e4723542cbb8ac93dae78248fb8c26b96b7bfb2a3cd7913e4e7aef9beff07d9e8301219ae95bbbe4282d0806614b2733bea5d818797d19b0070c9119c0e1d SHA512 e3de887610d2c063fde21d52ce78c5d15301bffff49a82508c50dc1b03e606bf3e87506b376f10c6c10334949f577bc0f5307c3f45f2544fac799c57cf75d4d4 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.7.2-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.7.2-r1.ebuild new file mode 100644 index 000000000000..9055f90433bd --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.7.2-r1.ebuild @@ -0,0 +1,161 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_EFI_ZBOOT=1 +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_SECUREBOOT=1 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 )) +BINPKG=${PF/-bin}-1 + +DESCRIPTION="Pre-built Linux kernel with Gentoo patches" +HOMEPAGE="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 + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + virtual/libelf + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + cd "${MY_P}" || die + default +} + +src_configure() { + # force ld.bfd if we can find it easily + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + + tc-export_build_env + local makeargs=( + V=1 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + kernel-install_test "${KPV}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/boot "${ED}"/ || die + fi + + # strip out-of-source build stuffs from modprep + # and then copy built files + find modprep -type f '(' \ + -name Makefile -o \ + -name '*.[ao]' -o \ + '(' -name '.*' -a -not -name '.config' ')' \ + ')' -delete || die + rm modprep/source || die + cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules +} |