summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-16 19:07:14 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-16 19:07:49 +0100
commit0836d6e71e1f02e3eea583911d7c73a5695b542c (patch)
tree616740b98bd71c59df47dab96b9b871fc340b1e5 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.101 (diff)
downloadgentoo-0836d6e71e1f02e3eea583911d7c73a5695b542c.tar.gz
gentoo-0836d6e71e1f02e3eea583911d7c73a5695b542c.tar.bz2
gentoo-0836d6e71e1f02e3eea583911d7c73a5695b542c.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.180
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.180.ebuild131
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 2a616b086d83..1a4a04a1086f 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.16-11.base.tar.xz 516420 BLAKE2B 3e3d1a7ed60355a6d0911742fe1fe
DIST genpatches-5.16-11.extras.tar.xz 3796 BLAKE2B d4df94755fa8b69b345c6df4b9362d1b007c3ad420a6cfcbb9cea79da1e918db6944771cefae0985c63af5ada87f13de124aa96adbb80900a4fb5faab830685a SHA512 058a18c26fc651dacf9da50ad0eaf882f6760df29c37e8ddf2188151c4ec4131c094a04339c08bf54822e37c1b94e1d2c87b4cca7ed4b84d75bc19f80ebea784
DIST genpatches-5.4-183.base.tar.xz 4413940 BLAKE2B 2f71eaa7ceeb4e1940c329a47ff05e80970a45db81b69ed5d68767a26351b7cab4f090934bff6bf1cd7efbe6688e2eecc50c9db95e6070844d44bdfe8c59102d SHA512 3a077767398efaf020af82ca249b11d2df9ad0a254f5c76d9c88ff4a588ec9ee2cbf2fa1dfd0afc5b2e78f9db8b0cc2f8bc37681b056313cdbf27564744fe358
DIST genpatches-5.4-183.extras.tar.xz 1812 BLAKE2B 6755576f737a247e0a09a3eb19886c09fbf2495a50c1af2f70df08b00a62247f83b904ae8d2d98dbbae528830853d87639304eb17b5a336c324d982a41cee0c1 SHA512 603e76667384e94dc0e8795ce6cb9b2966b81d6f3dc8fbba71ab84c20857bc31e5cf15ced293ae03eabd5ce3b0147cc39b59382733f284241d018fb0d5b8319a
+DIST genpatches-5.4-184.base.tar.xz 4427792 BLAKE2B b8f4a7219641518d8435dd8c4b99c33157a3a937edd307da40d5c4fd80873e3fb66003f370310a221df28fc25f3203176a1ce55b4c5da0899034c4f3617c98f3 SHA512 7b611a3ae72349dc2d708d06cf0de7522978bcc8f09d98271efbb9c3b8afa1c1e33ed18036655c9ffc0c38d6bd7fb665a7116f01c98f9fb04cd994372e30d3c5
+DIST genpatches-5.4-184.extras.tar.xz 1816 BLAKE2B 53f485bcc1056f1efebb698164cf99713eef58e7a2ef1765dc86122a9d948f079f7708642441ed26e3dd0acaa523ff2c863fe25c9949d20e5f7852778df981a3 SHA512 874ae1450fa9ea5256ba495e80e000d46859a9b63905160b8707695fdd0ea86d6d8a0e6dfcd340402d3d290757b8e38c05d022be24320992f918a96300781bef
DIST gentoo-kernel-5.10.100-1.amd64.xpak 65628548 BLAKE2B edb42e3b5bc34349dd997081365aa7c1c359d09082cc9feaeb7978325a214ce748583a701496848592812294ef7072aede0118cfbb3a5cf371371da2656bc2a3 SHA512 2d7277e6ffd0e461bdb7391cef3742d4ccdd90a0ab89e131666b7e1c7abb003d4cf4100c5936cde2676e3b25cfda42b799d7bebfc42ef74d3da06d1cdd191c53
DIST gentoo-kernel-5.10.100-1.arm64.xpak 60932203 BLAKE2B 395d967eda0922328b1ecd3cf1ca21574db76d7a39f89700fd1c1b30fd7c06449541d38581ca5ca5cb85af94c819b181f31872e58f567a630350953939f3966f SHA512 10f980f0e565390bdc86512ff5979763180e2f1289d8436ea8bee2427aff3df9451d082566d3851dbc84af722ed23e894c262af70ff59c72014e4929cbcef801
DIST gentoo-kernel-5.10.100-1.ppc64le.xpak 55823761 BLAKE2B e0be918a29ba69deca2ac884b2b2b71f589f9b103fa485db06531f37e1421dc936352c2be0f736a90eb2a0ca48885207762a68d6d7b9b23e20b1e360b94ac3e9 SHA512 3ba76dc3eb17c2580f13aca9260092dc70d659cdbb52bb3efc7f7c9930df210891a39d91eb7ecfe7fa1d7f5ce7e8be03ecb924430c9d2df7b7d45f657c676250
@@ -40,6 +42,10 @@ DIST gentoo-kernel-5.4.179-1.amd64.xpak 61480630 BLAKE2B c2d8bff0123d35b9fc35306
DIST gentoo-kernel-5.4.179-1.arm64.xpak 57675595 BLAKE2B 11d6296b4193f3b30115bf9231e1de2441ea8e77769454e648f63183f1267165ad74b2168e1ef1e7ce7ac0f120f8b353598ce2ad2c13919081d84fdb365287fd SHA512 a8611c30614d73fbfea878c74f30de9bac94f946938c33479e51e465ef95db938eb339479a155112d97ddd043ab9ef8a14544cd190e5df7e8df0d5d9fe55bdc0
DIST gentoo-kernel-5.4.179-1.ppc64le.xpak 54917003 BLAKE2B 3d5b017e821d9ec86878848c13c86a258b237e999a8e482e7f4283f7a9c38e49949a0c5ac62087c464094b9ecc1d2583cace105a9ae98ab7e7024a310cdda6c5 SHA512 4f46bc6b744f34c9ce79fca54a64e780a9d8cbdd7afd13dfd1a88ab430f0fd659ed44b3b0a404c1beb797522bd291eb91ce8c30d2ad01ce2ddca41beae6bae00
DIST gentoo-kernel-5.4.179-1.x86.xpak 53178307 BLAKE2B 2f01281032360861cd6e9d6a3814c9ca89315baec2c97bcc12b64a18f0845f4a10de30214f9a741273ad2109ecebe372389e81b2954de6b2aa13b68a30a3f8d3 SHA512 7ebdfb8a6cbb57679c490d483186e4b31dcb5cc8861d21a613b003827654f026cb01a26a2f6b418c8bb2cbf56e31da1f1ce6053893a4f842558df34ffc077413
+DIST gentoo-kernel-5.4.180-1.amd64.xpak 61500972 BLAKE2B 6f0c6d0ad4f9521e62a9b5a04e7ffeb43aceb93d4988144a6c738e70af95ffe0ea261978cfd63d96536ba5267293e99e69c40e06bcc54ed0ed3a4ee7a235c6f7 SHA512 06a34371404af5bd1ba4682167b64a761a70ac1edd9b0b2fc2ee313d842760f4decf9ec8c3b55ed3d1a4b9bde2a9ab99200aa6c3c4d3900b936f0ba9271ef9c5
+DIST gentoo-kernel-5.4.180-1.arm64.xpak 57638189 BLAKE2B 9c2fb790e7df86c9c3e6084f22d0cf817fcf66405a15e9c3bbeafe79469b204581fe3ca650c2db99cef1aaa736d857050408de8798e5f1850c775131ba17be33 SHA512 cc495f458a898281482d1d8d11bbf43fb7452e316e13270df0afb5cad1c5f6bba1d530b7ee922d1ad8e68bc851b1fc82a5b9a03fa7d13f81dcf3119fba81758c
+DIST gentoo-kernel-5.4.180-1.ppc64le.xpak 54932387 BLAKE2B 8add193085bed8c04221f2c3dd07fa3a0b0ad0443b48bc821f7e6d5935c2c56e286ecf340b72aba16785baacf3c74e2b8f8db4d32646c46eaa260745a0980322 SHA512 aeae61fd9cb1e53e1cb48be4f23aa979689fc0f72b8b0f726e732e0124dbb6f9d42d8d767a90c7cb27e268e395a9a36e07cea792d22a9dcde4858a743f42ba04
+DIST gentoo-kernel-5.4.180-1.x86.xpak 53189221 BLAKE2B e6c3de50130d6c3c94d4d17e4bf658467ecdc977003bba6e1a36c138a1889edd135d078c29cee8839e9c30f2f4fc6ab308c39cf1d00bc51ae7ee571c3e364580 SHA512 1bd26122ddcd977899fd374b1eb4952c661ce95cadd89fb94d0c69beeae76671f25386d427b30aaacfdaae54998ff001484deb75f6915cd9b2c394b458596623
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.16.tar.xz 123114100 BLAKE2B 07a90cc640ff89e1359c06cee8c38abd33e51f9b9a89833e31a1d2750526fda4a59e8884db3c1ea63df0a37f0d3de6b5a922b014b7313d8abce20d90ac08adcb SHA512 7a257dd576bc8493595ec7d6f3c9cb6e22c772a8b2dbe735d2485c4f5c56e26a08695546e7e0f1f1cd04a533f25e829361958d4da0b98bf0ba8094dd57a85aaf
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.180.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.180.ebuild
new file mode 100644
index 000000000000..5bdada88d281
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.180.ebuild
@@ -0,0 +1,131 @@
+# 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 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
+ )
+ 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
+}