summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-03-16 19:55:40 +0100
committerMichał Górny <mgorny@gentoo.org>2022-03-16 20:17:00 +0100
commit4674b32661af56fe9ea04af4f2bdb6bdb26351a3 (patch)
tree41c56a0762468449aee8a5f81a50358bea754837 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.15.29 (diff)
downloadgentoo-4674b32661af56fe9ea04af4f2bdb6bdb26351a3.tar.gz
gentoo-4674b32661af56fe9ea04af4f2bdb6bdb26351a3.tar.bz2
gentoo-4674b32661af56fe9ea04af4f2bdb6bdb26351a3.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.106
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.10.106.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 853c16e8f989..152543ad3cd7 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-111.base.tar.xz 3106252 BLAKE2B 2b55a1c6fe10c58823227616020
DIST genpatches-5.10-111.extras.tar.xz 3876 BLAKE2B a162482853b09b14c83a1b53f0e425431115a9b4bbd7c929656b56533aef562338ddc75394963db7550ce41c613203287d98692b96dab28ae6dc2cc7350a2128 SHA512 2792748f9e51af82896b19de21608bd5e092f6e89a7f362084b662aea489d4446e664e80867cccd38425a6ed3eec6e4d2e200dddf1675024fbabb1848d1952ca
DIST genpatches-5.10-112.base.tar.xz 3129120 BLAKE2B 89e3a95facb0b67c8d4a9157c8e82a89ed4fd68febe1b52f9299ec9df08515293943596950e82a9acc95c448c7cdfbac97aff30bf40df326941cf38a0340edfa SHA512 04c6c2a632383b7b1404f1390cb0e7954ad9401c5c5c4a30d87b36ad757e94299d70461cc2517f345ae1a7289b33a49025c09e10ac602f1fc9ffc52dd9d3d522
DIST genpatches-5.10-112.extras.tar.xz 3876 BLAKE2B 3a5372d5e9a4105d6f7fea19c5defdc823430c823bf89131990c9af1785e8943dd3d9175a5cf591f335bcfd3bc23be1ce928d95f574b895e5a3c949c65e858ef SHA512 69950dc907bc047052e13ce01f1b1eb465d58d101bee75789300cc8f41f3d11632be220831f4b908b48659eac2b13867ef8d77eb3564dc7fc7d712ef23e313cc
+DIST genpatches-5.10-114.base.tar.xz 3146016 BLAKE2B 838970c9a36b0d50d50b3142c156535f4431cf1af871e689fcbf8be0a5d51e8113d11ddd49467af5959032787c19810b9b114b4b9742ab616a7018b02d8b5a33 SHA512 b4b8ce4fa4f98acc3a4a9f7529322deda0e9d5848fb3d957153d305e2d013883fa4518e12f4cc8579076325b62b267df8cc1844cbd3634151df9212729cc0480
+DIST genpatches-5.10-114.extras.tar.xz 3876 BLAKE2B facdf4de4c5eeaa5a419a23d9254633bac3f51ae545fdbdfa46a312fc63cb7af80fb11685198a463d4543ea86925c3c51402c95528682b6cdc951399d8eb12c4 SHA512 30fe543625734215cae6eb2cc5c3fc24d80207cd9b5145f4f7fbf65f11c31fbba1b21c034f53a20ee724998987a2223be39272590fbaef49bb61136de471dcc6
DIST genpatches-5.15-27.base.tar.xz 1109928 BLAKE2B 4f6113b0b1c378bec52a94c420265c3454b4b46dca3ebe25cf9bbd3d65761ac2d1bf14a5f60afcd974ceb319036c4e84adf247632bd93174dc144779d1169f8d SHA512 77f39c84e78e64ed221a813292a3391ba1252c7bb5206d78f2e2c4b8fa3e6f082cd327ac45c30851840e62288f2958470d271d9ad2afbda2fa9f21d4b4f07c56
DIST genpatches-5.15-27.extras.tar.xz 3872 BLAKE2B fc757f0d4fcba7b53aea34736b7a0cc0a7ca14b73bd9c249ad2c89b283475f3b53e4391870a239bd329f00e55c056f05cfc270ad00d57acd69cc26331cc20931 SHA512 102dc6ec977e184ec07cc3cdc2a39285f291bd3e3a344b5e53935f90319efcb5ca70ea1936d5d37ffe03f66148aad4e240508e3cf212d483abe145c21e6818c3
DIST genpatches-5.15-29.base.tar.xz 1228644 BLAKE2B af3556b699c911adc605d438be870f2bba25e79c24908cc8ef6e130e238ada7f415faab020a2cad99780c99e9ce0e8d2f69784883a7ad6596f76db55f0b32f93 SHA512 ee152e485e0fd21b9f350fae7d492a72408b6b16f2abbdc73f62d22ce402e59e83e2ce23c4940dcfc914c8f2ee411524b590745693cebcf60237c64b0fc7a76e
@@ -38,6 +40,10 @@ DIST gentoo-kernel-5.10.105-1.amd64.xpak 65751704 BLAKE2B dea2641cad18e102d33811
DIST gentoo-kernel-5.10.105-1.arm64.xpak 60986036 BLAKE2B d96b7830413846bc65e6b7256cf85db0fd49d33827797dc9d4ecbf17500a91b3ced631e1fe72ec3ddb74a896d04c3c2b1fed41cae48d0a04d29a21815700fcf3 SHA512 0db5234dae834a87ef6d17b8f186b39dfb9f80494f6ad6043c1ba3ad785433b9d156eca8a66a477b36a3d4ac12fef7b2ae2daef22bf33c4ccd669eba0f39c950
DIST gentoo-kernel-5.10.105-1.ppc64le.xpak 55766187 BLAKE2B 69439f586d9a8d525f6169014531a63a11559839e753a83d9be4638b265ca8be2e8d1b05bbd404650f1a78d612ee261b04d9fef96e1571968d020289580c4ea2 SHA512 7e1bb44b5b23bc5445eabf10d69bfbc1cc1c0251d833c42a859baf3d89fb7180361c283ff1f8177bcce43ef581d34f9064f97e5f1df2a09f686eb73f2fddcb6f
DIST gentoo-kernel-5.10.105-1.x86.xpak 57381903 BLAKE2B d6403abc6a0d4a3bf97bc45b3161728d7cd19f07c94383e3b5172585f7070ef7a0b01c72c795e28967f7f3dcd988705ee5978b7c2dfde0409da9626585b9c881 SHA512 bf7422db5972dbd2221a82d0557b8960d5813eedbb7461ee614775373f0a5275131c6e6d398b4175e0d52d569ee4c546dd82469e816b3e2fd61a363ec5793c11
+DIST gentoo-kernel-5.10.106-1.amd64.xpak 65613550 BLAKE2B a4107bd142c8ae0f2292dc43b46f898f1c1f554c52e3333b2f37f9acf811637fcb3657614d3515ab78aa9c041ddca6c3b6385a4612d8c7725bf996d13763ac55 SHA512 180ac01d92730f52695c6dde595c56d4c0a9a0f4da1d3c20058e74dde1962a16376d4a1c00d3b00871e6fc6033ddfe0757402173f6ea55b9f77c4e5cd29a13b8
+DIST gentoo-kernel-5.10.106-1.arm64.xpak 60940180 BLAKE2B 3ca3bfecb480b304528cd32ba5b781aa288af3ebc2b6888c3b4b5f81e7a35b1fc55f0bf6dea88d6e86bc0a56e552005192db205834ea8e8392c5c7ab4166b831 SHA512 7c989b3b2fa8606bdb3b0aad87e76a9c65381ec94f5f54214cf0aa274c9a03d4434e9f8ce339ca8287c64b2885f6c37496acd6bb211a1e3c0eb861317a198098
+DIST gentoo-kernel-5.10.106-1.ppc64le.xpak 55771473 BLAKE2B da5870ca5d18c4533b833301e644856c469cdb47354df66241e1d04fd98a6ff4049d0df062af27f81d2e971c1e3a5ea89714fbd039f86038aae3d5e41050dac2 SHA512 e78a7c62775ed0620c1c0c0f6180b433439e8ca74660a6e8bd06b3a7dd5d548c143713d83f1d50200307a991da59ebddf83c7cedb8b1b82d94a34b504493adb2
+DIST gentoo-kernel-5.10.106-1.x86.xpak 57298075 BLAKE2B 7d374d6759b87d9abbe09dba5097e3d08f1dc85640440798a49e21844342b907a8e39ee6a18b4a9b5f14bd32aa13d780cf8e509c0052e37747e49caf62d6128d SHA512 1f63d5601fd377d2f4fb19d33c8d934a930ea5147fc637d7316adab3d5554c0b8e05e7e43c8a0733ed04231405afe1cc0a72468e69625d7870e4e7a249c8f9ac
DIST gentoo-kernel-5.15.25-1.amd64.xpak 69201263 BLAKE2B 8c77c7d23f0729601c3fb4251bc4d9494d59219a45c63cc809f3475ad6b0cafc2b76b24a2be8d8e306f848d34862dcdf1fe40259727815327e634b15196fc61f SHA512 a690a3002b43ff3dd136d56ea7934158557f11502fa33ebe9964d14c4b4bfb41b85b3941adbf3ad29774e5e6a9f51bb9acd46fbe7d7eb0a4ccf41eb4350cc7c4
DIST gentoo-kernel-5.15.25-1.arm64.xpak 64070251 BLAKE2B 94145b7f0a13057d09732d0e51ac3a6918d038939e494faa7d4f9a800c56db7893726f43990666a9b31e53dfc9655ee115aa573f2365b0c5e4ecd3af2668d009 SHA512 21030e0e53046fee0957e8384f9fc18d7821f70e1b0a6e0347f0347dc9bea436049c8c50cdabffc6064802d635aebf96683267bfb0edf692d3d616523c85a5af
DIST gentoo-kernel-5.15.25-1.ppc64le.xpak 57925554 BLAKE2B 38badfca386a1ef8db143de5ce57fcd0c5fe6b1ef9c23919a012829cecb964ac5f94896a197524c9c792a6c840ee41e5690ed83f7f592c8a9aa33250c68c2ed5 SHA512 9493ba5f1aabf4e35123c1681f03be156fbf1f1b036c299c90e118e53094e5645fbbdc218228d93b26757db236ee1a5a216fe6347fcb434aa11c67f7fdf4ea71
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.106.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.106.ebuild
new file mode 100644
index 000000000000..3579c337cc1f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.106.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##*.} + 8 ))
+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
+}