diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-06-26 11:05:25 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-06-26 11:08:26 +0200 |
commit | a2b376a25e166ecc8fe2ca48931f6deec3774c98 (patch) | |
tree | 5521d3ef7a7bd74ea28d745b26df388f476bba19 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.15.50 (diff) | |
download | gentoo-a2b376a25e166ecc8fe2ca48931f6deec3774c98.tar.gz gentoo-a2b376a25e166ecc8fe2ca48931f6deec3774c98.tar.bz2 gentoo-a2b376a25e166ecc8fe2ca48931f6deec3774c98.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.18.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.7.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 046c4e3e6b7a..07a4b0738c4d 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.15-53.base.tar.xz 2200544 BLAKE2B a6f1e11186e771abe56bb453d45f DIST genpatches-5.15-53.extras.tar.xz 3932 BLAKE2B ade13a83b27b14cf19f455539599aff1db3bc6caf99d07e746b292be702c49591519b63f754c4651ac3e0e867412cb5ffb588d5056cf6066c193e09a0c3feaf2 SHA512 438905963b586148d6385f24549343a6fc4d623f24aea089f52af44f772eaa62f0602d729b0232620d8ca08d440210dc7dbe7b5259a3fc232d603f574b5bf714 DIST genpatches-5.15-54.base.tar.xz 2203912 BLAKE2B 36e27d2734e9a62b1900907ea3722a522ddc61c991b5c751dd09d055b9da0fa92bd0de3eeee8b1560ff9a60c8d80181904dd14b7db7878b499a07bb31b0b5f90 SHA512 e751fbd89b91dc59dd0ac87f906ad1c4ae69ccfcad97db616bddd0d25184c133cba8af1141f5e32f690199d6196d0a5035941b70576cd4dd80aea750d1ce0c27 DIST genpatches-5.15-54.extras.tar.xz 3936 BLAKE2B 259497959ac6cd96036809fbc1634fa174e611f626b0f36c8003587ec0825fd75431b34329ecf4a9d9aeda3803986b2e3987f27d37e0fddf27eb83509c248548 SHA512 7c85e42f6195f6a0bdafbf0be5fbbab1b7a634a922c5233d1dfc2c29842fe4617888cdd7769584d2e918457bdd1a295b8761e354772d78b05cd1e917e9f71abb +DIST genpatches-5.18-10.base.tar.xz 500696 BLAKE2B e6dfe7b2f752aa0cadb2de11ed7e9e77935abf4d61c99fdb4f6790853364c8b8b189d25b2190b3c85b51ef355b085d1ab740599a920843534f0d4a840fbe8733 SHA512 d425826ca98a5600262485aae057401c131e63b2b84ef6eaea287a433acd4b0f98e3899bd931ac73eda5651c57bcc4bec730469655d54aa1f176ebfda6724aa6 +DIST genpatches-5.18-10.extras.tar.xz 3924 BLAKE2B ea024b19777b6fd59ad5505eaff41db7dc793f5f29beca1d70c2ab60829f5864f1b78f9b809fa9443f995f70df82746d33ac9ce9453a564b77c3964b49afe822 SHA512 7468faea1020335f546c69d331aa864400687056a01cb54a888f3d4bbe6c9061fc2a5d519f93aa362b87df953bb13c06ea2dda403e48f63ca259a6990120ff5f DIST genpatches-5.18-8.base.tar.xz 440848 BLAKE2B 8a965867409cc340b13687eec9c7391bbaf26b770ba8d4b657b923226a539b7b68eabab6f12bae4bed09a0d198917373a6ab4f707831c652e2461a49f8dd4981 SHA512 057a00d62f4d8ba7be4ea26aeaa4bfbd5581b22ded85dae71aaa693621eda17532ac00bbeaaea1689f552ce2b95a04e9aade603f6236c2a265aa8fea8231c5d0 DIST genpatches-5.18-8.extras.tar.xz 3924 BLAKE2B 3f575b12166621c67c9cf6ee15a76af551a039d142a85678abc10829e9a573641be8557b9b606352d46fa4d123e95071b2946447a6f53afef5b37eec5f342cf7 SHA512 7aab8d9d18dfb6129ee0e995450c9d9d759545a9fa2cde1d26dfc03d677b9133a310f3943cd77b5981830a6a1cff59463e85759ef5cd68bcb2838dd96104f590 DIST genpatches-5.18-9.base.tar.xz 495452 BLAKE2B 244e049522e9b8586081b9eac59fec51184c532bca70fc1d451af1ded646df9bdc7e047cea0963fd07ae8aa04bd4158d64854a2d790ec90be37aa467c7e8b646 SHA512 b90abf747ae92bb4ac7ef94646aedc21a89080d10f8aecae63821d59c0ac29b3b94c0fc6b862d87eb8b86442c2d41cfe16e3a1341d3c146d2b3c678c2f2cdf9a @@ -53,6 +55,10 @@ DIST gentoo-kernel-5.18.6-1.amd64.xpak 71610186 BLAKE2B 13c55b184b16a7ac7bed980d DIST gentoo-kernel-5.18.6-1.arm64.xpak 65223232 BLAKE2B 09fe7171bd037e50d34ac25e1a25188af37b5753a9940b36195a0ce29d356b46666ed4acaca6fe8de0e3b1c571591377c77c9366d21eb1155fd24a7ed3c8b0fb SHA512 b4ac8c4d997a02e24bd4a1e780fcc3732232183d31bf2f861431ae3825644287844eaa0d5d98868e8d0eb730fd4f23c6daf37ca8783b01f9c25b96b459391ef0 DIST gentoo-kernel-5.18.6-1.ppc64le.xpak 59443796 BLAKE2B b629e0230c89d8c9e7dcf8cf620dca6b491b1e5564ebd299ec0029b6943e28dabda25e14d0e593dcdb60cc7432cd31414259bda915a6276f4a772d15688e3cea SHA512 c8a2984fc907198de0457f4b270a6a9c54896c0e160689cc7de79d28d205c5abac9e2e23cbabf1cd61178fd3637619c8d81628854aabbeba79447a1386588c03 DIST gentoo-kernel-5.18.6-1.x86.xpak 61810085 BLAKE2B 164757a93549fec587a6dc17de0b5f67db8b0808f8c4611e1e80f805167772515c01e45f63660f11daa64752fd1cf49ae728f0e1ca182350a632ad18144f9adf SHA512 5b38f815999defa18d4f43229ca4deb94c366729f090a0a97229c560f7abb8604ab838241db50be37a541728ead3dfb96c7d6eed5e8e6b5b90ca072eb3570dc1 +DIST gentoo-kernel-5.18.7-1.amd64.xpak 71572166 BLAKE2B bb603514a140b621355ea60c37467d392711e2f96885d888824b508041f43cd562f9c7fbc4589642e2ab794571fb924eadf36a6dc5120bac0612e7eb4be9ba3e SHA512 b93f8f8eb4d7b3ebda3ba7f480d5487fc9b69377d077f8850e3404ddf5d658b0a579a04a9dd4faf1b09eeb2363f89350509eeb2b4d8712fc62e5864cb29694c9 +DIST gentoo-kernel-5.18.7-1.arm64.xpak 65215954 BLAKE2B 5a3e7b3b506530a63793848e97cee9572aafa4f131a2f99673797dc6ec8836ce721257307a4a8e2fdfa9c29d0dc17b0b9c2f7b7f93bed85f2b321c37a8a7876b SHA512 686ffd33c9a4dd59cf20732097fd11629c7980aae1380a9a0085fffb121ee3c7cfcf8a2ef0ad62762b65c447fd3f6e260ef73b5cc2fa3408b2dac43f58bec94a +DIST gentoo-kernel-5.18.7-1.ppc64le.xpak 59445100 BLAKE2B 229e12e0b6b531f4daf17355bd768574cba2b86643dfa4081834178624101d2945c41482be9bd7ec1721b640627cd1abe78e5a011ceb459e3f075ce0a2b09af0 SHA512 e2e71a52a66f6da676104dac7b72f797bb8b1120c7bf48c7af4038c2d49d84a4f4bb6680e37bac5a5fc445dd398f554bcb355dcef2409037972bff62689de588 +DIST gentoo-kernel-5.18.7-1.x86.xpak 61803855 BLAKE2B fc8df0a64ee5ace42e51a67b22bf9e7715058c5eb8f350e69227e940cb8b033b84f74ae926e587686e87b77f4d630e4516f8c417a2e10bc55ab61fe866202688 SHA512 851de56b32cd990ba56fe1cba50efdc107a3f2d6403de93df689c6619814dee00c05efa78366d65a68c25e4bbb1e6a59621f756a0c7c2388e86cae97073681eb DIST gentoo-kernel-5.4.199-1.amd64.xpak 61557691 BLAKE2B ca249eb416d775e208023e555d6064f06b92ceebc765807faa9789a2a79d00670b95e7c6ac1c635f131e5b8c8dd38b47a98666b1cfcf9a0b8dcd7b5ab3212332 SHA512 51d3a1978088f3932127d10fd91e6219ccf2bebc17963751b57977c036f878aa13ba6d55abca167966f3061b5f0e6aacf71ae2096e5d6dfbf3c5fba6da3c2aa1 DIST gentoo-kernel-5.4.199-1.arm64.xpak 57705946 BLAKE2B 882c6b7b3444c2acc04379cfdf9d70d373c04496f9c16788e1b150851c7f64b76bb02e1fa5b77051ad50eca623e0bebc3066fa398622d82b24b6535158817cc7 SHA512 625852a1a45afdf0436025fd1984a243ab4b2de1e49bdfc323b568f7c7e0798d4e88677fff90cb83b4ab25cf311cd7d2cd818484880c9e64dbaae414495235ab DIST gentoo-kernel-5.4.199-1.ppc64le.xpak 55122976 BLAKE2B 75bd061e50e6528beb4436072b4d13c9f224ff56e05c08ec971af8d03a4b8a0e93bf1654eb82e78403af7e247d532a707fb5a8af9c47aa4b7996d5ee839a8ad0 SHA512 d10eacc72d067ed7546c6622248e2dba8a713794457cfa1b2e1ff318fe8d48793c3e6e46cf78101191677ac656e5d9960620bbe0ac4d721a36111d9f9bfe8de5 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.7.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.7.ebuild new file mode 100644 index 000000000000..bec229c85248 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.7.ebuild @@ -0,0 +1,135 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 )) +BINPKG=${P/-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}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.x86.xpak + ) +" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + sys-devel/bc + sys-devel/flex + virtual/libelf + virtual/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_unpack() { + default + # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg. + ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak") + eend ${?} || die "Unpacking ${BINPKG} failed" +} + +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=":" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + mkdir modprep || die + cp "usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${KPV}" +} + +src_install() { + mv lib usr "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv 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 +} |