summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-22 20:57:05 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-22 20:58:08 +0100
commit5e94824f808dd7a0955e2a1821956d5b1da7a127 (patch)
tree639f399d0c83000175f52e435c3c8c7fc942b00c /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.176 (diff)
downloadgentoo-5e94824f808dd7a0955e2a1821956d5b1da7a127.tar.gz
gentoo-5e94824f808dd7a0955e2a1821956d5b1da7a127.tar.bz2
gentoo-5e94824f808dd7a0955e2a1821956d5b1da7a127.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.238
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.238.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 aefaa2a50894..dccfab056fc3 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -26,6 +26,8 @@ DIST genpatches-5.4-242.base.tar.xz 5610464 BLAKE2B 54d7c2e11a6b21ed8b16d26a56ff
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-5.4-244.base.tar.xz 5634292 BLAKE2B 0ca2eb4409ae3a03f18601be767061ebc9d363eb1da47466245d93d27f8fec567b9144f8e1a63a0034f504f738bcca7477aaf863df2451930b49900f5f177a71 SHA512 023c608e4e2511bec82d0be0ed8bfe75cd90cc9f96977fbcf9980c85d841eccea232f886483488cb4e9703cb35dc7b53a4109ae1737e631b4b5a4e950a65b5a6
+DIST genpatches-5.4-244.extras.tar.xz 1812 BLAKE2B a8a48897765d7a3a80ae9ba0bf9a0557fb0335f80046c6003d35303d18f1b27cd4819caf5be67db19573fd67080fd43afda67bc46d10850ed6e71881b6218446 SHA512 7009108d6dd5b29e60382f4bd5a4e0a190e726e9e0d2310cd67dc7fe86bff0c9674d04f34eca8006518c47f73bd2e6b1d2f7065117252fe34d90ab44b339fcc9
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
@@ -98,6 +100,10 @@ DIST gentoo-kernel-5.4.237-1.amd64.gpkg.tar 60518400 BLAKE2B 50185bef959d7745868
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-5.4.238-1.amd64.gpkg.tar 60528640 BLAKE2B 0abc01d65f0d1e7348373b9d3bac54a0123da5b38fc54e4aa2947ed59eb415308ffc633c53bc13037a0da9e89c3f8fdc643d958578bb6a5c65bd21611af94294 SHA512 140a9575eb6092862295767be8b8ca6e05f44334fc798ed1b0d39e94da1a72a6cb96658670fa35c05b3d24fb972ddc888c8f7d1a72b9278abc09d751f09dbddf
+DIST gentoo-kernel-5.4.238-1.arm64.gpkg.tar 56504320 BLAKE2B 8ddefa2ae536ebb0918dba60cf68acc9975f10f077bb845f04f46eaad2d455ebe604bb1f04281990d0fe772b3d237e3d2a3562bf04dd01e1546feb355c6d30c2 SHA512 68b0aa898e8bb2f1f3c843ced7e38e6370c06c2a251ac10ce89f4f8f7beeb0580b33192e1a32357999eda2e0c8fc99a1251977f6ff0e5ad8bce285edbcf42aa9
+DIST gentoo-kernel-5.4.238-1.ppc64le.gpkg.tar 54220800 BLAKE2B df0c8d555013ac9618367f80efe151d2640dba3a8af963aab4d8430beb44c2592da28b92fa5942f9853766ea7a99324be7b6275fae0c9f363f52ff5099c97c38 SHA512 09cc3c08693d34060bb0ecb19494dafb492fdb34710886e0aa5d4088a4a2ddbeebd2c28cc732c753d21695224365f5335a2cf094c1232779412d428ec3da9f54
+DIST gentoo-kernel-5.4.238-1.x86.gpkg.tar 52428800 BLAKE2B 6a59fb0f1bdb6f1aaa765521a0b1745c2f6e403bb49b766501f8d21a0887506b215ae156b0367840ba045ca0e7b49b226998fcce03dfc21485ae09b12ba93a77 SHA512 e1cb7adf803366290e1ee6e3039a521da6b322f18b1bb244242194fe1e11cc16d544e4ae114aaf4202f70d9946d5230f387ee86ddcca7c9bed1befeb14063545
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.238.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.238.ebuild
new file mode 100644
index 000000000000..b667043f3f79
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.238.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/~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
+}