summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-22 20:57:00 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-22 20:58:08 +0100
commitf324a94a2899bb7b487f3b1d40f77cb20d2d051b (patch)
treec5300c8611539a702b09094041eaf79258549a0b /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.15.104 (diff)
downloadgentoo-f324a94a2899bb7b487f3b1d40f77cb20d2d051b.tar.gz
gentoo-f324a94a2899bb7b487f3b1d40f77cb20d2d051b.tar.bz2
gentoo-f324a94a2899bb7b487f3b1d40f77cb20d2d051b.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.176
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.176.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 74ba7a642026..aefaa2a50894 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-183.base.tar.xz 5092416 BLAKE2B d4c674fdd2891051748ab33257e
DIST genpatches-5.10-183.extras.tar.xz 3868 BLAKE2B 4f42863c501d8636ee3d991f2e434123a891446182dfd5c45482e8aa439675f62db9388eac0ab00683001d7a7ae49f576968912a048d4e4a947a5e20f2830ccc SHA512 8c2229286e958d1d88c9d93dc3e6d26d98e91fc67f7040d0a96d35b89da8f15d11b339372a3055eeeb448352372cde839e7fc6fbfb0600d03337d224af4a8178
DIST genpatches-5.10-184.base.tar.xz 5117468 BLAKE2B 6e8e0781f40b520377a2ce331cf46e9aa5aa41423b49283ae7dfcb727bff4adeb54ecc3cda91a31af36d05a1681c7ca5fc28b58a7ecc93a9b909f55436b9a665 SHA512 9b1cb8aa0f9f576fb8944ecad5cd39c97e6a9b9a97b7c80c9c649ea6590be522f393f2f363cbdd47471d6e5abcc469ee166adfc4d3bcc254207f26bceda29181
DIST genpatches-5.10-184.extras.tar.xz 3868 BLAKE2B b3fbf5c425fc23d0a80eb7a738b3fcb3c4cd0948c103a2db42f976ebf9ca04e3c10606bbc29dee8816c9812d962aa648a729dc6887ca780adbdbefae1c62b696 SHA512 d1e3a5feda8d135685164bfaef15061751c0ee90e2f66cf36e0d2756a02cac0927f5ea5cd1ad15debc6788978c2afd2f883fc5fe7cc1b7e13200d610d1dd591a
+DIST genpatches-5.10-185.base.tar.xz 5154772 BLAKE2B f7d88f5c6b98dc265fbbabcc5a4590f44eaad5e6a6f250e755be4a9686601ccb2e7b9e0000791c207fdeb071b518073cdfcfc2de80ffd70f16067c0dcb9fc586 SHA512 a13febea3cadb7de762e1a2a46c776f22bbe4bf0e9f471c1e0dbbdc63431692ee7b6812e3eaac9623a4b92d08c64eab3c82f8dac0da5ea8d55d4ad6bc6b95a15
+DIST genpatches-5.10-185.extras.tar.xz 3868 BLAKE2B d42ae4d95f81771334ab313b01f8282c4e12ae4b89e2c7e60ebddffcc78a53131a4b54874ad914a47bd81d3b9e24f4c072a8d042c824dad8cef209a20d6788d0 SHA512 9bb9676480aa5fefe8a5202da3d20a0e2f395fcf4a0b6ecdae2ec62745b5adf4955a56bb1a346b7441162f36108b4c1f02374b248217d99f03d241f5dd51bbd9
DIST genpatches-5.15-102.base.tar.xz 4041416 BLAKE2B ab6ac9c8d03d41594f1f3c0b59cdeb3d045fdc0bc89926026a7b3f34eef38a869da1c9adfa1ccf465486f885dc4abb6c8d09a8c36f2732bb961b365a749e8985 SHA512 2df353c92659d8f41a45bd3caaf33e21542cb01ab210495a632e65fe71e8bee7c31ae7283827bc7e0683737f3a451b617db95b5a8b559cedc8296496e2fa3302
DIST genpatches-5.15-102.extras.tar.xz 3936 BLAKE2B 4069a121383a58eedd557cfe3c421ca8c033e4b7a976845c557b3faf66b33d9efc6c7b3d4dad20cdeafb7d62588a4c49bb7102abfbd7acb1c98b1afb86e8f87a SHA512 b12c07aa5c9974856482f44ecc39ae03f7ec8879d07bff562d56b0c18752d748455b519f7bd53cde5f22df1787c15d52037ee236c1150edcc20416b9c6c1e272
DIST genpatches-5.15-107.base.tar.xz 4209440 BLAKE2B 48fcb9a837d9f13ffa96194e2ec2209decd2d7c50a8d18ce4dadcd15f720496f5a82b821788bc20631b6ca4679cc3f93e48beae4a0c1c515747086476b5c1d5d SHA512 e66a46e0460dc940a021b37f673953d527d87c92f323d3f49d891339bc0040de492193e7415589b47b15ba37fcb05a7c1aeac31d612904afefaf2f748e1ec173
@@ -56,6 +58,10 @@ DIST gentoo-kernel-5.10.175-1.amd64.gpkg.tar 66344960 BLAKE2B 7dfea339fe1beffef8
DIST gentoo-kernel-5.10.175-1.arm64.gpkg.tar 59340800 BLAKE2B 406eee035d6fd4e4104dacc935c8738f2c302ba39b6c9f765700a31895e88fcac0fd9faaa02f4261576fe31d518a974ca2c3a40efdc058d119f881084cc6cf06 SHA512 1bb96637b48f9524105b4e6292d54808d8a71cea75c2daf5a83ab97d3fdc2bb0bc1a3cb9d08c623c8fe52afbfc2815d4916a7e5021b454a65e52b0e2196754d0
DIST gentoo-kernel-5.10.175-1.ppc64le.gpkg.tar 54917120 BLAKE2B 93d28d976d8929ab473488b695a6ffe69dfeb033a27a1ebd9511c1eaf22b22c52d28b2eb3c2b344507c5379718a1ff95b9aa49aabb28419afbc1fd4d81fec2c2 SHA512 e59b2e0ed6d7fd8a084f0d5e15e0f2415e344ee5a2f5566f062712ea19adc2ed41f99d7bcc459fbaded2ba43183965cd0a98898337535a9a597ee3532c4dca78
DIST gentoo-kernel-5.10.175-1.x86.gpkg.tar 56442880 BLAKE2B 0ca2433b87f7ec0e3bc5530b973495608dded3a8eedd42e618d02a1012d36a5af20c32b1ff4cf107efd0d211c640a1a1199537a35fb37c4d1e63b039fbc03346 SHA512 75a4a4be86114de89197c6f1a5c5a5133ea0812522f4414cd2dfa946232925d2369141282d8399cbbf626c130068142f9f80f709dbf0bead3e88b28dc6bb4bf8
+DIST gentoo-kernel-5.10.176-1.amd64.gpkg.tar 66344960 BLAKE2B 4500c918f8874a35eff0d44ff2f59dfffe5db1216835244a14ef4fec47ecce391d60effbea17bf1602a5ad8f873aafd7cdfcab17d21c90a8b37a41c391bb2dc6 SHA512 bb26c1fa92f74ebf92952bc4650d03fba176e21256103f0576545ee86cacde9c0b3f7f8b9c25aa2839825e89ce8f525f69db7256e61f047bd70f7da8d4b167f0
+DIST gentoo-kernel-5.10.176-1.arm64.gpkg.tar 59351040 BLAKE2B 62c735fd9312975b56f4ce56776932e49e32187ade954aaae4a75b3ea8e2a64f263e52662f2675668e16569caa0258338b07ada46ce5de0ee6008f4af1c0f9de SHA512 7fdc7709cede4c8419089a864ff549cb0c80dd720a33185a647787292804bd783078944d51908bca3f667e49eef5812d863af48c898543a93d1c8f566130207a
+DIST gentoo-kernel-5.10.176-1.ppc64le.gpkg.tar 54917120 BLAKE2B 773e7cc8f90ebb823cec04ee8c3a19af93956318b41005374c434b0f32595ae441e9678db579eb3d7c0344c688ae99d7712ed28cebfdb977a7c2662ce2ee929a SHA512 1cabb0e8ad0af4fdfbbf5e59f7a282dfd60ac5072b1de63d3d3db6a4fd75870e766815fa20ac9d9e9a6986e0f8235a62e5c45c3fef52cc23317566796a3c2417
+DIST gentoo-kernel-5.10.176-1.x86.gpkg.tar 56463360 BLAKE2B 7357c0283099fca25de0429f45da5ffed47edd7313f4989ab44519ed787dfdf252a40b83358bf07e34066e6aa408f0ab5c8e8655a0bfedf3ab0fe08f18eb1762 SHA512 0baede4916156e7dcd3d21ed6f6f07f7870281b31bd89f8b1e0178eb6f84533eb4755f9d439e182e5020be1c503757cb429416b3e4c3f65572a957d94e3763dd
DIST gentoo-kernel-5.15.102-1.amd64.gpkg.tar 69632000 BLAKE2B 7214665a176b2ae00dd2ff77164b531b690aa971935e4a0c12506d94755003b367e89036c0996c75b5727625db1d59af71881bfc2e82a324f111a95bda5d753b SHA512 b7449349cbf086577bcda85b6a7218b80f2c01b761b9d3480fce0f4890548ed5bbb7a65cbc649e398e830e750cab763f00c0b0c8ce48c53dc31f0073e3b72086
DIST gentoo-kernel-5.15.102-1.arm64.gpkg.tar 62576640 BLAKE2B 8ff724481bdc3a80baed7ed61722e8e872721fd071fd505d8fd9f829818a93a92a8c2848cb50abe95d82ad621ff5290adde5850af2cdc32c94e72ebf8e0d7b1f SHA512 ee49caa42661510e8b7fe2208cf01c4beca0b2a3ff5807f4cb0d2781b9fe81df1573b303ebaa0bd22bc7a00039eb98355af33790f6aa4e459eb9d91c8557d116
DIST gentoo-kernel-5.15.102-1.ppc64le.gpkg.tar 57088000 BLAKE2B 7ca0d0ff5c67beec55020af7c6ab03e4aff67e527f8fc03d4cbc414198dddaca69b5c150f1cea41f93bad6432a492f61be6c3bd70d3503aec363bb198f9c2f13 SHA512 1fee94830c9e81a516bbb317cce689174a48416be6a4bc1872dea15fe63acaedb97a16c01e25c9408d97c4dabfdec31b29306510c97294947fdd879e1b8d6e56
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.176.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.176.ebuild
new file mode 100644
index 000000000000..140d99c64a55
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.176.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~alicef/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
+ app-alternatives/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 ${BINPKG}/image/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
+}