summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-10-12 16:52:09 +0200
committerMichał Górny <mgorny@gentoo.org>2022-10-12 16:52:35 +0200
commit8e21cb3e08385035efc6f2f038878fb6a872076e (patch)
tree2ab4eb7111692d56aeb4468135e74df5a2f8666c /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.15.73 (diff)
downloadgentoo-8e21cb3e08385035efc6f2f038878fb6a872076e.tar.gz
gentoo-8e21cb3e08385035efc6f2f038878fb6a872076e.tar.bz2
gentoo-8e21cb3e08385035efc6f2f038878fb6a872076e.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.19.15
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.19.15.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 5fe765d512af..c53ce6cdc4f5 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.15-77.base.tar.xz 3061748 BLAKE2B 2089ee718aa184767b7064d6a465
DIST genpatches-5.15-77.extras.tar.xz 3932 BLAKE2B 0704cd3c2bba649f0c9d082eb5eb42c18acf9ad2730e2d1f34f2346f01b685da7fdcf585c92064b44decb4f20db0e89fa1eeefd84f390a0a00023fc1495c5ce6 SHA512 58562c0c0e5a21ab7eb9db11e704ff3129270004a058e4554cbde2fa05def964f1dbb194c1f2539d1e3b18a39b7caffe8c0d78b6b7648133af3c30c10c78acf4
DIST genpatches-5.19-16.base.tar.xz 886340 BLAKE2B 1b0a22eef6f1cd4fb253301b31ded1113753b1747ae72ac7c3a2fef198d5e28365d3178ffe5bdb7b17e5d4b07066d9c8b4dfb5123e78211f3cc04a3d474daf5d SHA512 c98d8388ea0a494271f0b5601328893f46ed5ea36ee1ea1b020b8e3aa6541ed6141c9ebe20e38d02212a076d8a77d845f878cec8a3813d1c455f70c9be561304
DIST genpatches-5.19-16.extras.tar.xz 3804 BLAKE2B c7c5132972abcdd38803412ee035b1630c20da683c8fbc7ef6e51441fe6f2b4b6d33ae085d257ab5b15133ad858be964ae97bf0ff9ff9a06bb2d91ee202bf23d SHA512 afcde123ca1152a76fd882886b5f7fbf630da0dd4a5b201221d6afe247c1e83997a691a2ffdbaa6c292343bbfd2676bcaa59fb118522c0dce46c956737a7ae74
+DIST genpatches-5.19-17.base.tar.xz 901072 BLAKE2B d2ff01c6afd7438ecd091cd432929dfcf6678517e9887b671bd8f5afe350494060a7ec3dff8d4ada6dea3407ae6ac6b9697652c2427a037e47f447cd8cd03ff3 SHA512 476622b17702a84176eba5b8f4b74f0c65f2258686023b99c622b4f9a19ab11b75ff4bf81e733c9d287011296ac6f4f0fe985c637451957dcb84cbe97e4b8fdd
+DIST genpatches-5.19-17.extras.tar.xz 3804 BLAKE2B 5913e549bb7b0686d053b191f575506478f90b5a6788f76decdca616a8ff94f976573973fb134ac3a83a894084b72b9e22cc340a1da653cd03ce9291dfc518be SHA512 8959eeb492ac570f254ece2be0f42b6389c94491c09ff6a6195e2b2d09dc96a23e6f5db58f9e5b658ff1a9331edd8fada2b91ac9e5a437b02c648ee0551e04d4
DIST genpatches-5.4-222.base.tar.xz 5109388 BLAKE2B 7897cb44b41e0b360d17b9a7cf3295682fc6c2c6173cea8b08814b6ded54d7c6aec24b51f01912769f35774176d5a89b2fe401bbb09e92890e28e491027f9426 SHA512 e4a4dd2a5f045c0ba56168deb4e557788a42f0db3420790b5103b074d297fdbb417251d6c1eafb0e30eca1b143b2391ab091f6fc5973c4a592a832c4eb338149
DIST genpatches-5.4-222.extras.tar.xz 1812 BLAKE2B 4c5cff34d2bd8efafaaaedfe875efbda02af2903eaef2d536cd34ae953332da58944d39aa18f7d241479e93c202f9260d3a285ffafde05674709ce9c3d2f91e0 SHA512 338a0654961366814e2c6615b963fa9cbe83e71e01ca92744497997b41edb71d5a1c849be16e18d45b69d71a86f9b4cb53cbcc6af3d70b52ba29982e047a7d28
DIST gentoo-kernel-5.10.147-1.amd64.gpkg.tar 66488320 BLAKE2B 60ebcbf7fa07771b3fc25e446f520cf6e9cc311df4ac35443552d0be4143aef21cd1ac9ae942e5e5b1bf8e8b2611f487c3b0704de1c8acef816ecc336a08825a SHA512 9af65a49f8f7a3f98503709fbedd262c40d564eabb854893cc82d60d227a77c8d53b3101a3c744cab30c6c0aa8b711342646b59eb6ea45e5c8e7b33c619b34a1
@@ -42,6 +44,10 @@ DIST gentoo-kernel-5.19.14-1.amd64.gpkg.tar 72499200 BLAKE2B 58dc9e8b299122b5d62
DIST gentoo-kernel-5.19.14-1.arm64.gpkg.tar 65054720 BLAKE2B 7f6df416281db4d2cc42f0398e46e99d096ea33de49512d55d07309cfd64d7b8df915064fabd7455316e20c01cb54edbabae836f5c4fd1b0a7862cb2e0bd8b7f SHA512 1468f77ff409e61e970b24066c471ba1cff442e68b4afdc3c32317f79d90c329125766f7be6dcfa47137c50c409cb9801bb4e318a82937209a273e21aca7cfd4
DIST gentoo-kernel-5.19.14-1.ppc64le.gpkg.tar 59013120 BLAKE2B f7c23fadb0c25eb27e8c0ff90d88ac430bad6a4ed5c69c3f7131c5a028b09f887220ce7af1d6cba0283ad7e74b512d46978f48910cd99dbbb69b81fedc9108ae SHA512 89a314401ae2a1f72fd54c94c79ba662dc03f2b8ba7aab49b319b3aadbad99d4458630bc2b5a8d602b7cd45a6327abc82afd71bc055b1be0e39cabf0c796a263
DIST gentoo-kernel-5.19.14-1.x86.gpkg.tar 62361600 BLAKE2B 8ee1db37939e3bd503a861414745d7266ed63fac8d7baa5881da700aea93884f42ccbcc5865c8d4a2f7fdb7b3f1059cede9ec75bd389564524fd4ddb8c21c9fc SHA512 31966b9d42736b672e228eb7457b0b1c79bbaead55d5222e6fc39daf4f8c489d48a2f9169f689bd3d870f33dc7f8a1563380bbc53bd3fe24ead126729e543702
+DIST gentoo-kernel-5.19.15-1.amd64.gpkg.tar 72499200 BLAKE2B 0cc6192a73d6497e0e3a0d451d04e5a8a8e99d99b826c546e5395cab15dafa7ed7cd87fae79b1ad6a9e77cc553bab0b842a294f647b52a0326feb5e43c0b1656 SHA512 4c200a2954eeca9d2bf2bb6dd03e9f5ab096873be37d5e2b3feef28e030a22899219713cfef85bca1cb630d192c7f337ced652513bde0fa87342ce3e9cf76457
+DIST gentoo-kernel-5.19.15-1.arm64.gpkg.tar 65064960 BLAKE2B 280ad9eb5d50f4ea182c251932410ce0ab53a2007e71c384681c57f06529fa1db98d963d7f28a25424255f6cf9df178b3e977e5ae11a02aa9ce711997dc0fc4f SHA512 027801855da919e3107bca05580c97e8c618dc8cd923e2a44986c8fba7fb80c65ebc103fa1f2cdaa4866c44699b6c97b58f6975f7cb7cfffd197705c03ddf685
+DIST gentoo-kernel-5.19.15-1.ppc64le.gpkg.tar 59013120 BLAKE2B 8af8c8754072ad40d6c9ad8859f33a3b229273f07b29b5e40257fc6c0f8558e6d375959be0804b275d7e69b22393d458895420f6a6bc361d8fb5eae5b6154fb9 SHA512 dbf90f56cb945ec4906852f10b602aeb5ae01dd9f3aeb22e7548474b113f9124acf2cac178da051a8f8f8e2aff8c0db7a6631ec140bfca49992127b0fafa5114
+DIST gentoo-kernel-5.19.15-1.x86.gpkg.tar 62371840 BLAKE2B 056719c7c970369cf4fac327b15fe28df1c099eecc18dfa9490d679849584d5db0ca11a1ea41836f12ff2903c93d7f84ecf651928829fb2403d26a7547f8b9af SHA512 cb62c7306d1657a8bfccaf0eddb5f2e71ec5528cf96f8f23553f54b86acb1c2728b5fc4be60dabb40b2694e7a56c4e759bcf68bd7c1fe5dfcd7d240872f655f5
DIST gentoo-kernel-5.4.217-1.amd64.gpkg.tar 60569600 BLAKE2B 88fab71286addfb98202e2faa8ac97061ee99c8c3d41234ccc03a671e1e14aa571cc64a7c789463d849b0860709d353582037d476d35897884c867a6e3741ea0 SHA512 13f4d13bffdfa684108bdf7240b61877e31d33cda53f4467e97a5320eb6558f5ee5a71ba42585025bc822f1278c882dfbaf49c29d995a5973d00fb4b00d5548e
DIST gentoo-kernel-5.4.217-1.arm64.gpkg.tar 56801280 BLAKE2B a45bc6ef4e93ea72fa11b5d608219550e3f0b9121602b43fbf994cbc3163baa5482db73bf11dcd88800b179134d54be0fe66dae0f3710e859d0953425320563c SHA512 328cbc57374b39dfec097248591bf570be64bde3334c8577f15c13585f73459b4e326b6fe9978f4cc3fb2c4825a22245d48b68b7d56fbd3473d42f9501f378f4
DIST gentoo-kernel-5.4.217-1.ppc64le.gpkg.tar 54343680 BLAKE2B 7d8d824fe09df2cf0fcb58690369a6b846d606a450771796d3e6eed487e806f511faed8d4194100543524d170f2bb7601a0fab6ed919cbca5f3b1c43bdf2fe81 SHA512 698a1248318adc9c4b7284b5273aefef884c42306b410a56904bb7780fe3190368c81111f3c66bb82418bcfb6da48bba527d5d12ee08725c5a2b3c304dedf58f
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.ebuild
new file mode 100644
index 000000000000..0ba336c5c1aa
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.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##*.} + 2 ))
+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
+}