Luigi 'Comio' Mantellini | 35afc06 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 1 | The lib_lzma functionality was written by Igor Pavlov. |
| 2 | The original source cames from the LZMA SDK web page: |
| 3 | |
| 4 | URL: http://www.7-zip.org/sdk.html |
| 5 | Author: Igor Pavlov |
| 6 | |
| 7 | The import is made using the import_lzmasdk.sh script that: |
| 8 | |
| 9 | * untars the lzmaXYY.tar.bz2 file (from the download web page) |
Luigi 'Comio' Mantellini | d02bd74 | 2009-07-21 10:45:49 +0200 | [diff] [blame] | 10 | * copies the files LzmaDec.h, Types.h, LzmaDec.c, history.txt, |
| 11 | and lzma.txt from source archive into the lib_lzma directory (pwd). |
Luigi 'Comio' Mantellini | 35afc06 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 12 | |
| 13 | Example: |
| 14 | |
Luigi 'Comio' Mantellini | d02bd74 | 2009-07-21 10:45:49 +0200 | [diff] [blame] | 15 | . import_lzmasdk.sh ~/lzma465.tar.bz2 |
Luigi 'Comio' Mantellini | 35afc06 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 16 | |
Luigi 'Comio' Mantellini | d02bd74 | 2009-07-21 10:45:49 +0200 | [diff] [blame] | 17 | Notice: The files from lzma sdk are _not modified_ by this script! |
Luigi 'Comio' Mantellini | 35afc06 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 18 | |
| 19 | The files LzmaTools.{c,h} are provided to export the lzmaBuffToBuffDecompress() |
| 20 | function that wraps the complex LzmaDecode() function from the LZMA SDK. The |
| 21 | do_bootm() function uses the lzmaBuffToBuffDecopress() function to expand the |
| 22 | compressed image. |
| 23 | |
| 24 | The directory U-BOOT/include/lzma contains stubs files that permit to use the |
| 25 | library directly from U-BOOT code without touching the original LZMA SDK's |
| 26 | files. |
| 27 | |
| 28 | Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> |