summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-07-20 11:01:10 +0200
committerMichał Górny <mgorny@gentoo.org>2021-07-20 11:08:43 +0200
commit258ffd5ce634c5627ebd330bf21e206a05141fdb (patch)
tree8c52d83eb60f8e5c7616fe768a169f2e79534e16
parentsys-kernel/gentoo-kernel-bin: Bump to 5.12.18 (diff)
downloadgentoo-258ffd5ce634c5627ebd330bf21e206a05141fdb.tar.gz
gentoo-258ffd5ce634c5627ebd330bf21e206a05141fdb.tar.bz2
gentoo-258ffd5ce634c5627ebd330bf21e206a05141fdb.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.51
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51.ebuild117
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index ff16a5404a33..06b4116e1481 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.10-54.base.tar.xz 1652540 BLAKE2B 37ecda0a4f76784572985be5073e
DIST genpatches-5.10-54.extras.tar.xz 3416 BLAKE2B 3602707190ed04f62c4b2e8e0e765a53cf436b437373e71b6afd392cf05a73ac9e24f89293aac17c3730cdd696485ebf9d98161b248c9acafbfbe0b0c2db8ab8 SHA512 e4aad3f799dbcf00f813e39c8b9b355f17914a33d1ef422b3e7ee48c48e77a69925cc5664f0f171d1a632f622417b9d7ec88e56b1575c8e5f82af94f64337f42
DIST genpatches-5.10-56.base.tar.xz 1790176 BLAKE2B 90510133af510c12c515c33e7e970fd974fb51a3a85dc519a9ab378aaa19a2ca965b0983ca5148f43a122e65584ac76c67c79c39fae3bb917ff49633563adac7 SHA512 1f416bcc1b7cea2a8708272d1d9d0c71b55c6fab33330f19baa7811eb3b859afe66e9a24f83a2b4652a932c02d7016fcc81aa53c9faa970c1885fb672b79ff9d
DIST genpatches-5.10-56.extras.tar.xz 3420 BLAKE2B 96690a61ee421300a6385513e2804a2832622c4da07f4d0a20ca10274d822811f08b2a1c58dd486555d76bcf5dda75318784b95b6585b1504d9d977dbfd13cf0 SHA512 912ea13685c563e3adfb98bdcd743edc8e27cf87ed3c332bb7204235005c4ba85e847881e6394dabb27d83031c1035a840fa72d7ab9f23627a3a4dcd1210cfa3
+DIST genpatches-5.10-57.base.tar.xz 1840912 BLAKE2B 7cdfdb7fc13348ca474b28355df183ea4244615681d6e7b23e2b167d7f9b25740099c6c26f7eddb32e8df1bf6d3cfc5a51c238d8fa20774b2e6149b6262adfc9 SHA512 801237ce248c557a954ca5e414c9a48583d26572fe38d30c0cedfcf2c565e6406c1c7fb5a3006588615ec9e5a4767567da8828af1f8b36b20bb272cabdc44051
+DIST genpatches-5.10-57.extras.tar.xz 3420 BLAKE2B 44c9ac316bbcf4d9b723413f252a25d63beb472f50de8e77f9d09e645a5d595d2a908fc9caaf403d651e055380a82f187936a9497b86a1cf23ae8914dced6691 SHA512 d3a992fc7be5cc6530319f8e20bee5b2f24f576d56044ac8be085eb0021eb91182a96a259b73be154602e84d39819a549afbac7deb4f3c6bf10b52db6dde4b50
DIST genpatches-5.12-16.base.tar.xz 707164 BLAKE2B 05331662b6c219900a5d70aa3f9030e82cff6ca09de9645e178f5976daf8003335ac2a9163e405282096bba6057ca645f81fddda41eb7b10f1125524b4cadcc5 SHA512 dc8efddc386fc5350802edb5f95f62f61a8d3c2033a0efa0fe9450ff0ba84a65cbb4482a0de9fea6f67200fb938f3d73c27124f9bcf706485f32f25cf8e89cd9
DIST genpatches-5.12-16.extras.tar.xz 3412 BLAKE2B d0e429e2c9e1a2733a216e57c32c73f55285edc74f801017261925f246e44148c58cd8745caa6afc9cafa9c090d01206acc3cb96dc0ab260a834a0b3dd0e8918 SHA512 24a1f8b2f2993c157fa0efe5649b7494084d925f8665a8c0727ad431da00fcc8bfa7e00ac1d2b308b1297c1c202eac687d7539999eed38f44e71a9cb94327ef6
DIST genpatches-5.12-17.base.tar.xz 738268 BLAKE2B 61336204dbaf80bb44c29927ff59ed6ccd6f29a1a139132364aa2ad7c89b0af4df6df75e800cc14b444edb9897f4474015369b9cea878fef487c8a3e2123a715 SHA512 f4b5773b9885817889895725ece76d50da95439769d96fd4058d690937027ee6baffec62941b15df04b7e12df29d1177257daba39c41418e2f2a400565aacaf9
@@ -44,6 +46,8 @@ DIST gentoo-kernel-5.10.49-1.x86.xpak 57214239 BLAKE2B 9f9740028a1c6498781a283f0
DIST gentoo-kernel-5.10.50-1.amd64.xpak 65470237 BLAKE2B 344e0c3468f3f8e3bfcc5382ade67d094f35cfa5a245215c664ccdc51869a975f3407a8a55c96f50743b8122a9357795bf8c586785468180d9e9d215c365cfa0 SHA512 35ad272024189d313b1a17465c96c7ce0ae1308c1e23d915805b57755be7154cfc6f759f6c5c8fff49450a1f2a6ab4a5457feecf24361680086b5cf8e912087c
DIST gentoo-kernel-5.10.50-1.arm64.xpak 59074365 BLAKE2B 769503e2640312c7e6770c205319d81b765ff902c4924ebb85d013b464491e62feeb0e7e232da0c368554fcf2888e22f9ae139161227a096d0c249ecedda5774 SHA512 c5121f1b31eeb193ef44db835134dcd9b7a7d4b14ef3541f49e424dd49966b62cf23dcb2a7f37bf0aee054ceb3798ae20b9d804cfd50a2440482ecb2f01b9a88
DIST gentoo-kernel-5.10.50-1.x86.xpak 57209152 BLAKE2B 81e7a7ca00686315c4fc3c1a2523dcf5ffd1ab2f85b837ae5ac43cda2dfb372d005f455c22f5483ae2befe7e88fde0784a9b7ade9d4b4da5666aabf9fd09c0e7 SHA512 70896b6fd4fa2032f8994b582271126b0bea3eb2d2048ebbe9f7107d4ef4674c6db6cf111884277373b50248575a0b7cdaebf576e032ba0394ca89b28bf0702b
+DIST gentoo-kernel-5.10.51-1.amd64.xpak 65472029 BLAKE2B b735bd5308db96f218e8d9ec937c0ff25eaaedd52370c80699099a1dc593cd3b42a2b9e5e8691a0ece4163d946987f2e9896574a2bd88095b2f04b20c08a612e SHA512 22a111bfd078b2253d108a49b0ca2536a04abb9db00e05f8364dc67c39cfa55a9a317feb0f02f5db7a97353184ebc0e0f6a787cb16b81fe009dcccb8b30b4c1b
+DIST gentoo-kernel-5.10.51-1.x86.xpak 57213000 BLAKE2B 5366920fb80baeb2e488635f790e58bf82487fa109029b26bd4c0bcd2de5670e86eb30daa378e6b6c6e52fa40750c71bcbdca4c8ac24349beb71e9a5f494608b SHA512 f8bc969baf78a18227390598aa6262a827045ac13c6ef3631b33eb7c8d5859cb393e717db3820229ef43da45fc9de90b90fed3707da2b774f681b2c52cf36bd9
DIST gentoo-kernel-5.12.15-1.amd64.xpak 66395917 BLAKE2B b77c5e26863dc1c10da3c82904ef035f93c7bbbf60925f7c91836b7cfbb3d32335a8cad78a9b1a90a6d462f34fb798c393f7f992c54ffe6e1a5391b1e63652a4 SHA512 3efe58c6e9d948981fe51fc93ceb73de2f9a049cd396c62e743b3c5033eaf60b05d3100b2377060d1ba6245118281a49447bb5404dd4cc12b616a682fc4c252a
DIST gentoo-kernel-5.12.15-1.arm64.xpak 59971350 BLAKE2B 4231ed09d6efd9acae82078d259bef241223770fc95c24145a940ff3e4d712cfe52677a358d4fe26a6bf74129feaa3abad67e2d17eedd1e04f34758fd7ac5e1e SHA512 9eb582dab725c1716b777986e0adf90b353ca481763b27c65240d6b4d8e52d54ca394848b3ff7977651606341e39fbc19b0002caaa8174916f298bfe480087d9
DIST gentoo-kernel-5.12.15-1.x86.xpak 58062337 BLAKE2B 2ea33f13f41f6153e117dc99fdb805ff6a24071b6231730ff159ea2597e203655e5d6daa632f4fc8ace6444d8ffec7e624d222500b32e7b33035ac5a56b3efcb SHA512 62cae2c8e1fb42b3cf2ab48ade6fcbffcc03fe3b48c0d00fa7f2d3229e43a615887907e70b3219c3b040061134134f95c11c9b2d33a1f0ae568df7ec47507395
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51.ebuild
new file mode 100644
index 000000000000..b23f3e054425
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51.ebuild
@@ -0,0 +1,117 @@
+# Copyright 2020-2021 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##*.} + 6 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with genpatches"
+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
+ )
+ 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 ~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
+ ebegin "Unpacking ${BINPKG}.${ARCH}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.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
+
+ # 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
+}