Skip to content

Commit 28437b8

Browse files
committed
config: deepin: enable module zstd compression
deepin inclusion category: feature Support module compress, and compress kernel modules to zstd format. Will help to less kernel module size which lays in user disk XXXMB. It will decrease /lib/modules/xxx/kernel/../*.ko to *.ko.zst ~70%, but increase image.deb ~70%. Log: before: image.deb 94MB du -sh /lib/modules/xxx 520MB after: image.deb 158MB du -sh /lib/modules/xxx 167MB The point is that disksize cost is more expensive than network. PS: do it in our 6.6 kernel need backport some KBUILDS commits, or will bring debuginfo to image.deb not image-dbg.deb... Signed-off-by: Wentao Guan <[email protected]>
1 parent f13bb0f commit 28437b8

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

arch/arm64/configs/deepin_arm64_desktop_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ CONFIG_MODULE_UNLOAD=y
172172
CONFIG_MODULE_FORCE_UNLOAD=y
173173
CONFIG_MODVERSIONS=y
174174
CONFIG_MODULE_SRCVERSION_ALL=y
175+
CONFIG_MODULE_COMPRESS=y
176+
CONFIG_MODULE_COMPRESS_ZSTD=y
177+
CONFIG_MODULE_DECOMPRESS=y
175178
CONFIG_BLK_DEV_ZONED=y
176179
CONFIG_BLK_DEV_THROTTLING=y
177180
CONFIG_BLK_WBT=y

arch/loongarch/configs/deepin_loongarch_desktop_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ CONFIG_MODULE_UNLOAD=y
100100
CONFIG_MODULE_FORCE_UNLOAD=y
101101
CONFIG_MODVERSIONS=y
102102
CONFIG_MODULE_SRCVERSION_ALL=y
103+
CONFIG_MODULE_COMPRESS=y
104+
CONFIG_MODULE_COMPRESS_ZSTD=y
105+
CONFIG_MODULE_DECOMPRESS=y
103106
CONFIG_MODULE_SIG_SHA512=y
104107
CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=y
105108
CONFIG_BLK_DEV_ZONED=y

arch/x86/configs/deepin_x86_desktop_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ CONFIG_MODULES=y
163163
CONFIG_MODULE_UNLOAD=y
164164
CONFIG_MODVERSIONS=y
165165
CONFIG_MODULE_SRCVERSION_ALL=y
166+
CONFIG_MODULE_COMPRESS=y
167+
CONFIG_MODULE_COMPRESS_ZSTD=y
168+
CONFIG_MODULE_DECOMPRESS=y
166169
CONFIG_BLK_DEV_ZONED=y
167170
CONFIG_BLK_WBT=y
168171
CONFIG_BLK_CGROUP_IOLATENCY=y

0 commit comments

Comments
 (0)