commit: fb3c0957fd2ef0d1cb8ff3c4317772c91ac44384 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Sep 5 17:32:54 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Sep 5 17:43:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb3c0957
sys-kernel/gentoo-kernel-bin: Bump to 5.15.65 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.15.65.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 000839714e1a..6b56ef559acc 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.15-67.base.tar.xz 2856328 BLAKE2B a92c3afb5e0a6605587744c68b3b DIST genpatches-5.15-67.extras.tar.xz 3936 BLAKE2B 168a92a9db40e6014864a96aff71fb87b351d7127c5eedc8e062e753ae65d7ebc628e9b0eded328f17e88562592d80522ccdd31a549c8104aee51e2833f81134 SHA512 0f2bdfa87ec2a610870089c903b301dc86dac52f4969386074a439be90674c4835800cf9250d8844b1ec3df88cc8dc0b31e4582ea309b7c817066a1341c692b2 DIST genpatches-5.15-68.base.tar.xz 2897744 BLAKE2B e1aebd74737e787df999aabb0153b7aab4b5df05d049e9a6260a3bacf8e827b4f767fe6fe8d07bea71a0e5ee7655d864da67736c17756ec1119a66fc58a4b82a SHA512 79996709882f76cae25639f273f2829d5ae671714f699008d7fbed68595e7cdd93e9d79c801e9f1eaf6ea89fbfe9df3302773e6f728f8cb5de4bd69b36fea65d DIST genpatches-5.15-68.extras.tar.xz 3932 BLAKE2B 34fd77b8464322ad369de5b86dd8dc83ce7510bca139d4e6036b0b2ab34d1c80698b5f965e44a09dd25ee3b4d80abbccc5920e7984803be2451281c74ff735ea SHA512 970a1e5a03f786d05bb1ae9217a467442f16344fffcf2c77a2572c6db656b0fcd5b3329eae193999c47bbb45c8b02f0fd9010760ef74a6aacc474729f0ee9369 +DIST genpatches-5.15-69.base.tar.xz 2924208 BLAKE2B fc4f14592624fe2516c917425c04eaeb7e45073fb77e5830fefee93e3d25c448c8a523862ae89cab99220599c7ab5992d03cb5f81354236f77bc2e21ee802fe9 SHA512 ebfcc2c23304a6b316ecf226fab1200cedc7893093c99ca50cca4c1ad393dc5abcaaa0f2d4789909425a8eae2ebf57d4651f95eddfe40ac39522c95de59961d9 +DIST genpatches-5.15-69.extras.tar.xz 3932 BLAKE2B 03a0b738dd90047356abd306bcdee18e7468d111dcff28cfe4bc39c7328d146c69178b1fdd19cef92c0076ad981e845f2ad37778a0907bcf0fa572011d747b08 SHA512 bf29f35d834d6113b68a3ab0a2c2ab2b241c2fa13e47f59669d23a6510cbfb29d24f5947582b2c24f2e4e3170e798d6d0a4171c47973399431a32b76a770488a DIST genpatches-5.19-8.base.tar.xz 643396 BLAKE2B c383c7efc908fa3e8ebdfb750d92df6adfa1e0d00f253eae40fb5db5b84f8848a5c1a4fdcda693da998b1ba9d1afb1019cbc2574ceff2b099d2125ead515efc3 SHA512 ebd5eaaefbd362d85fa8cb95b0ca4192bf7a0835ec58ea25def13e502f87f74bcc29219083f39b85462b262f526f771270b5a8d93ff49126e1653d948a9ccb9d DIST genpatches-5.19-8.extras.tar.xz 3808 BLAKE2B 8cad0dd5deaca8f8b379c96cfad02add0cfe7498f17e84d11e6b809e366ae0476734bd003b287456459febe2ff4c1fa7b3e54c47243cd571a34ffb1cd927a1ea SHA512 a183d09ba7b1fc3f89b7754709df8d093ba70b09f71e237844214d65bc5821b6328c436c7ef697c30bfd38fc833bd178497190a2e73914a03ec0dfa4cbcdf7f2 DIST genpatches-5.4-216.base.tar.xz 5015752 BLAKE2B fd736588b9cbf9ba0a48ad838a17eda669e56d9d0ec4dd903f5bcd31ffa2c428d14ebc7bc35a709b3da7bf7f22403c5b01a9314dda60ef955d7674af836e2481 SHA512 62cd9deb29f863babbc9dc5116e5c5bcb34c0f29325276da80fc9b040004ba9fcfcde380779bf8ea8039f3098da88c59e7fdcd2d0f6d6aa5034df59ac9b55914 @@ -34,6 +36,10 @@ DIST gentoo-kernel-5.15.64-1.amd64.xpak 70812783 BLAKE2B 8e48507ad47fe72a7a45286 DIST gentoo-kernel-5.15.64-1.arm64.xpak 64210219 BLAKE2B dd3fac15e4753ddb900750c83747d1216c487f9dd0c69e3a4f0af98f1aa81dec8502ca8be33b2d015abf4633b160ef87523904f549882006b12f0deb4314e0ab SHA512 167aa3868086fc411d3d6bfe493f46d5f8f675a04b3ae8f1940c8ac439f1ec127657f2f7f6c3530ea6319b016491edb2a2fe0d50de2a4569ac7427b1db5a8b98 DIST gentoo-kernel-5.15.64-1.ppc64le.xpak 58139911 BLAKE2B b882b0f9f391d15d1e11305d853bb20ff5cd014b45671811fcd2346429e15cf4e14a207433eebd1bd148d1c2a2fd696e3c7e8d44b654ae9333fa2b46e422bd0f SHA512 ba9e5c0141f44661dfd5c680116f53c01e36349c38f58db7c5599f080e8a26d53a6513ef4ccfab82b5d61d7f941ca71f77e4e244b76a337df43aa3d81a63b6b0 DIST gentoo-kernel-5.15.64-1.x86.xpak 60122805 BLAKE2B f8917689903f846e0a7f4a5d9810910c2d7701cbcbf048c01f6f95e0932e4191e590df4207bdae22f1c01c785ddddcefa4411a3afe52a3a3feb04774117cd64f SHA512 5f1c6fc2f55a0616a6a5452da6782870512b0dc3adc7419cb34debabf46ca1928763694156a1427e49fc4aeb5c67c53ef5a525f89133141f5ffec2e9aa99db15 +DIST gentoo-kernel-5.15.65-1.amd64.xpak 70834024 BLAKE2B 97385aeb7ebc8906ff27f41b8f2af978bd6b4f9933db93b9e4263465deedd586bf7c5cc0cd8f1386d44f5b67959e336a0e10abb4caab7e702cbe6d8364d8477c SHA512 b1db187af9ac5a199599c82f6cbe8f50c406d6a83c5e3d96b5357b11435fad08f81663df01d7f99dacbe56730449179996113ef17e4bb6cc8ea4f828fe0f8753 +DIST gentoo-kernel-5.15.65-1.arm64.xpak 64204873 BLAKE2B fd3727ff04fdd1373052b34873b6512342fca30970375218a95c3c208c2972a2375eb7571fbe80976b4883356bbeef3de3611c02b93e99e618f6126befb2c1f9 SHA512 6d9c8b7dcfe94494b4858c39cf547e720d0c595353ebdd692fdd08f1e77de010734bf66cc169bda234332c58d805740d9b88a8ff8fe1e8b9c4b6e92d4fb5703f +DIST gentoo-kernel-5.15.65-1.ppc64le.xpak 58125320 BLAKE2B 0254a15c7add13fc270bb4f4a0b1edc490fa8a9f7ef747623a9c747db53d64b5cee24d625a6936ee9242f20a5e37fc7dd920a09aa966b45e25e74e9f503193b0 SHA512 7c003a2f7eccd80b6693667480ca652f1b8c18f1c34c6a69286d76ef3fbcf3c319332a70b54b1f4b3984a53c3080f0355b96acc54b34c405eeba81be1f437ae0 +DIST gentoo-kernel-5.15.65-1.x86.xpak 60165596 BLAKE2B d152578747d7207f2e30137164841b545b76a308a48e547ec1b596ab97acfddfac11df734894707ad0cee99a6755042c0c503996750f4d5ac0e9176a0443873b SHA512 41d339bee7b7749bb28ff0769179c0e8646bacf3e0cb027fd4133df8827e81f9302c052b4a83b632414f8b2db9e3e4a80bb5606d08af7cbb364b9ef06a1ad7e6 DIST gentoo-kernel-5.19.6-1.amd64.xpak 73549646 BLAKE2B b41eb12cbf86bb8f015411ae4a00a7a077e77ceb257671db891e3abb409dca86e2481840581435fc5c4df05f336b2e2a6b237de985ff295ce903ffba3d30f001 SHA512 55dd49b39c4c37536cd4d084b6eaaffb4f2138e7837a2f08b68eb2179043154099ea7e1b29f2d98719c2202304e04f8b8ad3440d31c0083f31763164feca6b82 DIST gentoo-kernel-5.19.6-1.arm64.xpak 66387997 BLAKE2B b46d2cb7e17f50919f1b27d938ce6dd841217bb1aafd6af59a289bd89f70ea1c2145dfa07aefc71a4ac18ab3e0ff863d48b457d388ecb292cf8d8b97aedbd7a1 SHA512 731c953d6ee1112392c2cfb4ebf968f4cc71e7beb5bc986f9934d2a37a8011fbfda327a4dfc29c3f075ca60f1142ecdeb0f780b144d525ac434340b469d5c142 DIST gentoo-kernel-5.19.6-1.ppc64le.xpak 60014130 BLAKE2B 1fa35be11714caae645b0d0de4d708cf82ac5fc0372adb8331b7f8c036f220662dcb892e69a346f24ce86ab40ef703d691c59511d303319f448a357a9b9d91e7 SHA512 8c28ee3dea8343821241627d405342c2ff24a4b74eb2a24ceca2498b138cc25404e96a1efa1a4eb5d41d4c701aa2a2f64dfc53d9a0011887735cb2098164303e diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.65.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.65.ebuild new file mode 100644 index 000000000000..0787e9b25ee5 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.65.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##*.} + 4 )) +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 +}