summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-17 18:07:09 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-17 18:18:00 +0100
commita19692eba1e671aded55a10499a6f1c4282992da (patch)
tree1b063efac17bd6ea7f3bc0515141849b9a4c63b9
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.175 (diff)
downloadgentoo-a19692eb.tar.gz
gentoo-a19692eb.tar.bz2
gentoo-a19692eb.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.237
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.237.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 ad6bb48125ed..8421cb5434f7 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -20,6 +20,8 @@ DIST genpatches-5.4-239.base.tar.xz 5520768 BLAKE2B 9023bb6baa304282c516ae3d8ecf
DIST genpatches-5.4-239.extras.tar.xz 1812 BLAKE2B f16995331f57d04a5e92164dcb09eab416c56184d9df7546bac597f25614af08053823f3877dcb4ffd54253ad610e9a8c39818290ffde145c3839041ca79fa7e SHA512 c0f6e320892485d8806efc553bef45b9bda7f35bf357af562136d6f10d41c2dcac767595902f2084ddce9ebce9dcc1952e9e72833b79b396dbf398a66017898d
DIST genpatches-5.4-242.base.tar.xz 5610464 BLAKE2B 54d7c2e11a6b21ed8b16d26a56ffd392f35b82e1bd4548f65c40018ee6607eaea37d791734a31abb30ee061ac85089fbaede39f1ac35c2b0f48220f266d2db17 SHA512 cf7d24286d88319eb872f14c3907956c1ef9e0cba4d1a86e740e9eba3a450a2060c1f03d519ac49ad97e9afefb2a32fa7e77790387819c4d60d15039c425ef28
DIST genpatches-5.4-242.extras.tar.xz 1812 BLAKE2B d2b8f6655e540964c1c6fd81a5e74bc2e7001bf86ec8a7e8293b2088ae24ce4bd41d0eb5097011a2c9669b9ff479bc828c2f8425924c920f35193d466b4dba58 SHA512 8d76a855216ef7dc89babce2d35a7b6b58b641105c117e246a01a779396fdcdb6cbcf7b599683ecbfeb53df09504244cca5569b08b15a4fbe6b81b10d51c8d86
+DIST genpatches-5.4-243.base.tar.xz 5625924 BLAKE2B 5f0df2acaa454f6544e56ed23017ee39e085c7145d5acd6ec696c603caed7732d4858b0dd06b39438df3198edf69f598d42a3a62b5237a9a39e50d1e5753580f SHA512 36281506b470556bf21d374c3570cbf804429978c000634dd0b3904fa97d0b107fea8fdb4177b7a2d8d217bde32e7d05165730ee3823002fa8c7dd5bd5ec170b
+DIST genpatches-5.4-243.extras.tar.xz 1812 BLAKE2B 41f15599d6e24946a023a349a572a89bae06ea2171bd23865b65ff418454da58b9b36c4df8676ac60d74291f6f243a4c25ac58148da5704c567073429382eb69 SHA512 f89dee9b5bebd46a16c7e2f6e543d1df1aabe0f26c6232c8c8c9e62bd29b205bd65f7cb103baefc21f33da3556e4e0fa95ee25bc4b2eb26b655417bc1cbdeea2
DIST genpatches-6.1-14.base.tar.xz 774040 BLAKE2B 8e0866c762e2711b766cc75630d66c7c46221bdc47357a903c7e8506ad122b7b5ba84d102b19743d236ac5579b44d24f77b9f52f3c23695ab6a279cf7875e735 SHA512 6a753146013baf0b94d83abd690118517679d4d7dcf6e9f86cf8de35e24f80a792e9c0692f237098671c316d046d6f65f8d3512255e572daf6a8ca81853beca0
DIST genpatches-6.1-14.extras.tar.xz 3804 BLAKE2B 7f016579b130c9a4f7a8ec946254dbd682f22e5654ae777d11b265dafe2b177a4c40c5a979a760a5bd6ed3dac057b90a3120c60b958f6b748ea4731b9a5f1ea6 SHA512 2807d359459dd11b9d3356fcac609dbfb8487e8c924cc543ef37698667b1c8b74cff7b015839ca0677cf1f96b566e0b5018c057b517275886ab500cd2ca49653
DIST genpatches-6.1-18.base.tar.xz 833216 BLAKE2B f1b86487c82d4354347171df635192a6276a4d0a9561a415270a85caa46401e4b9089f847346cbf441f8c6a4d4012234d83b31fca5797cc6296010f225392990 SHA512 155207127c1c58b2497788d5b7541ba1872fefea3d2c7804356e5bb6d28dae2f0400dbab44cf39b847f89e7a058710b8528059d75f0e92b63d3d37fd0a515ca8
@@ -76,6 +78,10 @@ DIST gentoo-kernel-5.4.236-1.amd64.gpkg.tar 60497920 BLAKE2B f5369c5daba253d93ac
DIST gentoo-kernel-5.4.236-1.arm64.gpkg.tar 56524800 BLAKE2B c0f3befb350e1cce8d5c09d27bb5713597cd887b94d968b2e72699b83b427347aebe1d2e5a38dad22b7d44d0aba948a853f223339caa6ecb055fa26a37dd83de SHA512 5616bd9ff8d0e91fe799acaae47fa0b7c201a04b7dc32b6ed807bed206e3847e275ee8c9e578ae3e705c047abcc5ad232bcdb888a7f0e9cf3d0a4a7c5bd6c591
DIST gentoo-kernel-5.4.236-1.ppc64le.gpkg.tar 54231040 BLAKE2B fae905cae9e4927c58970ece0a3925d629d0cd21076f728403431acddc2c67b98f798b74595384e2a85191b9f5ebc07fbc428e387079b6b1b862353e6e47c3fb SHA512 a80dc6a5c1839db75338ead8e1678b1aded80a0d935e3495076c8cfc3cbdf6dc51e655aadb92dcdcb966bed374a80d401c0289a9898da3081feb379e1fd3cc66
DIST gentoo-kernel-5.4.236-1.x86.gpkg.tar 52439040 BLAKE2B 08d7bfb6ac39b40ae1709a4a40e1da20af8fd656e28865ebafeb0c011b926de3e595e5da9596f1804ae47266bc5ec7eb3084c2468b55d74921bddf15e27bb9fc SHA512 dcf9a9980123d3325c31ab88f05eb67b8e78cd5d0f4c89930c86ffc43fa5e92fe98c9b5a1c581e83f3df81a41caece02d4892910bad2f3619bcd4c529addcaa8
+DIST gentoo-kernel-5.4.237-1.amd64.gpkg.tar 60518400 BLAKE2B 50185bef959d7745868fe2946efcfb6982ab76fe5bf5287e967096fca85dd316f7a304a2c0777c95f51ad3d9122063496cb11238121f87b192538246aad00d88 SHA512 8cd867428d09a0b7c31f4564a91278449863ea6df3c15e958a12f988106a8d39e2981aac645d79120cb39ce58df53ebc245dcf4f46b6adb80881bc84ce2f3c45
+DIST gentoo-kernel-5.4.237-1.arm64.gpkg.tar 56514560 BLAKE2B d4f044c8dfda07bb84dffadb5f2c03a9707ed20c76472e197fc2c291dcc1a32df04454cdacf5244d454c3a517380c852d127d2ff6e71d77f5b7a567956893f8d SHA512 17e338fb9beda3791ef97ef914924d7fdd03871bfcc3c60b86a8f337247295991b8b483e0440441f25880df9e40824e6a6017687f8a7078f88550f571d9777a3
+DIST gentoo-kernel-5.4.237-1.ppc64le.gpkg.tar 54200320 BLAKE2B 4da74599f94ee77ea2958ab71dcd6c4cc3acc5929973ec5fb3af449bb3a7d5387028e8d779bb0cb99b256ef3091fc8ae0680e9537f08c0d8fe7e78b1f941aab1 SHA512 5e561dbe9bb4d56c581a5237d2ab89dd91b39317cdbd9dc005b31773beef1ee0c37e946a5920ce8bb0558911a974f7f2acfe4bec4d0c96b59005870512dec28d
+DIST gentoo-kernel-5.4.237-1.x86.gpkg.tar 52418560 BLAKE2B 5843b7999ed938a993f5511811f6dbf0d34514bf7c455ed7be03fa595a6c4bf2f68e7bd0bdcf5026fd0b1de6fe7709caa514dcf4035ced200dacf69133daa50b SHA512 21c3c84f54a63b1a83b716c682ea38d5a0b110466f037a7f5fc6f57a27c4bb8db8787e698acafb983bde52251d6d7351f38e1e4eef97327b0f51bd5c371d438b
DIST gentoo-kernel-6.1.12-1.amd64.gpkg.tar 76759040 BLAKE2B 2f2e485ff705b26fa3b1db861acafbdac6362151e30dc73cb2829fbf871cc022641cc15cab82e0d19a25c720f84b6382b74c02d34f658a0cde90a267160f3af2 SHA512 d67fd7cf59df2e648bfdc7543995d7f46160d708a2fdd172002fc94d81d4b1bf1b1870754a6d5223a3728484170bbc6f5650c845dad27aab45da8f9f9eeb9232
DIST gentoo-kernel-6.1.12-1.arm64.gpkg.tar 69447680 BLAKE2B 83f5eea4ca23eb6e79fad8fd746759982fa1d7e6cbd4cd63d43901aef9be3e7eeb64864f6538bdea6efe2486d13a37042a5533825f924a2af393fe0f66db7a72 SHA512 500abfa834826bc3ea7bc97c1b8991e68e72edb8c69ddb316621ff3029bb7962d8c8cb34e73f71ebed2f9db4600b5bf03f925953f67ecc6b46e9db5f35c265fe
DIST gentoo-kernel-6.1.12-1.ppc64le.gpkg.tar 62781440 BLAKE2B 5a29a7f274f8b3122209603fc1b05ec7940dfaa0bf9dbcf658897b99203eb091d74f8df8dc9a7fec4b2bb913695c7d78650d062d4b58ade48598f2cbfbd6ff58 SHA512 edef917a088aef0b6ec572f678febfcb448c64f70de39697e01be50855e81fc9f3638d432c98ff75bb8963ecc25bf783ad9ce7752cf4705f875415feacda9974
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.237.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.237.ebuild
new file mode 100644
index 000000000000..7e040c8ce69b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.237.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##*.} + 6 ))
+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
+}