1*78acc472SPeter TyserThe lib_lzma functionality was written by Igor Pavlov. 2*78acc472SPeter TyserThe original source cames from the LZMA SDK web page: 3*78acc472SPeter Tyser 4*78acc472SPeter TyserURL: http://www.7-zip.org/sdk.html 5*78acc472SPeter TyserAuthor: Igor Pavlov 6*78acc472SPeter Tyser 7*78acc472SPeter TyserThe import is made using the import_lzmasdk.sh script that: 8*78acc472SPeter Tyser 9*78acc472SPeter Tyser* untars the lzmaXYY.tar.bz2 file (from the download web page) 10*78acc472SPeter Tyser* copies the files LzmaDec.h, Types.h, LzmaDec.c, history.txt, 11*78acc472SPeter Tyser and lzma.txt from source archive into the lib_lzma directory (pwd). 12*78acc472SPeter Tyser 13*78acc472SPeter TyserExample: 14*78acc472SPeter Tyser 15*78acc472SPeter Tyser . import_lzmasdk.sh ~/lzma465.tar.bz2 16*78acc472SPeter Tyser 17*78acc472SPeter TyserNotice: The files from lzma sdk are _not modified_ by this script! 18*78acc472SPeter Tyser 19*78acc472SPeter TyserThe files LzmaTools.{c,h} are provided to export the lzmaBuffToBuffDecompress() 20*78acc472SPeter Tyserfunction that wraps the complex LzmaDecode() function from the LZMA SDK. The 21*78acc472SPeter Tyserdo_bootm() function uses the lzmaBuffToBuffDecopress() function to expand the 22*78acc472SPeter Tysercompressed image. 23*78acc472SPeter Tyser 24*78acc472SPeter TyserThe directory U-BOOT/include/lzma contains stubs files that permit to use the 25*78acc472SPeter Tyserlibrary directly from U-BOOT code without touching the original LZMA SDK's 26*78acc472SPeter Tyserfiles. 27*78acc472SPeter Tyser 28*78acc472SPeter TyserLuigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> 29