xref: /OK3568_Linux_fs/u-boot/lib/lzma/README.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThe lib_lzma functionality was written by Igor Pavlov.
2*4882a593SmuzhiyunThe original source cames from the LZMA SDK web page:
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunURL: 		http://www.7-zip.org/sdk.html
5*4882a593SmuzhiyunAuthor:         Igor Pavlov
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThe import is made using the import_lzmasdk.sh script that:
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun* untars the lzmaXYY.tar.bz2 file (from the download web page)
10*4882a593Smuzhiyun* copies the files LzmaDec.h, Types.h, LzmaDec.c, history.txt,
11*4882a593Smuzhiyun  and lzma.txt from source archive into the lib_lzma directory (pwd).
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunExample:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun . import_lzmasdk.sh ~/lzma465.tar.bz2
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunNotice: The files from lzma sdk are _not modified_ by this script!
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunThe files LzmaTools.{c,h} are provided to export the lzmaBuffToBuffDecompress()
20*4882a593Smuzhiyunfunction that wraps the complex LzmaDecode() function from the LZMA SDK. The
21*4882a593Smuzhiyundo_bootm() function uses the lzmaBuffToBuffDecopress() function to expand the
22*4882a593Smuzhiyuncompressed image.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunThe directory U-BOOT/include/lzma contains stubs files that permit to use the
25*4882a593Smuzhiyunlibrary directly from U-BOOT code without touching the original LZMA SDK's
26*4882a593Smuzhiyunfiles.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunLuigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
29