commit:     2b086d8f4960eb3cfbc5574f6f5ef0d26f72327b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 15:16:04 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 15:30:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b086d8f

sys-kernel/gentoo-kernel-bin: Bump to 5.4.230

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel-bin/Manifest              |   6 +
 .../gentoo-kernel-bin-5.4.230.ebuild               | 127 +++++++++++++++++++++
 2 files changed, 133 insertions(+)

diff --git a/sys-kernel/gentoo-kernel-bin/Manifest 
b/sys-kernel/gentoo-kernel-bin/Manifest
index 5c6bd3a65301..79fd28be33f4 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.4-233.base.tar.xz 5294692 BLAKE2B 
357046687c6f2797d5d7090dad35
 DIST genpatches-5.4-233.extras.tar.xz 1812 BLAKE2B 
abedf631da893391a98a98cf48d264f9eaf9f9f7811bf595c36a774c8dde21f105afaf6f4e113e04de472bd6ce0c759bd41fd95aa980b7e05499d8571f3e8a44
 SHA512 
16b09d0a4465123079360ef9f070e0c163f45f9784714e98fe53f7174e836fe7b2562af01e5c2dc932571bb3eafe2d9afedfd60b5c8467bd8410de651ab82473
 DIST genpatches-5.4-234.base.tar.xz 5429360 BLAKE2B 
48e1199775c5174a4e25f9611f410f8c3959920b3af6d4a5639497560f9a7ca34210c3f7db7c5e279432e1562956528690f5360dfeaaf7f99227f74d8e8d04c9
 SHA512 
c41fefd72aea785fb40ae95e47019d07c73bb4a07c286e732f7bbaa4b1cc3eca0dc53cf088387998ba1a9bb791e9e021d6246d8ceb9b87dc6d7fc6cbecc6dce9
 DIST genpatches-5.4-234.extras.tar.xz 1812 BLAKE2B 
7f95873ce78883b4bb1e4d7769688565c5b5574e86417a8f11d822fe5d971f7e0948a08e83af6a35c0cd8d52cdd5fbfb5fa3abf03c233fa3711b3fdf19fa3dda
 SHA512 
2e49f3f75089ed6ff55c007529218b5b68712e64785cb06dcd5b0f1276a3fe3b6a2ebe2f807b586f954698bfd2c73554a462ee592e89b234e6d25c614ecfcf49
+DIST genpatches-5.4-235.base.tar.xz 5437324 BLAKE2B 
16a5f67224b3bc10792945ef379825c96a2e97faa48444b047da90e36a341b1b04930e64b8e4bd457d3ab9ef842aec1e2334dee273c4279f72eb6745b2dc4b83
 SHA512 
461ecc356eaeca967112e69d8cbadbe8d84ede7b2a3d199ba11620f9b405d5fa0506c133d15599713b74b3b5bcb000f7cca27351b8ad628c81ceae64d339d385
+DIST genpatches-5.4-235.extras.tar.xz 1812 BLAKE2B 
bc1b83082a60463da80236c4eb42590981905e35f653ab2976c9f31f4879446f65d0f123f11e45bd583fc0ef788898f38a6534e66d1a028716954020427736f4
 SHA512 
515331c1ce6d7ce76f946ab6b8443afdf47f829bdf8e486ca733854d5c984c0c99a36611cc82418b0155f9ce1276b702affec04b65c4699cd4bf796d3ef6a7d9
 DIST genpatches-6.1-8.base.tar.xz 477364 BLAKE2B 
29fa8d45feed6333883e1f4733ace6ed52b5424aeeada3e71917a0e3d85f87a7b99f0863ff468e678ee5631c6e0f0dd7c3a0115a58d80512ac1a27d58a2df149
 SHA512 
d1f32215ced0ed39cc1c6d224b1a12ae3f80bcc19f1ea23189e853367ebc661c74d17d335bd615c2fc1f3c21271f6f170a35caa38194b2dfd09f78e405739ae0
 DIST genpatches-6.1-8.extras.tar.xz 3808 BLAKE2B 
af83b01895f1b3af4c0220a89b0dabc3642e578920475402c02dbe0300c520dbc621a2245eb66842addac48565c8b612198138c49491dca7909d594a9d2ef818
 SHA512 
22f9378bc7b4413d60672656c2e73bfbcc6debd10179a0eb2b523bceb5f3adeacecbd433ede3aa057143163a9cc2971d5023d73ac8187eaad59508dd229feba7
 DIST genpatches-6.1-9.base.tar.xz 544936 BLAKE2B 
9152c33c4145f99daff4f436afcb621883d21fb05be5821a045b47be2880250d3ccf1210f3ecec0241ac41f57581da737053b86852760cd11efc524719fd0f6b
 SHA512 
88b6bd131dfe53a51a9a0dab13ef2bfaa4818d4b0ab93e485346f96fe58a64b7338d9aa4483c751d9d1886818ee8700918721037b03f868a3b2cd9d5ecdd7799
@@ -38,6 +40,10 @@ DIST gentoo-kernel-5.4.229-1.amd64.gpkg.tar 60631040 BLAKE2B 
8c76897ff46fa8351bd
 DIST gentoo-kernel-5.4.229-1.arm64.gpkg.tar 56586240 BLAKE2B 
b4482803d1e314aaa99b5b841939c217c304be27c38e4753e8f972572eee5e13d0277ebefbd19270da5f77143ea47b1335a3a48be73b0b2a4820e20af586cb86
 SHA512 
