diff options
author | Sam James <sam@gentoo.org> | 2022-04-14 05:44:17 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-14 07:47:32 +0100 |
commit | b936af93c8076879a24d2a9a3959b27551e92270 (patch) | |
tree | cb428f0284e5730a9d429ed713b776cfe62cd7a2 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.10.111 (diff) | |
download | gentoo-b936af93c8076879a24d2a9a3959b27551e92270.tar.gz gentoo-b936af93c8076879a24d2a9a3959b27551e92270.tar.bz2 gentoo-b936af93c8076879a24d2a9a3959b27551e92270.zip |
sys-kernel/gentoo-kernel-bin: add 5.15.34
Signed-off-by: Sam James <sam@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.15.34.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 1bbf34638b9d..04fd598be5bf 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.15-35.base.tar.xz 1306764 BLAKE2B 5ea5655e825b9196663a7bb830ef DIST genpatches-5.15-35.extras.tar.xz 3876 BLAKE2B 5b14c88d66ede25e8417bdebc3c822d2f3755a13f21cef8a95088c97bba42a44357c98d13ce5a40e3aeb128ec0716540e893b108bf1f73256cb45250cd7ef43c SHA512 bdd8c5a700e9902cb7db17094fcc220eaca4774639d73e8496ac061fbba9fb80f6aa136aa9e87331a636af6146737fdec3c21249da7a18b5fec4d82de559e24f DIST genpatches-5.15-36.base.tar.xz 1545664 BLAKE2B 367785e90aeba2a5498c5a17443429bd6650ab40390db6feb349eb54431e36ddecdfb031785f74355e5cdd7105636bffc8c0a86821ea36ee257d40cc0fc54d31 SHA512 63191671b4b41fb4a45d0535782bf638976e520e227ac6e924ce7e783e67ed02c8f127574f263d9373cb5d79591f1de209d09ceb47ba6ce34acb57c6a991857a DIST genpatches-5.15-36.extras.tar.xz 3876 BLAKE2B f89575d6d88ba1299252281092d13235643cfcdf2ae99571a3e813e39b1609fc2faa85dd07b81be81223bd0e83cd0a1c10c1e84be54a6c4f6563b901d98e673d SHA512 9127a39fc8ebbd78274ff838625eaf5c5500c1380a7cc84356af6fdff161123000f30f91ed31a0264d49ab08353a004e8cdd67ff08413a272e2f496c36e41988 +DIST genpatches-5.15-37.base.tar.xz 1619460 BLAKE2B 56c3671c4d6915ca183f92b19b7fe1de2bbccb05c1b231884b49b559fac0a33521ef12c6d75fcee3a37b898480ee77eb7f8fc93b83cf27660330e7b3de1be7a0 SHA512 59e25b62ddbddb0dc92bc44d9092d2d6f2262e582d526f20d07452a520e4176534e129b7882d98e441bd72f32a1b1f2ce9b64c7f1b9f4966f5c7fb27a50e6984 +DIST genpatches-5.15-37.extras.tar.xz 3868 BLAKE2B 11ac96d133b2c44ca77eb51cab739195e9fb252a2a3e6e2ad241f9ef6568ae1cf3dad9b7411522253c1e779c048807d478d6bac71d7aab9a147dac5dd81f77a9 SHA512 f8f0b48e170f5170d44947e52d548fb66f302bd97e7414cfb7e4668b2af76b48be0d0d2552345f397ff830246472193deac056020f128d98fafe04128d1c195f DIST genpatches-5.16-20.base.tar.xz 772164 BLAKE2B f29e052926e6c72417d93b7e114f7dd688def99891508b358414ea3930e3761d6e79e7d09722c4479ab7e0d495d53cbc1084270f8782a579d4ed56f58caa157c SHA512 00a034d6a2a79daf856c0cf8e6dd30753d89b95fb9de9a5aff4f5a0dad651eb53eea24aef7c582f866749ad3fc533ed7087f7dfd11600fef8cebf85d2cc9c58b DIST genpatches-5.16-20.extras.tar.xz 3800 BLAKE2B c815ea22d067c98f82650726a6c8a2e937c7bddb8b941e9d54c3014f4d8ea173cb1e54e76e23b6f767ae247fafbe02a8def6f39e5c6523e8c8cb12f098b8a34e SHA512 788ad08dfb0639c5ad42bb761d99bb534fdc5a9be54e9cededf90e0da34f13089b82609d8c7ccddc6fc1a28b913d4012c0e44b6768c84927e582f3a04be7ae55 DIST genpatches-5.16-21.base.tar.xz 1076736 BLAKE2B a5c6a42aba796d3f6fac0bdff544ee952d1cb63374864fca43a4fe57efb09407b8aafb54a692298173b66b5d267b9a8fdbafe614f48c1af4b4ecea2e951db975 SHA512 3a2df76cefcb1c8b6b4e65c82328a499757db5e50a33e9fd68b7d6044981f73f7cd0427b582b4477d1207898e3e2344d2c4c1afafdef17dfccf9e787a17b6dba @@ -28,6 +30,10 @@ DIST gentoo-kernel-5.15.33-1.amd64.xpak 69321065 BLAKE2B 42e3e874c8344f55c537094 DIST gentoo-kernel-5.15.33-1.arm64.xpak 64181038 BLAKE2B 95dfd3ae97df5c2ac38486e7c0656523fd1c80ceb2050953cd219ffddfe5ffc05d48e101743f55dcb3c10bedef7664aefe2cb40fd4aa4aebdaedd1ddc5aa02cb SHA512 69d33c74983a9b2f02c5c9ae59632a832e9b2fd5dba5122489b1b1659cc1694abe02c5e5bf2e82e85551876c924eb47a56d678f2f0f4ad707fde030aab789397 DIST gentoo-kernel-5.15.33-1.ppc64le.xpak 58014461 BLAKE2B 124f450bca083f41e3c87aea30e124db911d332fafdbef83a573e943a66cd776b55dd4ebf9518ac453f9823d661fa9a602c70a452b7a2babda494daa71848c27 SHA512 75783c00f3d5675d14d5a858e27686e822c9d6c205b45390742f71c3ffb578bc18c0fed69fe5d4d9594e672cd450a0ba5c078562a45813db8f7a5e9779d0b508 DIST gentoo-kernel-5.15.33-1.x86.xpak 60008701 BLAKE2B 194cf9abdb39617d9bf85ce2644749e6e064f8394ee95d9a5d6d72afc9630e38a295ab745297ad7aaee429a387f09064393b16e169b76766d83e2feb06a203a9 SHA512 8c19af257e9cd5b5a5edbe429004d1916c0e22ca3747884103c162967882671069fd3c7389111badf74f8731336bf1302b995273696f6abf6301a02bb2d15513 +DIST gentoo-kernel-5.15.34-1.amd64.xpak 69399353 BLAKE2B 66c4a2e9523df9d55f7ea3fe2a81ac803aa5c33ec8e4afebc4d9e98d62e2f4725d665da1b6ab46f6ee924b68ef57caf74ed5929a834dfab5717608ab3669c500 SHA512 1437ad49e32a895fc57b95cbbedcbc3f6848f47840f4cc171c63e0bd39a6741883f381e65f0e9eaf281449b427a46f3fcbed352e732225d7627a1fb76089c7c0 +DIST gentoo-kernel-5.15.34-1.arm64.xpak 64191373 BLAKE2B f5a2f68f33999574e6b17b788fae8dd5f33960a37c303e61b492193e2f4253834105e0c2b15f0caba8ac9e7943f4986d0c25f79445a917af33037155ac4d3294 SHA512 22ee4232a91e70c7e32850f723678ad0135a362be1a7d1f89cb25db5077c86f281d9e140d83dbcfdd37d4e832cf687b3f2b82cfa4fd38c6fba57f8fba3b42a97 +DIST gentoo-kernel-5.15.34-1.ppc64le.xpak 57915924 BLAKE2B 3400fe2d093e3349177e99a0505b9a93ecbea3997271aae7069f8858785984d0a7b9d76b6883ecdb340af87461576fde8f340d62de9b8fe906bc994e87cc05c7 SHA512 ca6bc4b42dbf207ed19bd36a1bfcc8235acaed7a471349a0617887b291010ac876c469c1f52216637c128f7b2a6774c0d12f2a11a992e8e1579bd1eb6ed24f05 +DIST gentoo-kernel-5.15.34-1.x86.xpak 60137773 BLAKE2B 05abbb0d4f3b86993b5c5ae88984cdd2dc105defd973a2757234015aa0164e07eef6b422e84031edf9ce570bfe00cad38306020d6a398b7bf5192f64da0b8328 SHA512 095dddcacce7956f4d65d767860325d277ac9e9a095fe36117903966cb9265927b64698b538d20a0b71570969c4f9fbf77b4cf8f92449b14144f684b6249c7d5 DIST gentoo-kernel-5.16.18-r1-1.amd64.xpak 69748607 BLAKE2B 89d9d6116eb5c4039f14dfd34876b7cd9df4d5c0ececed5eb1926633b0da76a715d9acf08462c9b8b55fa00dc484ba3f6acb3128246220f68d9cf16e82c86b8c SHA512 aad75b8cbd79334314578dd59925fe26ae63ca167b2f66470626db0ebdb2a31c30f7a309e4e6ddf0d3af461d4500316cea878af2796edf3f2a8cd79927ae6f3e DIST gentoo-kernel-5.16.18-r1-1.arm64.xpak 65173357 BLAKE2B 16c913c63557801659384a31767326968b309ba2d2966b7da59daa654226b7257aa9c9446f0268fa6671f3d687660f7c98bef8845f76b717d8b72737060dfcde SHA512 8dbc0fe7827cb095103324b81d038f6289120774c1b532fb0067afc1f795ec7ab9364302261d58aba9407561f56341c13f3976ed98b6951d5b998a47afc185aa DIST gentoo-kernel-5.16.18-r1-1.ppc64le.xpak 58464396 BLAKE2B aa8027e24e84fc4272eb3bdf90c468b3964cba65ecd2f433618b506f63fa9f6f62b07ae7550ad8041a9f37816f6e96f02becb60bf21fc15b251a409d9520f47a SHA512 a6ef4ec647f8a10fc915394ee4f98f53f41ed11fe188ac7b942be68c7f035d0a2bc843e2096129923248f22f888836856bd5fb1a7e89daad06dfb2069e8416bb diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.34.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.34.ebuild new file mode 100644 index 000000000000..aef2f80e48f6 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.34.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 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/~sam/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~sam/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.xpak + ) + x86? ( + https://dev.gentoo.org/~sam/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 +} |