summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-09-19 21:29:56 +0200
committerMichał Górny <mgorny@gentoo.org>2023-09-19 21:47:04 +0200
commit7de6091b51417ee41240e1a8bdf245691f4b05fd (patch)
tree395901cb7d8cbc27e93662693538580c135f9aac /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 6.1.54 (diff)
downloadgentoo-7de6091b51417ee41240e1a8bdf245691f4b05fd.tar.gz
gentoo-7de6091b51417ee41240e1a8bdf245691f4b05fd.tar.bz2
gentoo-7de6091b51417ee41240e1a8bdf245691f4b05fd.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.5.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.4.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 20968b36321e..3cfc64f4ba01 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -22,6 +22,8 @@ DIST genpatches-6.4-18.base.tar.xz 1040816 BLAKE2B 61ce7d234cba40c266e92dbab80b2
DIST genpatches-6.4-18.extras.tar.xz 3700 BLAKE2B b360eff83abdbed397db6405b6b68649a3d6f85a37716eb2f923d47dc3ae5d738ca49c29a58dd2f236c7f50dc233641e3df15b7b75a19364b0af6261afc36d4e SHA512 778791e5e9232bc432119d14a016c00e1a968af30f0a2dd931ebb4103f7f457db991eb1d9ca500d1a3c9295dbf87d9b4fab18ffaebbd46cc8c82077b27c344e6
DIST genpatches-6.5-4.base.tar.xz 258812 BLAKE2B df197ed4a66568eb823c889b15f126c66b6acb9a2cef224e198e576d601f1c5d1ba43bbecf510585adb93445f2fd634889714a31101fb2dddec67da9052adb7e SHA512 70b21a38cd4a2d1759819341365de33590d8d3f460d12cecd781dddbdc69e87e66f81389d8a1bea381bf74188c19b667d3c7789a92e3d8f80080982ba5d39872
DIST genpatches-6.5-4.extras.tar.xz 3696 BLAKE2B ca8bf3d3b195dbfea39b27b574ea3f3e99f843604ce8ed6ffac141e2e198a4721a943d24c0bfeb559570f00985e6371c7badb69e94542af7bb291fa2485d5425 SHA512 db11e8db7f3fbbed7a037c4a8ebe47accefa9794e8a201e6e022adcdfc628ce3d2db9ccdcb0b0133e3b7956fdab9f63fbc3140f1759b31d2c1878f4075de9d2c
+DIST genpatches-6.5-6.base.tar.xz 359376 BLAKE2B 1f549c4adf228ad742095464dca36c704d58b2ef5339c9be0b65ac1d48599bc2127dc6f70461fdad918d46b3ae8b6e18a5fcb98da5a4ab7bb6f7f89ea3701d5e SHA512 f341a401e95d8f34c6fd6edb35224eb6b9fbddcd6e29de52b33ad3b9f4346c822bf947a971ce512007e709e325b6141bd7e3782989740f0ae540a14bcefe593f
+DIST genpatches-6.5-6.extras.tar.xz 3696 BLAKE2B af6aff8421a6d4c205e93b38f4fc3294f609b8ce4f04a472d22ac867a8abe5458e2a29a4ac16d41298cd00d5a1ef589b4579317486464236843b839641b0e277 SHA512 089c87f1c476a391811aff7ef25ed6a0fe049d2738915dd5ecb951253762c9012b25d7e4abcbb5bbc81622aa16482ac7351797ef9c6b9ef9157c83e77fcea415
DIST gentoo-kernel-5.10.191-1.amd64.gpkg.tar 66365440 BLAKE2B f7086ca26f08468b754b0cf9ce715ed763d2866ebc8ea322fb51fa2ab5146f1c7741f68b82d52a7d54442cc36cd5a114132f9ccb0809e8d0ab0da022742a48d2 SHA512 0f4918273c70f06756c19cd2c7738176695aba65eeaa7846aa6773d97e6d3ac4302be0328926f1a217135d21e2660e6e4124ced7f2304c0f1a408ad2561b24a5
DIST gentoo-kernel-5.10.191-1.arm64.gpkg.tar 59392000 BLAKE2B feee11f6bc6148ca0a65077a33cb1736fe2d588037bfada383bff1ca9ca7ea71d6f3248a91cc9b152d87a3fb9580177a68b3748c53e2bb6e0309c7a4b9e39df3 SHA512 bfe38e92e445719daddc4fd87b717c652a0fbc5b3cf3fdaab40c1014229a2bf5b504642c21e5bb478d56742c56100271a7433f113c7c231382d2f226a609f837
DIST gentoo-kernel-5.10.191-1.ppc64le.gpkg.tar 54947840 BLAKE2B eab70963c60d1d668ba562652b73bf47760d326ea2cd3fad8cbf91e75a9329283b9af38ee7391c4bc887c32464a6c8376844135231d155eb11916c926f8c263a SHA512 58a8701b46878dd470a4210f96f65bc85aabb4c8b29aed5d1d61eff2efb1f851c38b648c50afa7cc164406ccdf8ae3bc673f73857903a17c19229f77c8e885f7
@@ -78,6 +80,10 @@ DIST gentoo-kernel-6.5.3-r1-1.amd64.gpkg.tar 83630080 BLAKE2B eb83ecca1f1543f979
DIST gentoo-kernel-6.5.3-r1-1.arm64.gpkg.tar 73175040 BLAKE2B 8647a368d033d41ed560abb49e23d1bd7305df88902c368b86d9b150cd0f25478f60cb20b97046dbbebe034862a290402b24df11aa1f8421ed547c2cdb48771e SHA512 12f825fe466cba5bea9336a01e68b08032d7dc8eb5d098238d295d6a3f54e404227a2ba754525881974cbf9996fedaa14c0e65387522f96ca3e6c8e7d8bb54a8
DIST gentoo-kernel-6.5.3-r1-1.ppc64le.gpkg.tar 64450560 BLAKE2B 8adf4b4e64a5cd52639ebf3f1cc45579540f2fcf5bec806d620d0751258a490a9e48586fe92ff84fd99d443a51eccfe4ab6525c3acb627786c57475659819c72 SHA512 550514639606a16aa7094799380b93a402eac07f57bd752c5a5e33520089fd26d0ac446ddfe02de2a94e9a31b3188666ea8b8fd0b606c51b15711771f3917f63
DIST gentoo-kernel-6.5.3-r1-1.x86.gpkg.tar 67317760 BLAKE2B 93dd9163c763a75919d1207335b5a0a4f23630996981c66b43ef4593cb068975107e7e2b7d25e0c31a59a9e92adb663a110f1ba62221e6dda45a8464aa0142d3 SHA512 e4ef0d789bf62d0f837ce826d4acfdefed515450aa3d869c3fe2d052158d322fff3038a9cfb9de3f425e5f254a8ebf623b473df27c24a4c88f5e1690e988c565
+DIST gentoo-kernel-6.5.4-1.amd64.gpkg.tar 83630080 BLAKE2B 1d7a2b2d27edd54cacf672dfb93ad32a189a0a9cff5c1bb6c26f287bc9b880db1248867d1cf309042078b449e1fbc6d4ed02da37ba778d50d1477869327740ae SHA512 6e3d8193ada502773a47ab796922bf3f7616ad390379220c2fd72e239eeaf26cdcbecd8962c2885428682e2960a3b579b3f129cf869a6c6cd11a842f4f079d1b
+DIST gentoo-kernel-6.5.4-1.arm64.gpkg.tar 73175040 BLAKE2B c9dd7ad9b978edabdb2b5dc1094022a5a9c8d5e92a8e47836b75e030b4060720045b50ad459775e2d2f6ac5c26de29ecaaa2fb33ff230bae0fbdc447540a2325 SHA512 6d4fafccbbc39f9988cff57379635470be5f4a9454b75a611963a3b8b72d5b226a02563c6bc436019c80eabae6a9b192ebdced75b5758cf4f4ea6f17b4f2f416
+DIST gentoo-kernel-6.5.4-1.ppc64le.gpkg.tar 64450560 BLAKE2B 0abaf42b7f47011fcaea8d9d7d4bdd610b22a3ac6a51e7775ffbbe85b4873f065c9cb5a440b22ce92501f83dd57e12a9b081cdffb51380e72ba853401eda69e2 SHA512 0f15408580af1f083f345e29c6ad38a7934707770d3a65d5acfb82455c07a509481dbe1aa143d10d0bf50d65220e90630aa45a60d41fce4ee21561a4fde77a14
+DIST gentoo-kernel-6.5.4-1.x86.gpkg.tar 67348480 BLAKE2B 62573105cf96df4e37a0f474878c3e7e478257dd7675413077904d6fec5740d61ef31bf97df6b5ab3b69858fd31e2c6b6f4d0c3100df6576f90102feff08712a SHA512 81d9bcbfb4bbb3eb3496c62693ac8637cb20ffef279bca1fcec5062ca6dd1774741819548c05bd9608cbc693094cf5d048a815311b4d3da8bc910847d1736985
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.4.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.4.ebuild
new file mode 100644
index 000000000000..c378c0fde329
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.4.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##*.} + 2 ))
+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
+}