summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-31 19:07:54 +0200
committerMichał Górny <mgorny@gentoo.org>2023-03-31 19:09:26 +0200
commitc1bd982df1f59d94cc750f41e014f3e7bdb7bfc4 (patch)
tree2ffe9a9037f888bb76028d86407310f93420a863 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 6.1.22 (diff)
downloadgentoo-c1bd982df1f59d94cc750f41e014f3e7bdb7bfc4.tar.gz
gentoo-c1bd982df1f59d94cc750f41e014f3e7bdb7bfc4.tar.bz2
gentoo-c1bd982df1f59d94cc750f41e014f3e7bdb7bfc4.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.105
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.15.105.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 b982ccf64031..31164cd04f49 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-5.15-108.base.tar.xz 4254892 BLAKE2B 9c13ebe3e3bec8bd90260432b8c
DIST genpatches-5.15-108.extras.tar.xz 3928 BLAKE2B 544d4db829812206b568ef6167907b94515c69b2082954c1e842180f29b58792369bb40e1f62e6c882f9f6a805eba82cbd69ddcf0c1b8c11208f9013e68386ba SHA512 9006fedf585cafb238b0597b3892b549a4574d4188c1f8d2773dcb84ea62bb1511071a8649191a41f07132c74ada13f2753b23f72ff957899d0c7fbd3c1c4cb5
DIST genpatches-5.15-109.base.tar.xz 4279692 BLAKE2B c9e7ad56a99a9d9fa3ba2553e35ea87b6a8458f370a88c630104ea6f6c7a08b9c3ad1f2b27ac5198467fb90b5fbacdec6422557715bf6fef60488ca4ff2df2cb SHA512 f426d1e2021f80af5fcd705a289abf22c53a4d79faee620889a4ee3edf6ff1e5f07c5a04e26f74c6f18010446e2bac50f2f7eb96e951b4dc1b2f77cd3ff65d25
DIST genpatches-5.15-109.extras.tar.xz 3932 BLAKE2B 7a89a0a5ff1f85d4d734dd363497d68032290a762f68c65f1648374a01b94c1890b6c60aed8aac8af5b191d63db586b0f7a7a0e581e8698e0d944582f026a42d SHA512 fce3e5cedfd3761eb768613d7a1583ee230030f214b939afb49797014abe51145c564ab39de330340d97d6ab0abb3abf645ef94cc6ffaa886d27957aa7c4fbd6
+DIST genpatches-5.15-110.base.tar.xz 4312720 BLAKE2B 58e3c5a0001f1245a25cbb66e239d393c48d265a5213e51601ea9b24fc33fce97472a1cb63e990ac2d2165c5e7d40372e53952aa47d347282c8ce9f8434a140a SHA512 abbe6099973c90e0751456a522717d7f2d993d873af4a98aff0150c1dfc9a75cf56f9d850dd2a5b8c80915ab27110c65b0b482df27bda00262c043fba731cde6
+DIST genpatches-5.15-110.extras.tar.xz 3932 BLAKE2B f280b14d3c6b1ed89ccf9752071dd55641d59354a680a2419a8caaa993036ecec716fe063d40fb566ab788632ebc71970b2460b6b915ea2d1db68d78fb7069fc SHA512 cbb844978cc225fab030f43ab0ba76fe5138a9c84381bf1318df55c24fe33bb734f60512daf27e20c191c58da821c69228aa98ca91adf224383a08bf3457741c
DIST genpatches-5.15-98.base.tar.xz 4003192 BLAKE2B 79d4fb60a5192137571109ffaefdfba23ac589102539cdde89046f627f39e65a52a44a83607232b499509b8bb4c341e2fd26ae971587c9574d4ac87d8b220893 SHA512 946a7638d19d5fd610075520e529a6c5a47aaa433b7986493f62571a7dc541278013a5006bf1e745496e4eb98de44af56f61d23679c139a719a8d5bc20c9e734
DIST genpatches-5.15-98.extras.tar.xz 3932 BLAKE2B 4e5dd4f8ba6d14764a6546cf7e64dffb3ddcc77678b7d96d2498917f30561792c904c635b0fce7191b7c0c65549fa769e89befffbea5e53a3cef64c673937c20 SHA512 337d95159432cba3b85511cf80c350a8a2f67c65b72a90b26ddc98c01d2d8de70d9b6067e0573c5c339a5bf64973d10c06b42001ee19a7add3d672e4577d0622
DIST genpatches-5.4-236.base.tar.xz 5467512 BLAKE2B 5c2ec5abee963eda0373e04d4f0da94d7e49b7a1fdc05f7a2f7cafba61771124503f1294289f79629afb62075855c176887f525a95a73bef4247b57915dd4877 SHA512 0a3ba2742ab21407ccc9060f37d528cdbe64dade85927aa1908613221973f14765a78ef6a71e157a71defcf1ee9158ffa1c2e7c082f508fc1140792e2311a073
@@ -80,6 +82,10 @@ DIST gentoo-kernel-5.15.104-1.amd64.gpkg.tar 69652480 BLAKE2B f0b8f76d5923139400
DIST gentoo-kernel-5.15.104-1.arm64.gpkg.tar 62586880 BLAKE2B cd150048f063159d29880fd799f6be13e4364887544caa00d8a97a5a290e394454555763762f767be5eeb550fd17a19ad20e0e140d20a47878829031b7f27553 SHA512 76ffc31120419c744cd976a2f00bb63a22f42832541cde96eaf23be4fdbae6fdd4472100700deaf0f766fdfded41b4e978e2d25d210c7ad5ee7c31c77c082aee
DIST gentoo-kernel-5.15.104-1.ppc64le.gpkg.tar 57098240 BLAKE2B e4d326e3dbe06da57132127899533b0e57c816ebfff1ce734b167017a646bc10017f9b7cd91c94fc07b206d30487eb7d918a33ed9e73e8144530f61300e3003c SHA512 d0d1da55ef7567b89d1c823f20e65c77100c6e3d7f1e5c90c8ecf98a00c75fdb1e42dd47254989ca7ff8f05ddde2b281cd656d835b5c8c70fb8c481e8206ff16
DIST gentoo-kernel-5.15.104-1.x86.gpkg.tar 59187200 BLAKE2B 59f8bb328302103746d7fc582a53d9e3e29d0c57d47a748780faf44944b6809723ac14bf3172f6e11512602de098ddc248784572ca345f54e75b01e511e0a14b SHA512 52d9137a910ffb1b02907b0decdd6fd33e821d6e1e5d3d33591b20ec0472d90dffe90132071638f16038b4b00f7d6c3378741f9061b7d4ebf7c6888e5966b1ea
+DIST gentoo-kernel-5.15.105-1.amd64.gpkg.tar 69560320 BLAKE2B 45aacdac70b51a5caaae1ad4b8faa5ce24ea8e0ea728e9710b2ad38a056820415859d71f669f01b391e21614b7fd2a5893df43b4dc387b30378452f484d80a40 SHA512 3abaf03c7941d3557e50d2f9b5e9036fe2589389a3864d9f310088d30238e1f815339a05915a0a6baed8041d9a8cf20ea3f56c6d9ed521cbf1c5fd47029104dd
+DIST gentoo-kernel-5.15.105-1.arm64.gpkg.tar 62504960 BLAKE2B a3161bf46e643ad8e335a176d194a08dfa6d6d5a39969e13c58c0cb634437470cba9f0c4e3351b7b0ca792f4743fcffafcf795dac76a3461b31b41544c9a9d31 SHA512 0c402286e94b2672ac161cc985070022048b8d1f45f3222beb6a91b15ed9762999aef9166c0f72ec19182571de7fb692b94394f0c4ff4bd25f1c374ee023f198
+DIST gentoo-kernel-5.15.105-1.ppc64le.gpkg.tar 57098240 BLAKE2B 0297350c9fba2563f937bd719431828aac39593c94bf2f41bc71fe0017e6b6faef5ac45f99a59357b6895f37a0f98a6745a9d1645f440210df5b059b5926878e SHA512 e564eb31f0e94e3b0a3cc9836c0f335d96b626817ef12ed37e4be7c8d205a436956c23383ce5423b6f0e03bbf8312621dd58f672ec8cbaa1648153669de0f87c
+DIST gentoo-kernel-5.15.105-1.x86.gpkg.tar 59105280 BLAKE2B 152534b858446343d1a76cd767f35861e9282d354942697807cb40c89a475649983314f1d7dcd2eb8f4a089bb0c0f6915396b451adcd9f71677a801fd587f3b5 SHA512 f5cf5f67ffe2c593d206e6f16284be4e48304b1e2de6ea14a7b291fd2a6c4d44d972ecf8afe6bd9a6908e22c0a022a0e70b0447f4292c7cf747d31af0062e280
DIST gentoo-kernel-5.15.94-1.amd64.gpkg.tar 69591040 BLAKE2B d8659c0584ae851b05d933fed2a94f05eb8c93591b07ae77b8160d397fcf69d2ea8819cbdeecd294d3238377a4450789c653012a9e50223ab98aa5a229a98f11 SHA512 72bdc70aa6c8e51b1896b5872d9bea372305866509a34fc4ac99cd88b01d191041d02c18a0499b03d119b79499825eb97d105460968ac96848274b8fb8175f13
DIST gentoo-kernel-5.15.94-1.arm64.gpkg.tar 62556160 BLAKE2B fc2122980f798c1313913adf8a28436906ccdd7bb565166ffc5039fa66360b2a7ff1c2e97d579c85cce4dfa6fb471f92d973991998fd4b2a2637adda55130921 SHA512 9f8566bba0bde6ede619a9379e8acae7d3cb1364c888509755cabf0c64daaf3d93ff0085102a2301b0d5c38aceed44e609947099ea9d9d32edb1f04e3b0ae54f
DIST gentoo-kernel-5.15.94-1.ppc64le.gpkg.tar 57088000 BLAKE2B c5533a6a4842a765346270addc6ff1590ad60ac5df94be8ac0b3209098ee058e09d54d61d8c639bc09e652cb38b179257b62eb33343adad53d5c7d076c5b852e SHA512 4c4385f4b4a2776e67c95d1be5f59c1f00e312dcab740a07344a9118716f574f97064032c93e7b1c4ef97b9ce29efcfbae598297674f4768c09b787b5630db4e
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.105.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.105.ebuild
new file mode 100644
index 000000000000..64a82c2b8323
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.105.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##*.} + 5 ))
+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
+ 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
+}