summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-17 21:16:54 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-17 21:30:17 +0200
commit648fc8f75c9a3d7e289f35a02075525fe97bd7ad (patch)
tree44001aacea26690996e95bf6c226a67bdf57e092 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.180 (diff)
downloadgentoo-648fc8f75c9a3d7e289f35a02075525fe97bd7ad.tar.gz
gentoo-648fc8f75c9a3d7e289f35a02075525fe97bd7ad.tar.bz2
gentoo-648fc8f75c9a3d7e289f35a02075525fe97bd7ad.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.243
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.4.243.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 94dc06b0933e..0b50a406ef68 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.15-118.base.tar.xz 4596840 BLAKE2B d33cfad9149f4f80c98c649c52b
DIST genpatches-5.15-118.extras.tar.xz 3936 BLAKE2B b74dd7b0194cf6881ef699d0b1db858bb8c44780d5263cbf136f9d181a48420ae31886cd762f819a91b21a2f2acb83f3c46b1950dc53367d8efebe8c86a9317b SHA512 1a3671f3abf8ae04afe50639fe27dfbc07f9f51b297effcd587704f88efda801d3df3255f9d04acbdf4bfac9986a2788a54f4e9fe22344aa0166bbc3de260880
DIST genpatches-5.4-249.base.tar.xz 5692112 BLAKE2B 8057ddb24ebbd5ee1b4fb5f5a36b295c4e8ab857e407c5b9e061780e1d23ecca7ab5adfb10ca4f6733a7776c2aa6e353419257c255b07bc991ecb6857aa31555 SHA512 b0057da850ab5368dcbf2b454d408b72204150cc2643e087d2f084c3074de22ce36fa4c319552b90d9059ba279e8dc6551cd6348c3616275b050167bfdb58023
DIST genpatches-5.4-249.extras.tar.xz 1812 BLAKE2B b6b7bccf77851a17e8b514439a50c44de954ff461af71414c325ca5c0a65d7a79ee92f7a8b708afd28a3433acddd13aa3bbd5afcd82b4181e57ea05b008d7090 SHA512 c4977abc2bbb1c2319e9d2e4aed38419f9e2a70813e5f28d2b799533fc945574d9fee21c881b6dd4926a9c2ebe74ae414ada4993e3fcbd117b6536f983533282
+DIST genpatches-5.4-250.base.tar.xz 5760352 BLAKE2B a0780e42391ad416839c34d85f079f11e9bf1579a293ea1bbdeb95e08e76d1d3f7956fcf9c83eb85223016bd4816d23c87e0b345bcb61b5076e5bbbd42024244 SHA512 8dd686658217cda074e0731c84d3e8c63bfa914b7e607eab28ab46c8cba647591fcd0a726108a08c826290e9edb01f29b6bd135af0991d818666a853764eb11d
+DIST genpatches-5.4-250.extras.tar.xz 1812 BLAKE2B 0240e10d23363cde222279e844bc26ef31228e01ca433879faa24d7171dd2c775c0274df9cbf5a6cc405fd89836d059fd978456c2fc57db17c50bd9eb0d69827 SHA512 0d673a62837950215bea4ede7bb38af7fbf09305c5ee2b4b37da83a9100076c40f5b185395640139a1e1015e4417078f66b4c316d0a023f844852d71f2b851a0
DIST genpatches-6.1-32.base.tar.xz 1474460 BLAKE2B 43060d16a84ca2c65ef9d7447747e6b857423134fd518e05c3c052bf5c664c9a0f8af97b84e7d911c84766cf478b71695537a3c56a367589bf37adaac032a7e0 SHA512 cf8bd867d09b68a197368c546ffa4c626b1c30f0f7a63138129d3abe8a0479c88717dff6ea0a79c53d7f108d2a1fedc433b7b2088e20f082be921701e5d7d790
DIST genpatches-6.1-32.extras.tar.xz 3808 BLAKE2B b697db5da31e471ab0af978e722c12ca2d8c5cc371f1d4c2d11c5816b34b479e6ac17f1cd9ab26826bacb065e0a254e18b767c9cfcc12fb16c40f9d73aa1e3d9 SHA512 9113f7505f8dd5a535e2550863dc8d69a6961fc4180d5a7b77206a397db570571f083e39f6be87da072b588e4a2d1b9c1e4b2a725172c9a799b3dc8e88542f66
DIST genpatches-6.1-33.base.tar.xz 1668040 BLAKE2B 60823b42a19d54af313039f75bbd4656414201e11b088c49c3d1c01405da82f9bb933ffbcaecd19a9d2b414553754733059b667f458c4d78fb0e4d46c02157b7 SHA512 2cd6755b1b01fc58a2a4f9a0b5c15c3e2ee5ac74bbf67c01ee4d543e6df30ee35f01bb23aab8e4b7fa0e36fbcb6cbf5e07bae6ab21010d12441d34ea802085fb
@@ -54,6 +56,10 @@ DIST gentoo-kernel-5.4.242-1.amd64.gpkg.tar 60538880 BLAKE2B add29fe313609cde547
DIST gentoo-kernel-5.4.242-1.arm64.gpkg.tar 56524800 BLAKE2B 611eb07e3b0d5bd98e2bf88114582f1f554d402d8040ad5c57e98ef59f4cd89a8d83f288c36e08213e511a40b9b7f643d6036c916954a3827ff4c394d86418ca SHA512 7a0aa6689920c6800716f5f857697a043eda7d4f7f40c5434e244ff3fe8bf32f0587cc358fca16e666de10129f538b73c02567c3fb52db6a9ca4e38c5dda50f2
DIST gentoo-kernel-5.4.242-1.ppc64le.gpkg.tar 54200320 BLAKE2B 0dacbf50f30b63b796da5d6a29377e7693d805fca0a51514f54b16dd55bfd5318f15dec0be7ac4ec68e4690cd75f533d97cbc2eb8619fd2fa7d0f8012e036a34 SHA512 6fb3d528a25e31f552f0693110d3d25b17fa85ffabaa4fa04314a45baf2c20a61ffc7e105822aa03c8ba6d8679ec3f5e1fc7485d77752e015e497e32eccaa223
DIST gentoo-kernel-5.4.242-1.x86.gpkg.tar 52459520 BLAKE2B 5d4f1fe9e5c9d931f73a7e9508dd68612320a055929db5211182467e5dbe5e23fa9919c473b982b83f2dc9a9f47660476b689057205592bf05df1c1ed29bfc60 SHA512 d594ebb2b6bece007679d3c9a1dbd3138b3985bf8eaa3b3115c610f30016931493c63d5c256a5dfee9be861ee37608d5a9e2b37bc8f770d1558bd13ea6fdbfdd
+DIST gentoo-kernel-5.4.243-1.amd64.gpkg.tar 60528640 BLAKE2B 7b09d8e199cdf013a19be210518369a461931eacd111a1bb3516f5c511176d899cbd9f155cb21b6f089d6907e358e534f07a80918ac7a5aa4add4ddf7f37f09c SHA512 8e2f9158ee84ee90db73bc87bc710a258c3023e3b8ab858aea478e1dd0173874c1c26cd6604319eb539d711a65726bae7ef98d21cf7abe1c4d9789595175f801
+DIST gentoo-kernel-5.4.243-1.arm64.gpkg.tar 56524800 BLAKE2B 4c1de4817afe67c3f4bf727e0eec2e710f7322bf2bb85038f789b953abc9fc0406266ebb8c9d22a7555176df44c9309b11bcbd193a4b540b70fd6a4901ce30de SHA512 c82a0ee7a8eec058086b49303c477278c3a6b6c93931b73bfe694001f99de6bf8109419b0de6c7636e2a972af1ab5936c2132e59125e68ac2c7761f51120b27d
+DIST gentoo-kernel-5.4.243-1.ppc64le.gpkg.tar 54210560 BLAKE2B 56c7938ace76e4d404536b2fb1c61ee4702ff618c389a644c9ab5eeaa7a54aa36d5155eeb0da3f11279d5090ae83de839a3f796a3520aa2db9b9049b7ec8bb27 SHA512 516c2cc6b9ac7428ebd52a40888093a553f8bd8145274c5bd9b0647bb94b26a133b721fb2e1b78701b26ab96b567e60397e199530454993390ce62e119b99e1d
+DIST gentoo-kernel-5.4.243-1.x86.gpkg.tar 52480000 BLAKE2B fde5455a18d1cb56ca78f48cbc92d6797479de159edce32a7bcc780c173b63e65bb2c2b0a78dc074103800e7e3606478383ef5647fed0b5b858e50dabb08a5eb SHA512 f0e29394bc5919160bc08f9e9960bb2c07b113b24c3cc053393b0c6f656768345f0db92a9683c97bdaf191bd0343be2c117b4421e6667896c8851a7185143075
DIST gentoo-kernel-6.1.27-r2-1.amd64.gpkg.tar 76646400 BLAKE2B e84b065c853d87b8f808c7c11a5791d3838b5648bcf2819c9aa5b74eb8b011a3bea6b60674b64fd69cde466e29d94b35763d071d5ae760f7582944fb222e2a13 SHA512 3d78e661c36bb954b5d6681618dd22fa82270c08262a0defb212dc5d7b1a7ef911b0ec0a069784d4c30e0faca34d2c9bd3e86b243e6f44a2be4818e04641ca2c
DIST gentoo-kernel-6.1.27-r2-1.arm64.gpkg.tar 69294080 BLAKE2B fb631219b0a2fffa68d3ec63b3deffd97381dc42f2bc20579e2bacf3db9ce62444bcfaa5fe11ee7b06601203644c814f264d3a15025e436c42b7314dd1651444 SHA512 10f09b96f870309e15a2f1359647a396822a8781bb858843c1fe71ece6455e30c9477cca31522cd4244bca7f2596aefea68fc2b4b452e496f6cefdab0c78c7eb
DIST gentoo-kernel-6.1.27-r2-1.ppc64le.gpkg.tar 62709760 BLAKE2B 5cb3a76645115f897ad7d30fce14eea5fd14729c3710eb5bd205fef5ded7e550707f8bbf9116f8eb0271fd0b5150a7cf0b5a383018568fb90c52fc75f17d1468 SHA512 f1febba8cbe2bb9e1f443a6763200d041e85f5a219ed2511a7290f9ceff908762331f87bd9fe9aee0b041e41c39bac5f5f6dc8cc6f600f5dfc8316cce00a95c0
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.243.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.243.ebuild
new file mode 100644
index 000000000000..70e2f755ed95
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.243.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##*.} + 7 ))
+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
+}