2007年8月28日 星期二

Squash FS with Lzma

squashfs3.2-r2.tar.gz
sqlzma3.2-r2b.zip
lzma443.zip

tar -zxvf squashfs3.2-r2.tar.gz
unzip sqlzma3.2-r2b.zip
unzip lzma443.zip

cd squashfs3.2-r2

[gigijoe@localhost squashfs3.2-r2]$ patch -p1 < ../sqlzma3.2-r2b/sqlzma2u-3.2-r2.patch
patching file squashfs-tools/Makefile
patching file squashfs-tools/mksquashfs.c
patching file squashfs-tools/read_fs.c
patching file squashfs-tools/unsquashfs.c

cd lzma443

[gigijoe@localhost lzma443]$ patch -p1 < ../sqlzma3.2-r2b/sqlzma1-443.patch
patching file C/7zip/Compress/LZMA_Alone/comp.cc
patching file C/7zip/Compress/LZMA_Alone/sqlzma.mk
patching file C/7zip/Compress/LZMA_C/kmod.mk
patching file C/7zip/Compress/LZMA_C/sqlzma.mk
patching file C/7zip/Compress/LZMA_C/testflags.c
patching file C/7zip/Compress/LZMA_C/uncomp.c
patching file C/7zip/Compress/LZMA_C/kmod/Makefile
patching file C/7zip/Compress/LZMA_C/kmod/module.c

cd sqlzma3.2-r2b
mv ../squashfs3.2-r2 .
mv ../lzma443 .

Disable BuildSquashfs in Makefile

make

Then we have squashfs tools with lzma support

沒有留言:

張貼留言