commit: bfcef1ed2833cb8e78878999f0158401e56484a8 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Sep 28 14:28:27 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Sep 28 14:29:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfcef1ed
sys-kernel/gentoo-kernel-bin: Bump to 5.19.12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.19.12.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 098b93642fa2..029d487d848c 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.19-12.base.tar.xz 780072 BLAKE2B fe63576626355f3fa1638ca4de11e DIST genpatches-5.19-12.extras.tar.xz 3808 BLAKE2B 29b7c4bea18c4c56ca2944282ef1153d5394150029f680712c08b6bb41af8d8a44337768835561f90294f06635951d8dff2d56261e85c875aaabd395d39485c2 SHA512 0a30f8b0a70c9c0b6b87595236a08de5ce1b5d55df88c9878e23b3e87d7d22128da4302ea18f83ac83b66d647c0ad304a65c3c74e9084f555844bb276607a922 DIST genpatches-5.19-13.base.tar.xz 787224 BLAKE2B 9f8827743838c34ab47c6cf820f2541473a3d5a1067cd2af6e689ea1e38fd52c1fc73eaaf594e91fc58519ca725ad7523b93a121543123bb6e8278b4b3315682 SHA512 4fc67150171ada40f582707822dae5f18596bafdb0f42e0040ba9d0a5a3ca1df7e785c993ecc3a1938a333bc13cabd854d6c11adb8f841387631e9b6ad212043 DIST genpatches-5.19-13.extras.tar.xz 3808 BLAKE2B c1a811ab0ab52d422fd5b8ca3d7e19a3474fabefc4d9805251af7aee3315988471c1dc5058a95878b5d261e891ead328a0c7694e4b28a06a2b76c6917e16aa81 SHA512 ce4a80b99e3e4147d0785e246e72be90c87585795d0f2122141efa929d54c6d48e33e979b5614eef19427d4897e6ec26ed73a6e6decb308c345c9c52d1428588 +DIST genpatches-5.19-14.base.tar.xz 851936 BLAKE2B 8850a35f62720a0b12216414e5cf40a934e8e38a8346824688554c770189a25c9c56de312f98fdca7b3d4b7a3811102af9fe8cc869f27116efd28dd1d4a5cb4e SHA512 d06a54043845c4506cdd4c164421c818abfb0b8b48e20a28fd25fa634775335118a9687fdc5f886833c24d4185c8aac186988981c02f05e1fe761bb409bc2e3f +DIST genpatches-5.19-14.extras.tar.xz 3808 BLAKE2B a6bf77870b14ccb61e0fb2ea0400fb83538491870bd84c9039074d8765d6cd1c0bbadd16b963898a0e01f7808e320006d9823482544a61bca551ca624fa5d87a SHA512 e7bf591d2fea8d4e9b7678e2189953986521a8a01e7cc470005cc1fa8608b73d716cfec02c87e849578aa8581317899a48aa373c683bab3a67f05098f101d94d DIST genpatches-5.4-218.base.tar.xz 5055868 BLAKE2B 2dde93f13540d5268d3855b6c4b57f3746badb0db68564bd9f0a5b80cf63138dfb77a1d60be7c9256a36a7685e90299a8e28690debe2e8bad9e23e2d31dbe470 SHA512 884f469ef288aedaa2e9271fce5cbce8254247b64cc4e4594fd176b62f65133910f8e50d2458f8c822db5683beb02316b71c71e69c71ae2331baafe1d421f347 DIST genpatches-5.4-218.extras.tar.xz 1812 BLAKE2B 3d98f3ae24c5612a9427c88943474b1ca8efbba31bf5e0c0f012b4bc41d1ed980042221a77374a19813d2ba02eab944343aebe2b45aac893352a27e6330dd74f SHA512 31a3790fc98eadb717e9dd9ae9a3c0f4d8d36a2fd9023f407c6c5cc8e4018f89c74535c44f7fda34e3f7b48a0116c4bd1a4770bb98bc60a264e9c541cb767d8b DIST genpatches-5.4-219.base.tar.xz 5057112 BLAKE2B 2abaf4161586e089d1993edee6339b471a92dd08631bfbd7180219156417cdfc870163d5089a9185ed49b9a1eea37c9488316e239d67f469fc2f5b177a71e93c SHA512 37af5774e68df5bed8c13c516b245bb23abf0f6e93c369ca6937b1e6787445f0b3b27b8a5d325866f643896166d9ea5b8b8aad535f7c3afb5a45e8245355021e @@ -66,6 +68,10 @@ DIST gentoo-kernel-5.19.11-1.amd64.gpkg.tar 72519680 BLAKE2B bf6f09410e606ff35bf DIST gentoo-kernel-5.19.11-1.arm64.gpkg.tar 65064960 BLAKE2B d5a5adb6861a75ba1f5830d92486398e9a7670560b12e548eeefa6abfe2da322961a061be9576e6b8563ae099ac3c3e01a220cf3dd7b0a71b0809b8fd03521e7 SHA512 5931ee444488940060944ec41b15f06c5ee341336d475f0a999bac76d75844111873b0658825c3fbe2a11c13b48e9f0b8165ae5f91e8ef7fbb2700ec785b4e11 DIST gentoo-kernel-5.19.11-1.ppc64le.gpkg.tar 59002880 BLAKE2B 1a896383fcdf6566d282f531ee06c8041a628d407cdcf1a6728ac9af5190d1cb647cbb9dc9ed20d02e95b024c992694de5400fec12d55024b0073e1c6fe350e7 SHA512 eb04e14915027ab86aedecdf7ab5296a7030297fcce3a9619d64c8cb986d2a5aa4f3af6024e37d0252ceb63143e024372d16f7fb5ad725a3540026b25b150193 DIST gentoo-kernel-5.19.11-1.x86.gpkg.tar 62371840 BLAKE2B f50ea369957703d14405d72d398b4a0d460ad91a038aca68354717a7eb2490acbdddb76b96fc04376614775b5b5ff4540cd4b40748d7f727e652b8adfba16eb8 SHA512 4dc8ea05b4f26420600adb78ac6110348fcaba23e442f0fcdce0c8c86579bacd8cf67051ae43de158cf7c0f9c8b6340cf4dc05e9a69ad9481c94f13abdb623a6 +DIST gentoo-kernel-5.19.12-1.amd64.gpkg.tar 72529920 BLAKE2B ee379e4cca1ec7db66a6a173214c03ab0fd24f91368298093fda3f400e7accfef20bc61e1b81950a66dbd1310467a7c27eef5f46ba8c7319d530636801bdf7ef SHA512 11361ac005934d50ec9e2b49ed70c76e2630b1ada7c41fd1656a87321ee4dccd1f6ebc47e44def3a8b6f40c3afa56f5e69e6c3da1567497aed0dafab8d4a0956 +DIST gentoo-kernel-5.19.12-1.arm64.gpkg.tar 65064960 BLAKE2B c7a4191fce6f2f93b2894ea3cd1f1f8b2ae43fcd2050726fed8c83362fad8c5009b37434463fdee22878946aceb17327caf0d66577b316e9c62a99b636a08c17 SHA512 3d2377d8486d08c37424561dd07832f888645245aa00692dad48b2126abd9f2f188eb4dedbf24851bf7d73899cbba991256fcbb84d29b5ae89a0126ea878cba2 +DIST gentoo-kernel-5.19.12-1.ppc64le.gpkg.tar 59013120 BLAKE2B 58fabd5b3033f2aa8c4ee1cea3283a48754c58e474fc89ccbc35dffba33cc7a19384fd1ba8c9ac3e8785485c653a98003f49a045ce0589e7ea33bb427ca213dd SHA512 f43282674bcaee86e6a53f6b6f8e16d68be940552103a07c4379119ece197bf1fafadf4f505b2fe2469f27cb670ba57493aee4092c5baa45302523b72c0be763 +DIST gentoo-kernel-5.19.12-1.x86.gpkg.tar 62361600 BLAKE2B f2001cba9e8b19b79bb34e6a2d54c528999d7097b931074c74b94bcc0993bf851c73338a20623f0310d5e20232aa591d527332a3bb132d8368dce81fa7ce15b4 SHA512 1aefb84d25a2797b5c0636040a75c2c49a24c2d60de697d8f5e06130d8fb86e4f614964eeb05c95f96e82a7128d0969d815a044e12faeca201e1bd4aec615bd1 DIST gentoo-kernel-5.19.9-1.amd64.xpak 73581159 BLAKE2B 2b72273b9725d148489b3ebb1a1a80ef29f128bb1227d23bfc7c8c7dd73e91316e58ba9ce376c16207b58a3120588dd0af94ab563856d96253332d021137ccd4 SHA512 96cc7554c3864d5f45ee9046a34b862f18dca4526881da64065b66dc648d82d8d52b6f2509d5bd59f8a2d459453fb411620fc41cc2fa49b6f09a4daba37227bb DIST gentoo-kernel-5.19.9-1.arm64.xpak 66339923 BLAKE2B 2093a85d5da03b8c750577ace9ae41190a4832d1b57eaeb4951c5477cbd3541cb9797eac55b83c4bc57186c1b64665b1ac804df5796164dee299b5f85e705208 SHA512 de57e458ea87ad53c7ad3c0d53476807efcdba6a8d30f63fbb723e86184f265b624eca718ac17c4e98d8fcbf125dc6c927dd8c252f14ede31d4465c4765025b7 DIST gentoo-kernel-5.19.9-1.ppc64le.xpak 59960822 BLAKE2B 9681186ca40ac321446d724240629c9c69d356561d45f4f79816cf7b0115b5bcbe9070bf172ee1b9fae11bbf68deccdff5e2e963f8fd0708bff1f83ed350b2c1 SHA512 66f079177df4c0a8cafed036b7cfa8b1287e0e4be61b43ef42f5deb591ab6cf5055f57c823791db61a7cb06f71c8b89a6eda371ed28bee13d71cab0173b1b8dc diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.12.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.12.ebuild new file mode 100644 index 000000000000..0ba336c5c1aa --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.12.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +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}.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} + +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_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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d 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 +}