summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-01 22:14:59 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-01 22:58:06 +0100
commitc8a8cdb2a7b570a9f52840145a8be18eebb3be36 (patch)
tree4915947bfae8310e349c9a029f25d9fbca53ec84 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 6.6.3-r1 (diff)
downloadgentoo-c8a8cdb2a7b570a9f52840145a8be18eebb3be36.tar.gz
gentoo-c8a8cdb2a7b570a9f52840145a8be18eebb3be36.tar.bz2
gentoo-c8a8cdb2a7b570a9f52840145a8be18eebb3be36.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.5.13-r1
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-6.5.13-r1.ebuild132
2 files changed, 138 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 37fb4a052a5d..b880b200dfd1 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -30,6 +30,8 @@ DIST genpatches-6.5-14.base.tar.xz 905872 BLAKE2B b8fff1e8a9a9c4d23e70597a7602c9
DIST genpatches-6.5-14.extras.tar.xz 3704 BLAKE2B 21b8a21e4c86bf6d49a6eead8db5baaf2d1c4aaffc8ce6afb23a66cb1b3cc124e864e982d0d2bcf8d3edfdbeb58db71bec3de701db40027b56720969eda3f314 SHA512 f2f3cb5dc4535167448c426d22d8d49205c1474b8faad880306a317bafb3e40052689bf25942f1537c5c9188a10095fea45f4e259ee06739e8913b70ba9f13e2
DIST genpatches-6.5-15.base.tar.xz 1049440 BLAKE2B 642a12b693e6d9af8ffa3182336aa9ecb0924da610a19585b09b275c19a2cdef5e32454b7fd95f87b25d087f923c2020305fe0313e159ab609eb77343d3dc0c0 SHA512 4a0be3c3409f5e053044c06dacb627942050f66e2cc5200efa92661d71c8bd9d16663c7576fc4b63defa8f00b8cb34a24f70bf9ac5add6858205bbeede31e2d0
DIST genpatches-6.5-15.extras.tar.xz 3704 BLAKE2B 5d477a5328c365422ec0cd920aaf29c2af00c647ae00d45aef9211874ab8a462a2190983d3105ef90951c08b7eef83b4fa8ea862ba2ce70851aaedfdcc4f7264 SHA512 2192254b7fae30828a4b19a2a80042f8b6ff18318a2035ea443a8394fe6551c52d421bdd4e2821aecc70425146543eafa0222cdc2254773e5e6f1d9b03c98aaf
+DIST genpatches-6.5-16.base.tar.xz 1050076 BLAKE2B 21e986d6a52db8b7bfb02f247d39e03bb3fcd6cd27564d86f519ea7fd3b48a7cebfb228ef14a477b5d864318021e453254e0c928a8f2817628cab28d552b7f97 SHA512 0d10770ff3024d146c870afce97d1aeb880a163ec26171e7bab2e6209786d85965724c12132abfd6c5342a9e461850967dab79c45d71710bc318443bc7c51c87
+DIST genpatches-6.5-16.extras.tar.xz 3704 BLAKE2B aeee3a46f5f29c87e0fc0fa26b50ade77b90b197b79c87a8f5f728b4d29f13acbaf04374219a0be04025bf4a12aabca4af7d081052ab1718240822de9f52790b SHA512 dbdc3b55553fff537539fc64e9e4c0c613db758a39038dca737d49d33d8a12e12087f265a6b260cd8cf3cfd1e2b6638f3f26029989a3e637ec57709404b90254
DIST genpatches-6.6-2.base.tar.xz 14616 BLAKE2B 3da38df6de90845f4ffdd61708573589973649c5d38082199994488d2679cfc70f954acdd1760a1b4a9162944f0bffc0443590956898b6d1fb79a363958c2859 SHA512 5abd3bf1d05e0e4331ebd2046d6f1e4f1091e25bc4d5624b78f6cc702dd14f6e11f6441bf12694500e96803909384420cf3b82148ae80c23a7f1c66b5bd2bb84
DIST genpatches-6.6-2.extras.tar.xz 3704 BLAKE2B d236133d98bb12a2310894614452c4d293b082a8f42a26c502e26022432515e71791dbdba1ca25e62e5d4904b441bc86ab123915ace1606d1e28571e83f0e9a5 SHA512 3bc907ecd0bab38c21ba8703fd0b44a0f23c9ac3de36029764813d121f0e4f3da8299671ebc021bf501c7e6cd63b848bb80a14fcb601f02cf850a8bf3bb0d826
DIST genpatches-6.6-3.base.tar.xz 214140 BLAKE2B 8004fed867cbb854c681834b0d297336189a638cf4b2f513e3f78fba469e0f385ac02ad7cfd752ec351da1aea7698576a7ae7001fd2872cd8124d4e664cba0c3 SHA512 1d6f276b145b7ebb6dbf9064319ae64050ff613f495fefaa973c06abfebce23f176ca00988918812ce81610044ab840cbf77f3b015c43754cf2c1b905a516dcd
@@ -102,6 +104,10 @@ DIST gentoo-kernel-6.5.13-1.amd64.gpkg.tar 83783680 BLAKE2B 54d1e281fa68adbfa229
DIST gentoo-kernel-6.5.13-1.arm64.gpkg.tar 73676800 BLAKE2B 2bd9df4b15fdb1bae13221d58bbfb3036c3f2167512dbebe2e7f51f2cc9ca0656724b550c3009f0288635aa9f7b2bba3d2b7b54e99e6862793d4210c58e2a864 SHA512 725a86b4536d23ff1583cb38680af64623ed03b25c18b9ee665e3f30ee3e0a1635248757a09283ad258dad3569cd5abeb2d5bc347ee057a94f32cd8b61e11bd2
DIST gentoo-kernel-6.5.13-1.ppc64le.gpkg.tar 64573440 BLAKE2B 1d91056ae5391e7fc7dc71d8da3d387d5808146effc2e434a431dd18440cd209c1a17750812a5cd94ac8327cb67a3d4fd9a6789c833bb48507ac0c986890c716 SHA512 53f451deef414f4887ccfb1f8a5b23079832a779a8917c8140df0fe1fac7b4acfef2a4c07b0194ec7915a597f610629406f3205a11bbe0206a2d9e1175f1e1e6
DIST gentoo-kernel-6.5.13-1.x86.gpkg.tar 67553280 BLAKE2B d33863f185cd8a068510757f8730bf00a85ed780c3dbfd10e211af84e3a27948eee70da80d7a4c41f005612dde970f85a2c7724e465146a5d245159c2b8cb01d SHA512 bc62d4a5809b33238216854db40d470fcb421630a895defce5377ef7b5bc58c2bd4552a528d59570955e16833876a8be41be8bc6b30a111540a01d166695111b
+DIST gentoo-kernel-6.5.13-r1-1.amd64.gpkg.tar 83752960 BLAKE2B 230d3952ef562dfe44bedea6d0fd07878be98b5cfffe45e73a9269ea94e987e1e1959481cc603a64b9cc9697f1502f56af6d6bc1c5dd3aa8e8a49c2a888e246d SHA512 a04085941ff90cf7b4d981a7313e5d17069f438e37602352f2f08d5adf60cd2cab7f2c97771590fbc98db119498b5a5c3903f3d29c8183be85657a18bf1a3066
+DIST gentoo-kernel-6.5.13-r1-1.arm64.gpkg.tar 73676800 BLAKE2B 6c33cd2f693772cce3b8e7e45cc12e23c0d3ba2b7e8c3c5e2dc3107a22ed64de62635dab0912c8bb6e9506db4643456df262930280af90ead41355e011f91212 SHA512 e257edf016c280c646f491ec0a621fa8fd04f1374aace1ddefab6ccae08edbe256cce3eb3568e58eb75933eaab3a840106760ebd45caac6982e4bc47dc4f9118
+DIST gentoo-kernel-6.5.13-r1-1.ppc64le.gpkg.tar 64563200 BLAKE2B 3ecbd9f43576663a0c533fed1e73defb7945ec254b6a6cf4b54dbe278b1f869127fe66a2d42bded9175a398b1ab111344556b1bbfc9580f3c43ee00a33acb7f8 SHA512 811196c400a66c4b789ff3d646ebc3d47517eee237e3359ff830fe11401623ba8fb7eea1b067db747c39838e01217fee0ecf4d61089348e3f7bafcab6f8d791e
+DIST gentoo-kernel-6.5.13-r1-1.x86.gpkg.tar 67594240 BLAKE2B 3205ae15eb3a9db21d85e98be95bbda065d4eaa434756f0659aaea788657064420ca92da9cd0c730a11e904ca58ad723791899bd542e67916da13d01c14955a9 SHA512 3a93440db36f7d3f690725cd1e6da65e4b832ada8e3e7a14279f7f43aab44bf6ee7e3401dec1c250b5f5e472edface9c3c161a94b5ec25b0b2b7ecdfd1a67c18
DIST gentoo-kernel-6.6.1-1.amd64.gpkg.tar 84480000 BLAKE2B f11f7364ec2621ae444e4c02dfc4f72c4e43e9a88d520502346c7b6dadd04682c2e22375a9ad7ea7ab08404227a83d658880598130d8db037d614c9cc60589ce SHA512 de29436d7e400255850e1e172b71a233fc2ae9132e6f4f3fb5fad4f7c9722cf23665cca83c6677506fedc157973630154ba939f339767483366d73cc0650267d
DIST gentoo-kernel-6.6.1-1.arm64.gpkg.tar 74301440 BLAKE2B c96c7349e144e62ed92d420ff73832b6d2fc802b425b6fb92f87aa36e5bcc3ef0768c9c49386788a2a603ecbd588e567a38c8a07a551a6a6454cdb7753b31599 SHA512 f415beb9450d180517c1f86c839700b4dad4ea1dc937f4bd9bca416aa2b2f758e73ddf03ee20ea7898fe120938ac6247cab1cb32b91fab2b829237f60ad82c7a
DIST gentoo-kernel-6.6.1-1.ppc64le.gpkg.tar 64317440 BLAKE2B cf154bc0144b8af952cee7bd4e7e7f0f6123b6c8a71f8a984ea3f79989aec977057e24bf27b6984d51626427d28cbd3cc24db062d8ba2499c2e54e99508f8a1a SHA512 68eb1470cc3d000ca71b61b34a2fd467302059f5bd7780181aed0eea8ce68f32e170cdc93f7625db74c82f230c8fcb4850a27183f040f9ad52a13ad35df5ce24
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.13-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.13-r1.ebuild
new file mode 100644
index 000000000000..d884745633eb
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.13-r1.ebuild
@@ -0,0 +1,132 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_EFI_ZBOOT=1
+KERNEL_IUSE_SECUREBOOT=1
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
+BINPKG=${PF/-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="$(tc-getSTRIP)"
+ 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
+
+ # Modules were already stripped before signing
+ dostrip -x /lib/modules
+}