db80732bde384c54db8cf8f3280fdeaef1d8cbafc068f885f9426e6d720674439364adc13a1ed9d8136b291c20eac4296c425958ce0292d81a88dad62757d041
 DIST gentoo-kernel-5.4.229-1.ppc64le.gpkg.tar 54343680 BLAKE2B 
b693fb064dbbe2bb456397003f0941b93e26065e219c96f0d3f7f56fc747859413977ab2c007e7417168c4b0bba6d943512a1ccfd79b079ac35e5b89711eb9e8
 SHA512 
7c39dc53784e1dc06fdf96deaf73ea448069ab1720ef95facb15dc75050c7cc9feb3b1a4b9e395a58d3149c721c0bc66ed0fc9e5e6b42d37a28f2ae533f2c27e
 DIST gentoo-kernel-5.4.229-1.x86.gpkg.tar 52418560 BLAKE2B 
b9c1cac80a4a618289bde0b01ca0c190e7ade7323397e6c5933da49430a88e22bc6798b001a19afda4ca2e3ad15c409c033745ea237ea59bb1bb0513e009c8ad
 SHA512 
48d8d8ec1612224dbcec0a580aca86be06be4acba3edba6a0a7c070299e90baa8a693cc8ff97b07edf7abd05cf7f0d7087b6c32d9b9e173404d11625b9845a71
+DIST gentoo-kernel-5.4.230-1.amd64.gpkg.tar 60579840 BLAKE2B 
b6d3672ce00b0ee20705bfc79465a20a6d2f79885c3f094c7d14dcfb339e29a66eb0831aa57e0eaf49fb3c86c6cf4b2e128b1eedb0577edae2684277aef6c6e4
 SHA512 
3636113f9bd9a3a2e0fc1d07eb06351c68f67149ffb8daa4497939d6716dbfe75025d1675b4c9e1cfd46c2a5fb40887a0282d39c497ec43b80cba835bfb35d88
+DIST gentoo-kernel-5.4.230-1.arm64.gpkg.tar 56586240 BLAKE2B 
ae6efc0ed40a44833f4476c467ef02d990837a45c2e3e9e9a7ca1233b194369900f9dd237905fd62ec7744fc4888c9f0c8a7fc55f27b59f30cf70afb28bf85c3
 SHA512 
43ea305924941fa7818533d7c64146d1a306906d8e509e5cf357b55c1b5d95afd7eee4c61ef6ff701f94bd6426d1426228634db9c46ec2e1b44935b0d83d4793
+DIST gentoo-kernel-5.4.230-1.ppc64le.gpkg.tar 54343680 BLAKE2B 
1970c2ebe2f22c60c27beaee53117ead282e904ab18e60182181d1e0aef404ab32d09cc1f700915186bdfde7aa09428934048c8d140a27b3ca5c23745cc74708
 SHA512 
462c00684fb0214396cf0013842b0c80b6df620e943ef8ca2a7ca003cca323a4ee696436b0764a38cf86250af5bd56f14ceec6e6cbc8d11fa870e1cc08fe2541
+DIST gentoo-kernel-5.4.230-1.x86.gpkg.tar 52408320 BLAKE2B 
f2c262b1334444a998a7d057f333a1f8d0698c30f0c547a4a209a8f4e9265050de1fe2daa70b5de8e6a5dc604427bda91cf6b7a5c906dc3657c48bec47a6dbd3
 SHA512 
d3cf980e721e691d194635cc27bf074b297df7fcfa9979622e672864706bb30bb575862fab28c8cde6a9d98480510db985d6902d41b35cc2cc24a82febe92e6c
 DIST gentoo-kernel-6.1.6-1.amd64.gpkg.tar 76738560 BLAKE2B 
24d6d3f29b4323d3ff080d05c14374f203c7086527402bdc042068e350df9ca596f0dbe07bd985c74326dde5652ca464ed093a9a0fd90ce98862dcc2dda9978e
 SHA512 
26ed6dc543859a9b842e19e08cdd715e48143d7d3af76713fef0e18c12298432b601fbf2eda0c8fa01485492c97db37483634b694ff51cd5a00f2037867ad730
 DIST gentoo-kernel-6.1.6-1.arm64.gpkg.tar 69324800 BLAKE2B 
afbbd8f02b7127f95d9ca3e14e28d594716d17e472514886e83d4ac4a07e55aa6f1aa905a3328d55eab1b0857b6510ae9c5d2683a24f806136937ffa62e5fe35
 SHA512 
fcdd7700192661cd8b010389bef50c516f5f47e425c2122b3b2718a815c209ba5c64c54cc88c94dabe0968d65f5f52e8ebaca887ca1b3f741938dae8a384ebc5
 DIST gentoo-kernel-6.1.6-1.ppc64le.gpkg.tar 62730240 BLAKE2B 
3a94df5fa51cb826a8501f12dc47deb77ea124ab59272bcb2d4506a137ffb26ef3f0c75d6efa10d08aece61064318642bf40257a7e3fef3766234725ec16e5c8
 SHA512 
24c267ff67fd980913ac7f7b494224ef46b0d102537ad89ba1a0e08f388a95fe9b4b817a0e9270a187c24d42d7b41f96a2c906079f9c06fb4fbbd8c5dab140f8

diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.230.ebuild 
b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.230.ebuild
new file mode 100644
index 000000000000..b8ae60a3f786
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.230.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/~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
+}

Reply via email to