summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-16 19:53:25 +0000
committerSam James <sam@gentoo.org>2022-05-16 19:56:50 +0000
commit3412b9b98058fb6b4ac805d7dfc26985785bea11 (patch)
tree69c63879d3737d9c801fdf1748bf420b9686c8c5 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.15.40 (diff)
downloadgentoo-3412b9b98058fb6b4ac805d7dfc26985785bea11.tar.gz
gentoo-3412b9b98058fb6b4ac805d7dfc26985785bea11.tar.bz2
gentoo-3412b9b98058fb6b4ac805d7dfc26985785bea11.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.17.8
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.17.8.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 f6ced8dd7cc6..e64a64d3897f 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.15-44.base.tar.xz 1805920 BLAKE2B c29bc5dce61deb71cce45dce36ef
DIST genpatches-5.15-44.extras.tar.xz 3932 BLAKE2B 47d98e8b5fb0362cbb565cbde17c740c55909cef9958865593e312d47c52a7a21becda8bf7414482423732422118efaee87e741ccaa2f8b5231b111f5150a6fc SHA512 092e7143107fb37a83fb0658729c1ee5621a0c63d3e8a38325db598b65579d84089115f37e65d7fed45da3b3181b3edd32d5e1f01cc2e7835668251394b434bd
DIST genpatches-5.17-11.base.tar.xz 684208 BLAKE2B 1c1f7a450a1f30d18f8e3eb7cb2db8b170f503a1b17343b25130408725f08c6ce0db7fe91eddb1b8d562bee0b6e60360baca4429aa09ffc1e7257b531ea6ed4e SHA512 5e0f2c89b93bd492c49d36627e6c6ded98e49f210e4c4880f84717e4248b711b5bce3d0db04ae78a29a01a47b3a2ae3ae5949cc02d755a22d63e6b7117477398
DIST genpatches-5.17-11.extras.tar.xz 3932 BLAKE2B 8f65276ac101924b918379e84da046a8fc56ba293ebf5c9ace449917e58400ef8ed5cd947d9de558ed95735996eba42e01053c8e71f1a3782696e1ddccfe22fc SHA512 d7baa2bbcf982ede22dbc06dd1a452759c876357ee65750b21bf5a6b22939e5a924311c6e2315f222a65386ec028399d5c82eb0a1b8a215757bcaad1d83b001a
+DIST genpatches-5.17-12.base.tar.xz 685640 BLAKE2B 3a662f399b18c9ecf54feb6688b706e2d2529d8c6ff763767d0539475ee23d11bdd76dd236da639f70600c2669b1e6796580a5dfd3d4c5c9491d79e5fd199b48 SHA512 2f360dae9c7f5d298224364fe02dbdc99006308a476b989715111b77710c4c805c018ae95c8c699db34776f74b24e326b5dcb90f4795d0696cf1c40e8d4cbcc3
+DIST genpatches-5.17-12.extras.tar.xz 3932 BLAKE2B 3c0b16365f2ddce7aa5323413a19ca1b37fce7cef2d0ce15e47b54dc3450f6cd62ec64d5913ae2817c302ee4fc2556f9e6316a7272aafcd558fc309b3c00e369 SHA512 4eeb7ee2649edf630e70f82584c278b4f6758e2937c3b067575286a3353883baedbbbe578222bfa187674d953b036ee2f1c89d001030efb1db6057f6d264f9ee
DIST genpatches-5.4-195.base.tar.xz 4639264 BLAKE2B 7a3558a8bb125d616bf10dc29045ce0e5b6432eaf4e38326727ee184ae38d90937fc0168bd2654a8c871b7a851a7977cb9ad1b6b258073b20988b51be189235d SHA512 7add11fe740fe7ebb785f6dd2548ce908a053e30fe5ae8eab3e2b95eb6c8da9f9c5dfaf3d2e50a0a319389631162018ea2675ff8770779e8be39bf10a8e21890
DIST genpatches-5.4-195.extras.tar.xz 1812 BLAKE2B d285c26f84b2275007c3ad4aab1d7fde0ba467ec07863fdf4962737b06bbedbb452a8601f3aea28fd4086b2e80680422e6cbc749cebe49918a37e1c790532359 SHA512 f1cc2db130045affd76c6e2fbd8c4d2806b20faa2feae80e8f88d821d4384ab0ecab3ae66d692666107e23c3deb6cb70231b6251be1e2e5f00e880af48228615
DIST genpatches-5.4-197.base.tar.xz 4667616 BLAKE2B fe777dfe7e9301dbda973c6bbb1459c9e8ee245a729b50e528b8f58f8cccdcebe1d572217b089910eb7402473eaa6cbc39c0bdb11cad35d417d3a32d29ca5456 SHA512 eb05870e88d1b1e6740abe669ae5de2994283e95e427ccf55c7f184be5e36e20bc52d74e5ff669ea316add4d62da6a59bacb1a689c0f30a8c0a0dfb3c139b639
@@ -46,6 +48,10 @@ DIST gentoo-kernel-5.17.7-1.amd64.xpak 70401580 BLAKE2B 5d0f987d09eca6443c6f61b2
DIST gentoo-kernel-5.17.7-1.arm64.xpak 65831397 BLAKE2B 9d243c0c8d3403c4e13fda747df7c73e1127a34090b11aa1d3a41459fea1cb1df4ec14f6e7a14a25aa6f13af4f1e93b816e5e62e4d54a21715940996e376c425 SHA512 ebb97a89d20d174f70498482c4fb362153bfe28369aa3acffb740d761e65ceae0d10b7c31ff0bae45334b855c18dab0d96412c183af5059635451afa97300a38
DIST gentoo-kernel-5.17.7-1.ppc64le.xpak 58829967 BLAKE2B 8594dac1da94ebd7e631597358e8537fd853452fa116557ad96f072b693c54c31b16277d7cdc91a456217079f26e64f2b02236f0aea5268fef9bff685d198c2a SHA512 7b5dc8bbcd57bcce88cce96373361cab614c40878cc708992b3ce08395ddc2d29e884992179c158b5523c1185177dbc01f86ed5f64d6da78d4c9ddac4e0b7dd3
DIST gentoo-kernel-5.17.7-1.x86.xpak 61092777 BLAKE2B c19d38f83ea510c390edfda9aef779d0bf9ce87c812e7bd509270f0e9a3ae9de64d802523709c9ba145aa14793d359874a7e4d0f9918e5d977f093c6a915ff2d SHA512 262c055ebee770cc85246dd338bbdd565491ecb588e259a854dc1bc2896f4e19755d108003146145a667d944e1c300236406e900a0948abf87f9a08da670219a
+DIST gentoo-kernel-5.17.8-1.amd64.xpak 70521204 BLAKE2B fc0565c9467609e412ccc0f41add474affa7a1ed18bef29c12f84c9878d8ea090b821d96257ffe29d000e695c86c96792866171bcbaebad83fe393be44d8d5ee SHA512 65202d6585579a2a81f6c8a9b83b673e7d947abfe0aeb12e9dc6aa6264e93510b0e1eea7ce878ff5f83e51298403b2403d196b9fadee32e63a02c296faab513a
+DIST gentoo-kernel-5.17.8-1.arm64.xpak 65839833 BLAKE2B 4d1910c28fe5280ec1fc2f04a87f649663d3a4b053aebe585c8c4e5ca839e1a225a830733f0507b170a0582146d12063171d1c10822febb5abc5a92202b559e0 SHA512 f0d968334ac0b80b8b6d6e6366477e747a0f0c7f7e1e1b41e78c5236bc6e6940014ba3d11c9f68c9133b7f4f0729e361c8a5991f942d98a546d2c4876760a0ae
+DIST gentoo-kernel-5.17.8-1.ppc64le.xpak 58851956 BLAKE2B cc0b931a3cb8cde11c5ef9c6463eeb41b1285d14d73fa1d708200ca298b4eaf01ab66583e5c864a4d17381591b83024a0f3adb7a5b67671b1b009e81452ef69b SHA512 fec23f43632d5b401131ee30157c7d84395521db2fa17dbcdda85aac3130d3dff9c618a1a88ddba6f8fdfb0a7c0706e1a384620f2026070e828f9e4722ca4fb1
+DIST gentoo-kernel-5.17.8-1.x86.xpak 61216823 BLAKE2B 02ccfb25f436345078d34d4fbc1355b3d3e582f30bf7fdd05ad087f1dfd84f1b0c09d0961a4bd8bc0c483a2a420eb2dcd8751e01fdcbba9362e5488aab8ce395 SHA512 6a7dd70b6b02ffe596bad571edef20abac7e23a53e807ceb30a0f02a15dafcf8cee0993508429845283cb0ab667df00eb98bbd506bd2a8d48f6b7e1542385154
DIST gentoo-kernel-5.4.191-1.amd64.xpak 61582533 BLAKE2B 01fe45181caa224611685c5632a0964308fe2465a1af3b3403f5626fc402974863bc736ba2ee5efaf9d5cc3dee39314f1ad894aae009055257fa7b7da67c5f53 SHA512 f2da1f27900ff178491a73172e922216d890bbad3b1cc4025125ab9704e612286dd0034793b64815e71f5a4a1dc3c27c242c71025e97d18d63bc02995f283efc
DIST gentoo-kernel-5.4.191-1.arm64.xpak 57770724 BLAKE2B e21b3d637906dca3438de4baafc019344449ede23ad9c4fba3371d21ac87673b02834a9fdb5cc5f2f0b61b384175b7c49f4eedb1a0380164ed3caf58ee4e84cd SHA512 c173d644b78a9e2cb107ea2e2568d750e181b27fee99607aaa189dd858aae96fdc34ca16a5bf511cfe8007e266a0c4314ef820c9d18013a7587bef064396df5d
DIST gentoo-kernel-5.4.191-1.ppc64le.xpak 55051593 BLAKE2B 2cc53ec5a2985029518fed1b7daad4b23f3eb984a7bd1eefc39b449321dd31773342877001aa0d652ec4d85d25efec40698318d4040ae728fd466f65e2a4f557 SHA512 b8b7014f10088674143b907990b3d25baeca83ced3427ed6038b4878f5af0aba8807dc8b3c4d70fb934392160f4da118055bd2110548dea62cda840a083f7119
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.8.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.8.ebuild
new file mode 100644
index 000000000000..cc187009eb97
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.8.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##*.} + 4 ))
+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/~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
+}