sys-kernel/gentoo-cjk-kernel-bin: add 6.18.66
Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
14e169762b
commit
d6a590c918
3 files changed
+260
-1
No files matched your search
@@ -15,6 +15,10 @@ DIST gentoo-cjk-kernel-6.18.65-1.amd64.cjk32.gpkg.tar 143564800 BLAKE2B c0d770a7
|
||||
DIST gentoo-cjk-kernel-6.18.65-1.amd64.gpkg.tar 142653440 BLAKE2B 276cf1d230b2f8e8660d8869f7da4b8b8bf1c6360f3214cdf9b5ae009ad6c06d163b7d316af3f981a984e524ae7a8fbf4ef78160918cc6f139ec13ecf13153e3 SHA512 7a6525ff7f81af7aad31d6166e31b559b97ff4aae4be412b3eb395f0b41f0161bb41e961787928a6bf6985efc972936363652448a7f894ee471f0323fc7c74ed
|
||||
DIST gentoo-cjk-kernel-6.18.65-1.arm64.cjk32.gpkg.tar 128778240 BLAKE2B 191114cdf140c307e5c082d60277c7b1d35954f465ea739a10dde879be1d948d7b18004ad2445206c0ce3d9495af06e9f3b6105648ca82e4dded5e2b67d57c73 SHA512 698fc817dd849ef4a051cf3279e2393dca40aa2cb0fce9a2de243a5010c4ef9a7cf3c3dfa6d9c6e23fce73c8d5ddc1e21a5ecd1f999791a8464d9b83ada4bbe8
|
||||
DIST gentoo-cjk-kernel-6.18.65-1.arm64.gpkg.tar 127866880 BLAKE2B ca1eb5fcac1b9c1ca1cd1116f5705f74dbedb9bbe49a97e852c1614ac50bf0bbdada2cac9b1fc45ca97b0adeb50e94209de9804929ccb717bf2c40568008f3e4 SHA512 abfee1899d56a1697016e00fbf2895a58561d7c617f8c459abb22d21b7d00e3b26fcdfbd45e541d64f1334b7815b46c23bdb70afc00830c0174440fa263918a1
|
||||
DIST gentoo-cjk-kernel-6.18.66-1.amd64.cjk32.gpkg.tar 143626240 BLAKE2B 3d8b2db08f048be92ab158187809505d5d6226427b5f29ec2bc4c08fd85b4e5f3ddd71f94f17aa23769139d8baa0b578ee8a578c6223a6f0f28ea9b65453e6a6 SHA512 027174eb985730c75c01e55bb4bd4297233d33c376ac0228939f707f5b3a00c4dabfa7a1aefc21ea7e3d0f4d8e3b257a02bf484a44b1dac96ae8d03495a3d107
|
||||
DIST gentoo-cjk-kernel-6.18.66-1.amd64.gpkg.tar 142704640 BLAKE2B 44e6dc163684c6182dd0ece14e0ad5322ff4b5c6e29aa4586b623232e04e4d5f88820b2b1ed1c63db226ba5c4895c988374dbb5f473ec7f1876660b489103099 SHA512 99fcdfdd94f7cf739db6e04651cd23433fde5faff96762005e75c19de7aafbde4d68ccabd53f82e67a34f1a952b1886a92ea6a00b3a4277c2a40c4d95fcb49f5
|
||||
DIST gentoo-cjk-kernel-6.18.66-1.arm64.cjk32.gpkg.tar 128819200 BLAKE2B 7e49e51d6636141e3843f02432fdf2996b52bd64333f4c95598ee12d6539400c5057f29d461d5e495f94081c78adef60249a44370fae2bcf3a2d4108feb59603 SHA512 e3aaafd9c45a429aca77ffb48de89ff97973b9e24e8a4e53de7b6b09ace8d33f6a207fbde1534456ed8d2306ffc38a73f7fd77cd9ebb214529ef303d4d3803c6
|
||||
DIST gentoo-cjk-kernel-6.18.66-1.arm64.gpkg.tar 127928320 BLAKE2B 2ec0935a0e9b61c4661596c8ee6d27a020951b73bc02c0ae3361260e8b946f0c40482a21137716eb811e1854d571c1da4a45f915bc226e47e684d5226fb018ec SHA512 6c3d24a739d2c36258a3a92b8117364475b1f498588e53f3962fc23be69035141353f6394a80e6e4406dfe3575c72c2904ce72808aee3fbb782ef54c6fe6ec04
|
||||
DIST gentoo-cjk-kernel-7.3.6-1.amd64.cjk32.gpkg.tar 150702080 BLAKE2B 11358c4afdd661e4e9d0f5208220006a89d24f974220ec409f5dbaaff2b32eb4d245f41c8ddc6ee8cfae92b35a2ddf637d330e7321eaf2e6b5084ef27c7a087a SHA512 12a3e99ea7c8761f0aa3f2908564179816f92e4baded9bde5ff6084f4680afce3489e3f351f7f7341f8c1cc64206ca00489a2f02b403393e9f07d22c63a84223
|
||||
DIST gentoo-cjk-kernel-7.3.6-1.amd64.gpkg.tar 149760000 BLAKE2B a08e8c999cde9d9157546ca9db015e2fe9b89523f09ae934f07e6ae3f1511db46b4b0e9f11608ce09dff3df86bbf6a479f8d13a591c8babb91f557d3ef82a839 SHA512 6fa65d4e0d371f94465a88e009969eec4f482d3c86ed10d96e1d25a69822a95c5d6615476b2b81e8cc5cfd11035ee1fb932afde13db6fa7267147229716cc41d
|
||||
DIST gentoo-cjk-kernel-7.3.6-1.arm64.cjk32.gpkg.tar 137369600 BLAKE2B 8a78e96c017a4d5ec6cb7b4fb90ab26adabf7926c5a27e44f6536619e70197da7f216d2e149d375410bee59c935acf1aabf84c85f003f6bf217cd401504b752b SHA512 768d53bf8012639fe353ec0bf588ee272d39c57d8afa6225fc69b83380dbddf36196a63213218a6f47fdebab45c121c108ce1cf80bac61daae1b598fb0b73a28
|
||||
@@ -31,4 +35,5 @@ DIST linux-gentoo-patches-7.3.5_p1.tar.xz 10424 BLAKE2B ac7db10666b2b135ac92cecc
|
||||
DIST patch-6.12.119.xz 8149528 BLAKE2B 37598a0f2327d1ef10d7832dd54fb6434eb0d82e8f950b2eab70d481c175d0162d2adb9a7908026a82e5dcecd63e936201cbf34bc55ea13d2ce8085b85121e04 SHA512 255f795e1dbda4dcfe118b1140c69c4f000264b38bdb13642670b06a76e355706129aaf134df27593cef0643e11ce2b2c51d1053fcccd3fff08975e5840a7d93
|
||||
DIST patch-6.12.120.xz 8325420 BLAKE2B 4bdc58ce887b850f487aa62e9eb6cf37bb73c56530be8bd4810ee204630345d45a5fdada49b25a30b0979d0525b404cbee22e51ef3135edea64304a5629ee956 SHA512 b7701d7633e6fa010e0a7df41adce8f068740bfc1eaf3d5a671c7ccbaef835273e64f26b9fd3f6b1d20ce2740046c03e4515c1ea000cab2377cc908e9a745498
|
||||
DIST patch-6.18.65.xz 6243504 BLAKE2B c031c41d08a9f452c65c1b359c25a142b083341a29fd03c82d6a90ff740f41dc72879bca808ce8e113c3dec38884ec30c20529bedc7aa3ac80f8baa38e19fee2 SHA512 2708944184fee23f188ec250d6e885fa7baa18ae66dfe2b90c456423d2b6a0d8516ddda2c9ee137dca18c3056c6af1a100ed222415120928e32937c92b02cf4c
|
||||
DIST patch-6.18.66.xz 6507656 BLAKE2B 75625f7f75251e262a86e9a09d480c5adcfaae4e7e27b3a919c05eb0e44ce10f0a0e61039fb5ca09eac82aa664ceb30a3ed71b71034a71200ed08cf753fd4397 SHA512 ef3250d4661a655529bac40c7c9935f7e76941cd6afa18c3d064cee02f61905bc79301fbd84ddc1d7606422efcaaa3a4653734bd1294072a18a558d384183b58
|
||||
DIST patch-7.3.6.xz 1579464 BLAKE2B a3697a496ef2bfc831c247a3c649c4af95b25fca689a5028ecc22e2416f21f93f5ffdb7c82358b420f9650c37e1062595d0eb7249e7feaebc29e397ba6a57687 SHA512 770a0396e3f27d534e2f53ab210a6c57cda26ac400112e544d557588978f0f6641676311ab4001f416e53bb21706228303ae3f061330b3a972c3d5630e27ee1e
|
||||
@@ -0,0 +1,251 @@
|
||||
# Copyright 2020-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
CJKTTY_PV="6.18.63"
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig cjktty
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.18.64_p1
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20261130
|
||||
|
||||
DESCRIPTION="Pre-built distribution kernel with the cjktty patch for CJK on the console"
|
||||
HOMEPAGE="
|
||||
https://github.com/gentoo-zh/cjktty-patches
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
cjk32? (
|
||||
https://distfiles.gentoozh.org/gentoo-cjk-kernel/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.cjk32.gpkg.tar
|
||||
)
|
||||
!cjk32? (
|
||||
https://distfiles.gentoozh.org/gentoo-cjk-kernel/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
)
|
||||
arm64? (
|
||||
cjk32? (
|
||||
https://distfiles.gentoozh.org/gentoo-cjk-kernel/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.cjk32.gpkg.tar
|
||||
)
|
||||
!cjk32? (
|
||||
https://distfiles.gentoozh.org/gentoo-cjk-kernel/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE+=" +cjk debug"
|
||||
|
||||
PDEPEND="
|
||||
=virtual/dist-kernel-${PV}-r100
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
app-alternatives/yacc
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-cjk-dist-bin'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
# The published binary carries these patches, so modules_prepare has to
|
||||
# see the same tree or an external module gets the wrong Module.symvers.
|
||||
cjktty_apply_patches
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
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)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# 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-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# The published package is built with USE=-modules-sign, which leaves the
|
||||
# file empty, so an empty cert must not override the user's own.
|
||||
if [[ -s ${kernel_dir}/certs/signing_key.x509 ]]; then
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
fi
|
||||
|
||||
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 "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/.config"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
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}${rel_kernel_dir}"/ || 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
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
ewarn ""
|
||||
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
|
||||
ewarn "Do *not* open bugs in Gentoo's bugzilla. Report problems to"
|
||||
ewarn "https://github.com/gentoo-zh/overlay. Thank you."
|
||||
ewarn ""
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
kernel-install_pkg_postinst
|
||||
|
||||
ewarn ""
|
||||
ewarn "The binary package comes from distfiles.gentoozh.org, which is a single"
|
||||
ewarn "host with no mirror network behind it."
|
||||
ewarn ""
|
||||
}
|
||||
@@ -8,5 +8,8 @@ SLOT="0/${PVR}"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
~sys-kernel/gentoo-cjk-kernel-${PV}
|
||||
|| (
|
||||
~sys-kernel/gentoo-cjk-kernel-bin-${PV}
|
||||
~sys-kernel/gentoo-cjk-kernel-${PV}
|
||||
)
|
||||
"
|
||||
Reference in new issue
Block a user