summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-12 16:29:41 +0000
committerSam James <sam@gentoo.org>2022-03-12 16:50:26 +0000
commit81a5a9aec4f3a7eddbe10140dc88f6769f9912b3 (patch)
treec5697eb78d059c3ed0872664ba4b8ebd6ebf79c1 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: add 5.4.184 (diff)
downloadgentoo-81a5a9aec4f3a7eddbe10140dc88f6769f9912b3.tar.gz
gentoo-81a5a9aec4f3a7eddbe10140dc88f6769f9912b3.tar.bz2
gentoo-81a5a9aec4f3a7eddbe10140dc88f6769f9912b3.zip
sys-kernel/gentoo-kernel-bin: add 5.10.105
Signed-off-by: Sam James <sam@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.105.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 0e9005acefcb..4b11cb845f9d 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-109.base.tar.xz 3065192 BLAKE2B f87cd7cf1945cb9dfcc977b315f
DIST genpatches-5.10-109.extras.tar.xz 3876 BLAKE2B a7ba052b553b45a44eb92d19083f44944ad143b74e8d9cc50fad86b3962f66ea4e62aab32ecc14c89a25f7ecf552f97878762dbf3ae4d931a14f6d519857f3db SHA512 6b09eb543df2757c1cecb7f3dd03ef10435c249987ec32f3f04206b9f0b7241b42310dcd23f8ce5b215826ce401a51ae1c047bef051e47709687b53adb071b70
DIST genpatches-5.10-111.base.tar.xz 3106252 BLAKE2B 2b55a1c6fe10c5882322761602054e1b5334db3a5392818fa7cb12f439a25cb2152e46816d4d2f454d9b67675df274f96e57ecc866c1025af6174a883efa94d7 SHA512 66b9f2c1f00eb92d1e3316ba11f2196cc95300884c2c45444b2b7fe5411ee69067f4955930f65f6696ea29753d6c594d818c017864cd337fa5f12ff9a601c6ee
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.15-25.base.tar.xz 1018612 BLAKE2B 493b8c695f2bfcdfa36712143ffad423883273b48e0ae45db226d9e12b809764538716fa8dc257d0cb211f9db50f6af437cc8d19dde0e8af5a10accf85a3b4be SHA512 f268ace309d283079e0f491a3a77de56d4a18fa31bba643be4d215f931baf6a251d1e28c358d4b606b0ea15fc34e71f6b13901f5eb95f18ebad79f384bb6e5a9
DIST genpatches-5.15-25.extras.tar.xz 3876 BLAKE2B 17a20913e907e6b6a87afdd7775b7f9811bc3eed5374b957244242fdbc655519606063656bb8e5f51ded3168f73e99832d0cdf66e830811dc1e5ea0c0b8a2582 SHA512 1b8f4424996351a70c26f5a90c2490078c1a8daa80da578e2e3b3d1c4be6a4474d40cbd2e6fae8b1f1b9389cdaf2257e01a14ac6c2f7ece8a883d745555a686e
DIST genpatches-5.15-26.base.tar.xz 1059876 BLAKE2B d3a7b03647f3ce4a10ac4b75e52723d26cd56f880ca786883c236b3569c7312555ca57325a039bf9713cb44b930190b2e099de6ef9d677a9cd5e8ef9179fb52e SHA512 241f1cf431626fd0f406f5a661363a29293a23057c58a4cf63bce6383d126e4f276be371eda670abec8699036d46c1896788f1f56d47239fdb9eeec6d5c8a51b
@@ -48,6 +50,10 @@ DIST gentoo-kernel-5.10.104-1.amd64.xpak 65701298 BLAKE2B b3d41d6bfee04eea625fcd
DIST gentoo-kernel-5.10.104-1.arm64.xpak 60934516 BLAKE2B 9301d30d4e041a1c6cd0c15646a52e2a2d86ab5b9d3e5f4dd5137884f0eced380da8dce9e67e8ca115b1fc76e38b1beb3b198e29fbd0b2aba71b1ca5adb7ff13 SHA512 13510a70ea679dd1ba4c85e617314a10325b348a5d2545243f3a4f088f5c6ebd5d0c9924d1890439a7c55065658f03dc39350b2d6ee9162130d2ba70d5ee2c72
DIST gentoo-kernel-5.10.104-1.ppc64le.xpak 55706875 BLAKE2B 9b758d3cc87207108bc10ab43a0c63779d1e3891f5936dd0c5eadab8820b77d5fa9f9ccbfc61e6c8b256100a7f7a7551dd9b71cc5b1dfcdde47421cea30d1828 SHA512 9026a6ce66c53b2d8d4b554aa74083d17e9867308574126740679e7c863f0b251362f6119898dd310b4ba987b0635f50a38c77035fe3ddf9a3bd7f5a4dd2fbb6
DIST gentoo-kernel-5.10.104-1.x86.xpak 57376180 BLAKE2B 5382b3c95570c6b4d4e57d7e4b7f4adef5f3a7d5684f39e2070628c8a5f0e4fc0a5f1c640f801526d0141b917f6dc1069d8cbae486b67ddc46135ea76b1bb401 SHA512 3ad410b8668fdb8fe730d71a54bb7993dba653d83a4e114931286dfbb7c1235e5ecfb131de5fc15c6f27161ad817f41826a9e49b1f64ac5cc0ac5d0a87ece9c9
+DIST gentoo-kernel-5.10.105-1.amd64.xpak 65751704 BLAKE2B dea2641cad18e102d338118607b11fca88d00c32b3ba7d8fee085c28f48ddbf0c6522e3d7cbc63038c650758d7ebb4982cbe91e23373c0cfaee62370378b6ca1 SHA512 ea394e5cdadb9de7fd536d088ecb3d75f0e914f0e41420a563af4d6df5873f5a4ca033541264a867a00340793664eaffb35e9755847344df948b5c2a0bb8d44a
+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.15.23-1.amd64.xpak 69156149 BLAKE2B d44b2969462458282bbea66c2cd7e2cb7c9b603be520d77bd0b9e39b43ed182bc6a5a61185d40d015369c4a377d130267b93c108a2373518113f6faaa00ed3ba SHA512 067589d15c75311adef79c454ec68516076d891cf2d94569881c5b5dcbafc8a1cf229a62dc4810df4b68f8f1eeb0424db3036509f6e4189c76c49ae3c2449621
DIST gentoo-kernel-5.15.23-1.arm64.xpak 64071650 BLAKE2B 51d83f9ae6593e93c73b7f9dd575d4200804d3df7d3c1d0a52098d69a7a277d1ea5682bccfdadf769f319527ed7b41ce216aaebe75559fbaa4cde956b63cf66e SHA512 3e149646a757163bb6205ac7ce0e19b1d3812d160d8874a120c8eafeb2d3552c34f56a33f31d417ddeed2adbcdec37eed492f6a2b7b384729462cd6861a70fe1
DIST gentoo-kernel-5.15.23-1.ppc64le.xpak 57841330 BLAKE2B 92ea96a25fb0bfcfac67bbed26bcb3aef78b253007c890045936c304223652751846d76ba5e963e3979c753f5f7cf6a680f6a7f2b20a1f25fca6c3443ddc107d SHA512 daa756525faf67274dcdd780b501e70e4b326466fb563637fb9e9ffa6d65eec9b3f3f37721b855ff640368c81a8a7ae553f7c3a76072bbd779226bf41e54a8d4
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.105.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.105.ebuild
new file mode 100644
index 000000000000..3e922d0e134e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.105.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##*.} + 7 ))
+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
+}