summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-10-29 17:29:10 +0200
committerMichał Górny <mgorny@gentoo.org>2022-10-29 17:31:02 +0200
commit1e4721ead0f91d320df142ae5a099d751b5a5d0a (patch)
tree78a8c856456cd64c4b960dc91f5419ac7b8c1a5f /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.221 (diff)
downloadgentoo-1e4721ead0f91d320df142ae5a099d751b5a5d0a.tar.gz
gentoo-1e4721ead0f91d320df142ae5a099d751b5a5d0a.tar.bz2
gentoo-1e4721ead0f91d320df142ae5a099d751b5a5d0a.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.151
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.151.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index cc91f706153e..9049a5538bad 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -1,5 +1,7 @@
DIST genpatches-5.10-159.base.tar.xz 4292244 BLAKE2B f2afd1af247c7c7833787f4fcba41f36793233de4f3c14602afb18b6ebd7ac918ab49f8be4c1f8481cd9f6249992a7cdd7b532df029e436ff7f05780c8671578 SHA512 f8cdf11ffa78229db60eb33134b7648c75b2ea08e9f521126497abd19dcd6aa7b50b638a9ebc61871c249bd2e8f117b2faad96b3d6afed0235f56f25ec073976
DIST genpatches-5.10-159.extras.tar.xz 3868 BLAKE2B 2cd0fc67c5b6f89303e3dcf5492b944eb048623c3ee865521933793af8cc2837d841e5f740035b1ad46a5b2f805f6fa8f1004f824ee3967c545c417e7c3b2513 SHA512 3b5b76c7220c1068ee2d29c48635655af4a227f542a870c3c140f7eea256f3d3e2c3df160c6bf193e595f150c2b51f66818c646af1ba679f94ec0c4086fe8b27
+DIST genpatches-5.10-160.base.tar.xz 4292896 BLAKE2B 23f6fc8d45f13b190f6fcf4532c266550dd186d48b67d8d48b839f683d453394b29c8898abbe730699c52385e28815d9353fec8c2efd8fdccb25d4102f5c2f3d SHA512 0f5ad6a3fad45ffc8ec01d43f02caf872d819e7f5e744207b2f6bebab3ec356e83e5208ac08ef23065ace4a67295621d2a5aa74b1c720f1643311b2819ecce08
+DIST genpatches-5.10-160.extras.tar.xz 3872 BLAKE2B 4168fd4f59232f91d3f50faff5bdff7da05e6b0decbfe5fa8b0cf7ac21a083eaec162d0be6422667a2e895b0005ea526ff134a4a353f035b442687716033178c SHA512 2876f3dcaee91cd20d5f41f77e0f375c3548b9d0a988ded464c9a39ca53f3b0ab7eb1f9cbe75b6397106fc48a869131724814cd7d01261d5f511dc3e6c00a3e5
DIST genpatches-5.15-79.base.tar.xz 3195612 BLAKE2B bf8edc209ecc99da4f4c05b575b095992e64ca421e9848a75ef1ff7bca84377eec93ac3bc7d23bfd4c91d529cbf1693e231b606b27ba2ead46e9c3037db10c21 SHA512 c8cdadb66f904f2083f713a58bce743e56e27440f01fe98b3ddf82aaa43401c2fabad029060e7c01590dc294edcdfa8ec6c784f24ca87a1b9fa8703ed626e4f3
DIST genpatches-5.15-79.extras.tar.xz 3932 BLAKE2B df50c7ce655f1f81d46ab6f077963afb0997ed2f6c0b70aa49c34a445d3f8938cce7201b75221705fe27c0a6f699dc553f932eeee7960a21dd89e3c55dde9306 SHA512 31e8c8aeb98e01dd1e0b25c51cfe48d5b6bc98617833229b283d35da6d7572b95dd8141592a2350ff01554bf80d918d2137ef2eb248c483ab22fc3db20a11fe3
DIST genpatches-5.19-19.base.tar.xz 1098964 BLAKE2B c79251602e677d36db4f923ad148422c1c19d9e35b33d1eead75f317ac468ba919baa0c61a690425714bc0b29d96eb47aeb1c960ec4192ccb3905df752f81ab4 SHA512 bb0ed1e481a78f8f65229db777c5d8031edbd3d31cdc0ed45e48d4f5916b838397c1ccec5d465d957673494469290a1dffc8a4466c252395348c8160f2f5cc67
@@ -14,6 +16,10 @@ DIST gentoo-kernel-5.10.150-1.amd64.gpkg.tar 66488320 BLAKE2B 548b1836f84cb713bf
DIST gentoo-kernel-5.10.150-1.arm64.gpkg.tar 59648000 BLAKE2B 07d60e7576f56ddb93fdd8128a0a7392865ab6ab6d87069aca8845aea7128fa1cec81e9f7733e9620c77036641a027a6d64636b3c8561c2483f59a17e3bce888 SHA512 8c193e9b4e2ff698912c5fa09c8644561e9d555434a7b1f2d7406c9045604a17d7ae7699d264fdebd3354f30f7e0f679e0fd87cbd373fcd4b843d05da304a49b
DIST gentoo-kernel-5.10.150-1.ppc64le.gpkg.tar 55029760 BLAKE2B 144627355aeb03f3a7886603473cee7579b7e9cf4d8bd8e53dd6e65a2713a008d789dbb4b0c8521c295d300d8e5e47c1eb20abc81f9667eb587d24b25387c8d1 SHA512 00354da7ab9103ce3664aceba5bddee24e66dc610eeed00e83460c776a4056e219ccce73d2bab7ac55d19500456fe8379025a519f7273487b9799739776d91cc
DIST gentoo-kernel-5.10.150-1.x86.gpkg.tar 56412160 BLAKE2B 821c8d243cd7633b39a47b38a87d25297f2485e632bd015cda0dd1e0b880bad44bcc2e7ca1f02cea3d3236d0b162b83650ec2eefd62b231b39ec8be41b45194e SHA512 b19011a13879dbd08794c6388f3617bf0f176ff37b04e52ec89ed2ec740a88851764807ffc4e4b52473c015a0e3cda78fbebebbcc5f2b5988e97a7a41074c1b2
+DIST gentoo-kernel-5.10.151-1.amd64.gpkg.tar 66478080 BLAKE2B de66ec7f8f6c301bf4ddbfedd091b8ea27c03505a23e6ff7e7db05bd62d43dc004242d76045abd06fe32390f0feb869a1cc2c8bc7ccb954680ae9fc968ff1a3f SHA512 2b8a20791a5cd0247cbaae41738040752270d620a531cfa9e3363e1dea95326507f22c5b0371e25539e4ea73854c1e0b2fe7a82ea8e55314816a595cbc8f997b
+DIST gentoo-kernel-5.10.151-1.arm64.gpkg.tar 59648000 BLAKE2B 76c0de6e34bc1e821aa940d371b7b505ae2ca57cd398ca011d7bb6c2c36bc8a8f76e62b4cccb85f4c65c9d5a2ee08c06f6131124dd0f04e20bfb1a08a69d4aa0 SHA512 46bc4e6ecb6c77e609c27ff6a649678e959ec5fb5d57651099da862e831952ebf727b5d7cf67ad047ce6df8c6fa8af719d63fd8aa2ee0328a6c90b56125fcbbd
+DIST gentoo-kernel-5.10.151-1.ppc64le.gpkg.tar 55029760 BLAKE2B df852e64d4ece8d209b7827cd298370b2d18d916e10c286bf7fd038164706a208c16e9cb3617b9e0b186cf6a3374177c8ed0108de54b837223d0d091efa2a7f0 SHA512 d0679b789340622d099a157f53fadc928bf658aaaa78024cb16fd90a0d02b90d4f66adbf137c0ce95bade560f2fd0d1758d8c0345a7df173ef60e7d1569a04b8
+DIST gentoo-kernel-5.10.151-1.x86.gpkg.tar 56412160 BLAKE2B a826d5d2e769e65652e5c08458de8b239d752bcf34360e8430ca7eeec44f2e25f4e47b314632d1c03961646ac53ced0daea80b759a0c6897f83f0bc0ee9e20e4 SHA512 5c9fec62d0d84fb0080ef212758231144dd98180eeb573dbff4409071b89418ff6904125a598ae6ca723fdc399041b982a74bb85679b453aacf63a6128f0e7bf
DIST gentoo-kernel-5.15.75-1.amd64.gpkg.tar 69816320 BLAKE2B 738b6bc811c9af719007d4333c90751117281d2dc7db5722c289dd5d44ffe52381510e927c6e48e35f6204f67049b0962ffd1e4406401f0d712baaebd8f79511 SHA512 c732f731e0d9438305142ff6f8ca1deb2935ad23b694892e0885ac40a08265e40fc134cf31351fd0602d43276d8d08dda777a6baf2492589fa0ae50b1ebe8070
DIST gentoo-kernel-5.15.75-1.arm64.gpkg.tar 62873600 BLAKE2B 823661948b075c438dff583c5b19602d2a7faa9f1e05bd5d8f036d034d468f91605600c15bbe62970ee436510ac1898afaec6d58461749a5eb34b4175a63f1db SHA512 9e9a19bd2c2120bf77918047a4ae728074a88d29d207628c077b0c4ee425ae0b9c266dfcd22dc1204e7c3871927d797aa7bbfc759fca0efd484edeeee1a2f637
DIST gentoo-kernel-5.15.75-1.ppc64le.gpkg.tar 57241600 BLAKE2B ba82e45ea411b343c92fdc8d9c06565694e12955287451bb148d34a374004f68f9e32cfe1535dcdbc3e574018d8a3119e7d8c97c2d5f2b3ccbd0acf8ce497669 SHA512 c3a6d0a85d227608d5b2416360b9d597176b83643160b6b4a61f8a6bcdbe15c89ac9b6f0aa13cd4edb9100fdb666ddeb09de765b1faf5970360bed2546e93898
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.151.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.151.ebuild
new file mode 100644
index 000000000000..26eed75d6c06
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.151.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
+BINPKG=${P/-bin}-1
+
+DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
+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}.gpkg.tar
+ -> ${BINPKG}.amd64.gpkg.tar
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.arm64.gpkg.tar
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.ppc64le.gpkg.tar
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.x86.gpkg.tar
+ )
+"
+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_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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d boot/dtbs ]]; then
+ mv "${BINPKG}"/image/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
+}