pbl: fix IMAGE_COMPRESSION_LZO-enabled build on MIPS
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>
This commit is contained in:
parent
e43e1498f6
commit
3e17c2e58f
|
@ -26,14 +26,16 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/types.h>
|
||||
#include <errno.h>
|
||||
#include <fs.h>
|
||||
#include <xfuncs.h>
|
||||
|
||||
#ifdef STATIC
|
||||
#include <linux/decompress/mm.h>
|
||||
#include "lzo/lzo1x_decompress.c"
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#include <lzo.h>
|
||||
|
|
Loading…
Reference in New Issue