summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-08-03 20:04:13 +0200
committerMichał Górny <mgorny@gentoo.org>2024-08-03 20:10:58 +0200
commitd7e3c219edf6919d6294ee690fa4b34e171a8f0a (patch)
tree6946cc049cc85c1b533f35bd57f7bd170f255276 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 6.10.3 (diff)
downloadgentoo-d7e3c219edf6919d6294ee690fa4b34e171a8f0a.tar.gz
gentoo-d7e3c219edf6919d6294ee690fa4b34e171a8f0a.tar.bz2
gentoo-d7e3c219edf6919d6294ee690fa4b34e171a8f0a.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.6.44
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.6.44.ebuild164
2 files changed, 170 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index e4d81e1f6c17..ad4275026562 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -46,6 +46,8 @@ DIST genpatches-6.6-49.base.tar.xz 2664860 BLAKE2B b6117aea15e733852794addb703b2
DIST genpatches-6.6-49.extras.tar.xz 4060 BLAKE2B 4a63f3dcfd864b303a90247bb34de3071ec3f8be751df06e0c42e48ed3299939aa2b58a64669d091adc751cb8cb296f98d17cd421e263f7da22997e9fde3f2ae SHA512 518eb6d8e295919db80748c07bcc59300eea0a0961d71e8618de9fa4371d6266e51d437521c183014ba92a35f1408c53306f5b7c6d82dd0e644209b1b73c12db
DIST genpatches-6.6-50.base.tar.xz 2671516 BLAKE2B 356a9a17f69416423c37c801e715dd4b03d1ebf02411a3e637e3790b4adba44db6c04f51f19a6da4ba420332cd5af1221692dcfc2ee1101825a5c8a8885c2e44 SHA512 e7a74df4659bdd54bf0bdb4aad8172bb1374aa563a19d28cf9643d034b59aeb55343ff5048d3aea42ddcd7561f0f723f951ab1f00c05e5ad88d20e70b7c3069e
DIST genpatches-6.6-50.extras.tar.xz 4060 BLAKE2B 57044e169841ec9e977b107ad32741262bf3f1455638db2d105e160f2ccc21a6dc6bcd75e09e7f0761ffe3c1879dfbaf39bbef8150cd0de407875f2bbbfd700a SHA512 5c0d55dce1f869f79ec0db577d282b078ceb17667e5b18ee1abb00a6f94ee82978039ddf9650cbccfa1b8f9b99abd48057c44b230510bebe17d890e316d6c7fa
+DIST genpatches-6.6-51.base.tar.xz 2817576 BLAKE2B 42dbf8663f53bc7196c57c7cb93029b780354e6e1580405b08a34fadd2ea38302c37bb4559df4c65916b0ec2f98c61f7eced52fc6be3de0d6dbe7468dd3d8c22 SHA512 fa25988574b06ad59403b1858d97f70fe0e6056d0b889d8a6e56f44b763146da63a952a2b7361f3bcab1aa34c9a3a97f81a35113a3e5173a2e09b704e54c386f
+DIST genpatches-6.6-51.extras.tar.xz 4060 BLAKE2B a9e7008c67de6095d6c97bd6fbe9f7359e71d0b40aeb11a0ff14a0cca4feea199a3895bd9ac086d3f011b5c35a98f46d5856b8d27ca7438b8979203ff9164155 SHA512 fa649b918f1bcb7dbe4670a30dbbb47bbf8d57da73724463bc8fb5664c527f082a02f06ac96ff6a538469fe73fe0978f97bcf69b64a1a8d488387ff5a06844f6
DIST genpatches-6.9-10.base.tar.xz 602768 BLAKE2B 614634ed1d1132be830e91a13dc509022a6a476b678f63dd4f3c428e7c37eec46f47a32f927f3895ff65a6ab5b046a3b0ca2df88a94678f898292d0970859734 SHA512 7826d46d8faaf64fb268f8dc940621f434f8729e706b4178adac2a2c353bccd854e5fea6c3489d5d0c48d469d6f6e26befa01d5a0deaba48f3e6140eb096de5e
DIST genpatches-6.9-10.extras.tar.xz 4052 BLAKE2B 607bede5f0c3d38f72fba841861caf6f90e7f0068373d951a6aa21a29cb7523bcd6faeeb5602c6a7395a802d35e657aaee1172582ecddd0c4143fc21ea9c4b3c SHA512 b9e59d200cb06ea3287557e1ca1cf7116df61019f423fa8149195d36d7d2b143265341bef5430c4f761b0926ad823775cb2c83c852d22dc4acdb0d9628da12bc
DIST genpatches-6.9-11.base.tar.xz 636320 BLAKE2B c1a730341ca150f9f698300f59f43d1f4ab2af44745ccd060033702112caa9941a0021e23f9a470cdb0fec51e76779a20e451b2b058943c12e153acbaca4b770 SHA512 e3b40a773a2c58914b25534949f9e05542eb1712b823bf84287ed546e44c9d6e830aadd4c61d4e2a72b1e2b071387a9d1131cfc9f43ee9e26d9a14785b248758
@@ -152,6 +154,10 @@ DIST gentoo-kernel-6.6.43-1.amd64.gpkg.tar 147578880 BLAKE2B 030a26a1024f614fa7b
DIST gentoo-kernel-6.6.43-1.arm64.gpkg.tar 119592960 BLAKE2B 9c5e6262596ed8dfa5d802e2fd051ce35a1b8a6f49cb4c9ac3a61d67c166c75e8c1179aa60d9fb31c8784eabf6bbc9b82c313122eb5667169f687a44ba0e4c2d SHA512 d5f0a412d2d19cc61fe303bec5978b56bbf463d35695bb361efbdbf7826d4f96377e8d74d8827a69d8b52e694f52ce4e6a1ff1aace7a4ec2967d95ccc0b97dbb
DIST gentoo-kernel-6.6.43-1.ppc64le.gpkg.tar 64256000 BLAKE2B d61e154869bc1210eb477a089f2f9a4a2e857e879699c48d972443577fbd8c60c0ace0420dcd681993f505de107dccd928a114c58f8400e8de449c7a61040029 SHA512 bd871dd3d2fc46302bc7d6cbcf8847af114a132a3b56153a257200b43e614be21d23b90f6ae1ea39ad7c704c375cd5971f14b6991d219e756d89d4079417938d
DIST gentoo-kernel-6.6.43-1.x86.gpkg.tar 68259840 BLAKE2B 25dcd8c4e72838e3ba3583cf1f01f799bb92d3cb75cc8de40365b3d3954306c7dc2f87198ab068c8757d44e2701602a433747d35a3f163c8f1b3786d694f820a SHA512 a312eaa4257d0b8b807d1c951cae92540cfb908aec0adedb1b36e04035a7a472f25d60a1e7fa2478cc01c9417621b2bb342b3d58302d756a88d051af73032ff0
+DIST gentoo-kernel-6.6.44-1.amd64.gpkg.tar 147599360 BLAKE2B 3febb331bc02e09618dfc30a1a506d6c3c3fc3e94380901dc6be5c098cc1aeb63bbd98f0a4b881ded4b5ee96c854b71e94548b4399d5b993a192409f986358bd SHA512 e1b1dcb8a22bb161a32f7e47cfb1a35e0340d008beeb9778f3237bb270f7cde58acb2f01c664ddb0a42523e70d9c7bc353d5c0ce124180156dac6d24ade6e3a5
+DIST gentoo-kernel-6.6.44-1.arm64.gpkg.tar 119623680 BLAKE2B b511899cb69664ddb06809b89d36ad0b9c5653764c9a7a61456d156c9e8e52ee09270a41817e731df715b0ff77394d705048a6031ce8208b91bddeb3c2c97419 SHA512 1ce9dc5aa80f0ec2358b03c8aad3fbca6d99cdc6d83d37efbf34601f66e24d7fb359c31cbe007c54fb45666550a815d9f749b02d11a788e1438d514060caa199
+DIST gentoo-kernel-6.6.44-1.ppc64le.gpkg.tar 64245760 BLAKE2B 9837544ce93c514ca767ba918ff928db6420f9a389dbbca174e1e9eba2564e8f4df2ee7d85df64eedbe1f071a7ae8d4e66073eb9284f001b8067782a63d9e261 SHA512 5d1f90df86db60d8f0a6a91954551dba7a05127c9c5091d6b5575e427d99f92a877b10b789e986d52b8fd7a774a43c30066534613732336086041d68a27df36a
+DIST gentoo-kernel-6.6.44-1.x86.gpkg.tar 68270080 BLAKE2B b66846a686bf9f73fc985c8510fa29b0d2d5c0fa10d33c8dd2a7de7894b7924afd3a44073dada2f2dca58767fe618ca626a51a7f31657fc4b093e8affa47f38f SHA512 dd3d34a0fb87a10e4da863d7b198666109ccf466110abee7edb8cc6fd9b947ed071b3278d37b11791a17f8b57e2d22758eb70210f50aa3d10cd5310aa4c77555
DIST gentoo-kernel-6.9.10-1.amd64.gpkg.tar 159416320 BLAKE2B 2d335be253e2313e6de88cf64a21a8ff76418729f481dd67b8b3fc69bab8986cd4780e2a17a4422550c75318b02598bad0ddd704d238122d594621f5abd9e3e7 SHA512 52e918b4cbdd085461a09e73b887712a918f41da081331ad53dc57225933537cc72afd870adf411201b9ac4df49a500bc65479c507305ef2bbf8e714c7883f08
DIST gentoo-kernel-6.9.10-1.arm64.gpkg.tar 130068480 BLAKE2B eb1455d1a444a45db4c7148c61c2be13bcfc6d723683e311a1ccba50ab0beef1f5b93f207717b25e0e1c74020ba6daa1d2c42cc70ff983038eb9ba1628567a9d SHA512 a075ff588892e965ad3c1ff18cf770fa38da7ecf2769526b518088881ea1fab406ab77b5a40aa3e5c1925748fa91d3d2d1a4a8fc99df02aa711c3e5e8b371319
DIST gentoo-kernel-6.9.10-1.ppc64le.gpkg.tar 70748160 BLAKE2B b3d09062b5ddf3eabff8ca1e1844eb445dd2a7a910356fb8799c38b000c7cbde64f259bf09ff6fcf6bd0b49d2ad87c9faa54581f27505dc7dd4c4f3cbfdcdb4f SHA512 41b46556727e57f325e204763cc98eab0627e0bbb00eb7dd054aa9718e61fea49293ba0f858b3f47e723e914b08c0f3785892e02b6d9e9abad1119fdac758bcc
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.44.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.44.ebuild
new file mode 100644
index 000000000000..e0e46cd48882
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.44.ebuild
@@ -0,0 +1,164 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_EFI_ZBOOT=1
+KERNEL_IUSE_GENERIC_UKI=1
+KERNEL_IUSE_SECUREBOOT=1
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
+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}
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel:${SLOT}
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+BDEPEND="
+ app-alternatives/bc
+ app-alternatives/lex
+ 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
+ )
+
+ local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
+ local image="${kernel_dir}/$(dist-kernel_get_image_path)"
+ local uki="${image%/*}/uki.efi"
+ if [[ -s ${uki} ]]; then
+ # We need to extract the plain image for the test phase
+ # and USE=-generic-uki.
+ kernel-install_extract_from_uki linux "${uki}" "${image}"
+ fi
+
+ mkdir modprep || die
+ cp "${kernel_dir}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
+ local image="${kernel_dir}/$(dist-kernel_get_image_path)"
+ local uki="${image%/*}/uki.efi"
+ if [[ -s ${uki} ]]; then
+ # Keep the kernel image type we don't want out of install tree
+ # Replace back with placeholder
+ if use generic-uki; then
+ > "${image}" || die
+ else
+ > "${uki}" || die
+ fi
+ fi
+
+ # Overwrite the identifier in the prebuilt package
+ echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
+
+ 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
+
+ # Update timestamps on all modules to ensure cleanup works correctly
+ # when switching USE=modules-compress.
+ find "${ED}/lib" -name '*.ko' -exec touch {} + || die
+
+ # Modules were already stripped before signing
+ dostrip -x /lib/modules
+ kernel-install_compress_modules
+}