readme !!!!.txt

来自「Linux 下使用Lzma 替代gzip压缩」· 文本 代码 · 共 40 行

TXT
40
字号
1.在文件linux-$(ver)/arch/{ARCH}/Kconfig中"source "fs/Kconfig.binfmt"的下一行添加
choice
       prompt "Kernel compression format"
       depends on EXPERIMENTAL
       default KERNEL_GZIP

config KERNEL_GZIP
       bool "Compress kernel image using gzip"
       help
         The linux kernel is a self-extracting executable.

         Choosing Gzip here, makes the kernel image beeing compressed
         using Gzip.

         Gzip is the standard compression method for the kernel image.
         If you do not know what to say, take gzip.


config KERNEL_LZMA
       bool "Compress kernel image using lzma (EXPERIMENTAL)"
       depends on EXPERIMENTAL
       help
         The linux kernel is a self-extracting executable.

         Choosing lzma here, makes the kernel beeing compressed using
         lzma.

endchoice

2.在linux-$(ver)/scripts/Makefile.lib下添加,
#Lzma
#
quiet_cmd_lzma = lzma    $@
#cmd_lzma = lzma e $< $@ -lc7 -lp0 -pb0 2>/dev/null
cmd_lzma = lzma -z $< -c > $@



http://tukaani.org/lzma/download 关于lzma for linux的参考代码
注释:还有DDR-WRT的打印信息

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?