summaryrefslogtreecommitdiffstats
path: root/lib/decompress_unlzo.c
Commit message (Collapse)AuthorAgeFilesLines
* decompressors: Use malloc/free wrappersSascha Hauer2016-04-081-4/+6
| | | | | | | | | | The decompressors are used both in a regular image and also for image decompression. Both need different malloc implementations. Using malloc/free directly in the decompressor code easily leads to include file conflicts, so use MALLOC/FREE which can be defined correctly for the two different usecases. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lzo: Remove unused variableAlexander Shiyan2014-04-231-2/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lzo: update to lzo-2013Jean-Christophe PLAGNIOL-VILLARD2013-09-221-2/+2
| | | | | | | | | | | | | | | | | | take from linux next-20130227 same version as v3.11 before -rwxr-xr-x 1 root root 123001 Feb 28 01:04 build/highbank/arch/arm/pbl/zbarebox.bin after -rwxr-xr-x 1 root root 122226 Feb 28 01:02 build/highbank/arch/arm/pbl/zbarebox.bin smaller and faster Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: fix IMAGE_COMPRESSION_LZO-enabled build on MIPSAntony Pavlov2013-02-051-1/+3
| | | | | | | | | | | | | | | | | | | Here's the error message: LD arch/mips/pbl/zbarebox pbl/built-in-pbl.o: In function `decompress_unlzo': /home/antony/barebox.git.rebased.isp/pbl/decomp.c:35: undefined reference to `free' pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': (.text.pbl_barebox_uncompress+0x6d0): relocation truncated to fit: R_MIPS_26 against `free' pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': (.text.pbl_barebox_uncompress+0x6e0): undefined reference to `free' pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': (.text.pbl_barebox_uncompress+0x6e0): relocation truncated to fit: R_MIPS_26 against `free' make[1]: *** [arch/mips/pbl/zbarebox] Error 1 make: *** [zbarebox.bin] Error 2 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-5/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* decompress_unlzo: define decompress_unlzo as decompressJean-Christophe PLAGNIOL-VILLARD2012-07-301-0/+1
| | | | | | | | so we can use decompress in the decompressor this will simplify multi decompress support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lzo: Allow for static inliningSascha Hauer2012-07-231-2/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove now unused unlzo functionSascha Hauer2011-11-291-25/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lzo: export decompress_unlzo functionSascha Hauer2011-11-291-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix unlzo supportSascha Hauer2011-11-171-54/+162
| | | | | | | | | | unlzo support is broken for files > 256k (more than one block) since commit a3463cc12877f6527624972c190a80ebb787a604 (lib/decompress_unlzo: use fill and full to read and write data) This patch updates unlzo support to the latest version of the kernel plus a small buffer free fix. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lib/decompress_unlzo: use fill and full to read and write dataJean-Christophe PLAGNIOL-VILLARD2011-01-281-88/+92
| | | | | | | | | | | | | | | | | | | | | | this will all to simplify the sync with the kernel and later easly add the self decompression support to barebox as example with a lzo compression will reduce barebox from 180224 to 99863 bytes so 55.41% -rwxr-xr-x 1 root root 99863 Jan 28 02:17 build/versatilepb/barebox.bin.lzo we also reduce the binary size by 224 bytes Old version # ls -al build/versatilepb/barebox.bin -rwxr-xr-x 1 root root 180468 Jan 28 02:14 build/versatilepb/barebox.bin New version # ls -al build/versatilepb/barebox* -rwxr-xr-x 1 root root 180244 Jan 28 02:13 build/versatilepb/barebox.bin Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add unlzo supportSascha Hauer2010-03-301-0/+199
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>