⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme !!!!.txt

📁 Linux 下使用Lzma 替代gzip压缩
💻 TXT
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -