summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-05 19:45:45 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-05 20:35:10 +0200
commitf2d95c0836a3f52aaff7f355ead7ffdb4657bd73 (patch)
treeaf98a1a8da974d017f54b5c5d58901fe6762723f /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.182 (diff)
downloadgentoo-f2d95c0836a3f52aaff7f355ead7ffdb4657bd73.tar.gz
gentoo-f2d95c0836a3f52aaff7f355ead7ffdb4657bd73.tar.bz2
gentoo-f2d95c0836a3f52aaff7f355ead7ffdb4657bd73.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.245
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.245.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 94fa4a467c53..9e5d30d19fd0 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.15-121.base.tar.xz 4695588 BLAKE2B 2bbc7102194c0526cdc1f2e3108
DIST genpatches-5.15-121.extras.tar.xz 3932 BLAKE2B 22ef45027450ffaafa2637aab88656c56fee375fcad14403693f94894cdfab96bb2b930cec4852babcb4bac86b07bbc9e6e103de7c871b91ef3004435e1cb785 SHA512 92b785c17dd171871dbcd841810c1e7da4fd7cc5027040340dd90f6bf97153dd0e300a6bc33e61bc7354b6e6648e3bf718d161ebacc5a4ed3a3e86e885181ff5
DIST genpatches-5.4-251.base.tar.xz 5798892 BLAKE2B a519f23086a440d560e5301b77aa1a627e97d9c2545adddc6fdfe9b55b35dcbef285a6e92d4ab615b517177723875a53b6b5f1dc9c237dec3f23acb511e08be7 SHA512 c8d228cb18f2c64631ee5a40d7de58e78c7fd2c452f54101d0e6f67149d5d3df30076b461dada5bd862e4b97daf30a6d15c3f50526b46156d9ffca946b3c65d7
DIST genpatches-5.4-251.extras.tar.xz 1812 BLAKE2B 440f5d63b80e31753c46c2c2bb07bfdd257cac6847dfaed63a19c9e255da0e6ca31f5535718572afa143918bbab9d8651b0d8462f5bce619866d78acbc063682 SHA512 54d1ea7625daff0c8d50f8abfba616378d8bc4c62cdfdc03648bec9312803464d0c662bfa619c357a73247c00b22b9725896cec5aaefc66ef811e0f97ff62e91
+DIST genpatches-5.4-252.base.tar.xz 5808300 BLAKE2B d5cb4fe312f469a331269eca8604d9c43feca79bc6778af670fad859de3098c31cf0408fb58d95f233564e0ab2eff7a45ad041b8fc6bb97be0f93dd911224b62 SHA512 4970b66f064f53db230877fed6434e39aebb727438465667af6eca8603b712089830789c16bae5fe0249dfed0cb4bdbf1ce695cc7a1ebb6ab64bb61b1b38a5cb
+DIST genpatches-5.4-252.extras.tar.xz 1812 BLAKE2B 07013e9aa5c8a2380424df700ac7ce592732316b97d6605ffb0e75270b9b08716030a56ae78b9f09b9e314fdd78ab8a8bf986ab767eadfe0a58cf2906be52b17 SHA512 3070acc7127a372f02479f4eee5f465dc3c1fe1ac3b4c2ce0af61d2fe091c509f7e7ef2af8564eb178efe031ac5fbf2f23f48bce4ea54d4500e1b1eaccea6340
DIST genpatches-6.1-36.base.tar.xz 1892196 BLAKE2B 21e7b006889ce39d3b2afaa981cb04c1229050d13b944086ac2c51add6c63dc96c3ac2dda188dfa11a45343904e26589684ffea3a22c235738c1c6d8c38a11cd SHA512 b4de4f6db586a9aafddf639ae914b35ffb0e2340ef312c64a48f4a0bfc02c573437595fc61596245dec2eac7add9f62925e575e2f621d2cf2e80262096f64df9
DIST genpatches-6.1-36.extras.tar.xz 3808 BLAKE2B ba99390043e4a62ea1322364ba601440fd70079ffb98dea924f91aeb00a7add4d2402e16589e0406e66ff9e0ec7a9d0d76e0a14276fe486507345c8ebeb82bde SHA512 ab4170a7b75c2617ccd5c08b7c5d84e68e593cacdca70dd59ed0b738639ddf3bbbaf6a4758728ff74026478a341782eb0e73a6a40ef9a7158f9c6221703afc55
DIST genpatches-6.1-37.base.tar.xz 1905836 BLAKE2B da087dc0f3e1f683b025c16f9fc4c60fb041d9b1a7c886f6b235dbf28afedda1283780298add52e211d4bde198247413c633908f891f6d1464bf0caeaff76f26 SHA512 528ac52eb398dc272a0011384c6ca4af72cd7e0b4a75f5c81d71c8aa7b04a11b58ab5445b99bfb53bc559e99e5aeb42dd9479aa8c8b2d42510709614de75872a
@@ -36,6 +38,10 @@ DIST gentoo-kernel-5.4.244-1.amd64.gpkg.tar 60528640 BLAKE2B 304077b1c25137f1598
DIST gentoo-kernel-5.4.244-1.arm64.gpkg.tar 56535040 BLAKE2B 11eb5cdfaa750cb84a64f804af672834d971e8bc8df67d3c86dcb3274d710f4d4fca4ff8d611b520dcc3a9fb4c36be1892b7fc38d06bca84545ecdb4ac21cfdd SHA512 ba63594c7546afbace4eee7102c05d66f8d93d596baf889b0224d753d806c96715a8f2088237ae1142ab7b1b5cda96fab38a2af1600711402ee25aa2b5ce016d
DIST gentoo-kernel-5.4.244-1.ppc64le.gpkg.tar 54210560 BLAKE2B 879d7c2ea090a0f09a5852cacd2409baa0efcc8436f266f02730f107ec3dfd90ba561a35bd83c5b5a7bbd68a193a4e5062f5bae1cd5fd7aa7079ea4d59b2f2cc SHA512 2bc13bc6f4823c2316d31c25494345abb79db4261320209cbce07b504eae4e70e41bc95af6ab4c01685fdba610836d5dc4de21e446972c31073ac0ef8ab80da4
DIST gentoo-kernel-5.4.244-1.x86.gpkg.tar 52480000 BLAKE2B 91f563979539a150518ac368fe030bf08e48492037103f2f542a9148b0038f21656536d15be558e1bf193990da93560d37d23560e29f83a0b31c4c79bb8f6400 SHA512 f20773e9ffc3fa3d562a12cd0e184bf3801560b50b4a408bd923ed7381aeb658b480504e8324943d56b461bed7a9859b44e5a804f3f873e61b08df53112b55f2
+DIST gentoo-kernel-5.4.245-1.amd64.gpkg.tar 60528640 BLAKE2B af046a3be180db341703bbb48b4219475a87604995cfe3a55fafa32a7892d8edfff3774cc23018a0dba9015aef1f19681d5f02dfa67571c0275e67f30e979fdf SHA512 069e95aee4f63da0cfd98b49b44c7a9a99bc59143b87b5418ed68878125bc4d2d6e8fad9d79ef7912ee0c2f51665862697d3199f2d91b3efbfa73448c1ff4608
+DIST gentoo-kernel-5.4.245-1.arm64.gpkg.tar 56535040 BLAKE2B 3a4e3cf0cbcfe1ada3ad64d7e3e67e379849ad86ac3a485548198dd0f41cc837ae4dbb25525c7646308a28d084d55e9a0abe588bbd92bac8501d21a56db0684f SHA512 8f84e1087cb3ccd2e90918b2c99daf6c3596ad35fb9452e731b78e8ea0886d33bdb6c356daafcd429656228e0b34ef46b0c676b276af7e4e1d6f5ca5cfbfca84
+DIST gentoo-kernel-5.4.245-1.ppc64le.gpkg.tar 54220800 BLAKE2B 536a5a181f908e660361c59c3faf103511352fde966b2a01b7db310097f4d51502ae29bef16891d2518c8e645c7c47efc25e9af4ce7c4aaa14ed0b01b0698fda SHA512 3e2e237a7a0ff5d37a157ecea98fdd59d3623a225ad725d76ed239204c83d8cb3684462b4401a8738550504fa9aa954e185fd6a53a3e5e796fd2e0a93dd5ff92
+DIST gentoo-kernel-5.4.245-1.x86.gpkg.tar 52469760 BLAKE2B d251067b03af67aed6e950633e91c19ba71a2fb24962ead57864d38cd6e493a3fb14808191459ef98cac04b44361d6a0eb0b1d0dac6fdaa3ea13a3035feff0b4 SHA512 d7ce7c17d4f66f1b9e4961ddc67b8ce32a86d10594fd4c3481350bfc9a06aa573c5fe0da8858d6272c57def864f45a35ee82ec477c90a0fc24fa473ae112c592
DIST gentoo-kernel-6.1.31-1.amd64.gpkg.tar 76656640 BLAKE2B 7bf643f5c46e77546e300ef4aa58fe67d9ebfad8a6404dbf3fd166af1f9980f473b70dfc03d1ea7589f02e59c1538627a0f5fa1731331b95c76fa44ee9f51a5b SHA512 109eda5dbfa28f42d8308208bc2240f604965b21a8a2c76ce76331c9dd85823fb666b04d5113677616cd385d928d5d916e73e10fd99995019a1c91394ac92a32
DIST gentoo-kernel-6.1.31-1.arm64.gpkg.tar 69324800 BLAKE2B 57169ac151443e6eba0b83a7973e154eb8b43175c5ff44c796ce85726cc1684470e77a77968b46937dd44cfad789053acbe04c2886bc39375c8b652b46f06abb SHA512 4a453f8a22c8bc99c6bb83377139e8d9a37e540a3ccac494762a7a49c93fee0d3c842aabcfa8e8df7a88db1a2439ca5b5165d9dfb889e5ee0780003b972f185a
DIST gentoo-kernel-6.1.31-1.ppc64le.gpkg.tar 62720000 BLAKE2B de2262a2d4192e3002eb61ef6eeff85424684b3ff4f1f67ac9fd05c7bd33daa7d6b3576c5436a1ab7a7e9bfa741306e6c6f1a215f4b5a6aa939a5df9bfecd5d2 SHA512 f1675afd84a62c4f1552dbcdf6dd108ef5d4b11a1f7af695ae263f9c40976fcca678532a4c2b4c34485ee463e6f7c7ca7668c0ea8dd825f3a3e362839d19a455
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.245.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.245.ebuild
new file mode 100644
index 000000000000..70e2f755ed95
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.245.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
+}