From 56ca70fcf9bacf0729fbd7e671ce58c03581c84a Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Tue, 14 Jan 2025 14:06:47 +0800 Subject: [PATCH 1/2] arch: mips: configs: use LZMA compression We only have ~54MiB to work with, try to make everything smaller. Signed-off-by: Mingcong Bai --- arch/mips/configs/deepin_loongson3_desktop_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/configs/deepin_loongson3_desktop_defconfig b/arch/mips/configs/deepin_loongson3_desktop_defconfig index 7ea3575c96ca6..76cb956c8d801 100644 --- a/arch/mips/configs/deepin_loongson3_desktop_defconfig +++ b/arch/mips/configs/deepin_loongson3_desktop_defconfig @@ -1,6 +1,6 @@ # CONFIG_LOCALVERSION_AUTO is not set CONFIG_BUILD_SALT="-loongson3-desktop-hwe" -CONFIG_KERNEL_ZSTD=y +CONFIG_KERNEL_LZMA=y CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_AUDIT=y From 6717a75772f95f55f17f7fa33ce5738ee9d8bf9d Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Tue, 14 Jan 2025 14:45:48 +0800 Subject: [PATCH 2/2] scripts: package: buiddeb install vmlinuz for mips MIPS Loongson supports compressed kernel images. Signed-off-by: Mingcong Bai --- scripts/package/builddeb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 30c4d308b4397..6e0d3796fc5a4 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -85,12 +85,18 @@ install_linux_image () { case "${SRCARCH}" in um) installed_image_path="usr/bin/linux-${KERNELRELEASE}";; - parisc|mips|powerpc) + parisc|powerpc) installed_image_path="boot/vmlinux-${KERNELRELEASE}";; *) installed_image_path="boot/vmlinuz-${KERNELRELEASE}";; esac - cp "$(${MAKE} -s -f ${srctree}/Makefile image_name)" "${pdir}/${installed_image_path}" + + case "${SRCARCH}" in + mips) + cp vmlinuz "${pdir}/${installed_image_path}";; + *) + cp "$(${MAKE} -s -f ${srctree}/Makefile image_name)" "${pdir}/${installed_image_path}";; + esac # UEFI Secure Boot CA paths. deepin_uefi_ca="${srctree}/scripts/package/UEFI-CA-CERT/DEEPIN-UEFI-RSA.pem"