diff --git a/util/lar/Makefile b/util/lar/Makefile index 9930bd1284..a2b13cab81 100644 --- a/util/lar/Makefile +++ b/util/lar/Makefile @@ -1,7 +1,7 @@ ## ## lar - LinuxBIOS archiver ## -## Copyright (C) 2006 coresystems GmbH +## Copyright (C) 2006-2007 coresystems GmbH ## (Written by Stefan Reinauer for coresystems GmbH) ## ## This program is free software; you can redistribute it and/or modify @@ -22,15 +22,11 @@ LAROBJ := lar.o create.o extract.o list.o lib.o bootblock.o LARDIR := lardir -ifeq ($(CONFIG_COMPRESSION_LZMA),y) COMPRESSOR := $(LZMA_OBJ) $(obj)/util/lzma/lzma-compress.o LARDIR += lzmadir -endif -ifeq ($(CONFIG_COMPRESSION_NRV2B),y) COMPRESSOR += $(obj)/util/nrv2b/nrv2b-compress.o LARDIR += nrv2bdir -endif LAROBJ_ABS := $(patsubst %,$(obj)/util/lar/%,$(LAROBJ)) diff --git a/util/lar/lar.h b/util/lar/lar.h index 20185b44c3..f9837ba7dd 100644 --- a/util/lar/lar.h +++ b/util/lar/lar.h @@ -78,29 +78,13 @@ typedef void (*uncompress_func) (char *, char *, u32); void compress_impossible(char *in, u32 in_len, char *out, u32 *out_len); void do_no_compress(char *in, u32 in_len, char *out, u32 *out_len); -#ifdef CONFIG_COMPRESSION_LZMA void do_lzma_compress(char *in, u32 in_len, char *out, u32 *out_len); -#else -#define do_lzma_compress compress_impossible -#endif -#ifdef CONFIG_COMPRESSION_NRV2B void do_nrv2b_compress(char *in, u32 in_len, char *out, u32 *out_len); -#else -#define do_nrv2b_compress compress_impossible -#endif void uncompress_impossible(char *, char *, u32); void do_no_uncompress(char *, char *, u32); -#ifdef CONFIG_COMPRESSION_LZMA void do_lzma_uncompress(char *, char *, u32); -#else -#define do_lzma_uncompress uncompress_impossible -#endif -#ifdef CONFIG_COMPRESSION_NRV2B void do_nrv2b_uncompress(char *, char *, u32); -#else -#define do_nrv2b_uncompress uncompress_impossible -#endif static compress_func compress_functions[] = { do_no_compress, diff --git a/util/nrv2b/nrv2b.c b/util/nrv2b/nrv2b.c index a4d305a4ea..441aaef2a2 100644 --- a/util/nrv2b/nrv2b.c +++ b/util/nrv2b/nrv2b.c @@ -1304,7 +1304,7 @@ void Encode(void) /* compression */ #endif #ifdef COMPACT -void do_nrv2b_compress(char* in, unsigned long in_len, char* out, unsigned long* out_len) { +void do_nrv2b_compress(uint8_t *in, unsigned long in_len, uint8_t *out, unsigned long *out_len) { *out_len = in_len + (in_len/8) + 256; out = malloc(*out_len); ucl_nrv2b_99_compress(in, in_len, out, out_len, 0 ); @@ -1346,7 +1346,7 @@ void do_nrv2b_compress(char* in, unsigned long in_len, char* out, unsigned long* #endif #ifdef COMPACT -void do_nrv2b_uncompress(char* dst, char* src, unsigned long len) { +void do_nrv2b_uncompress(uint8_t *dst, uint8_t *src, unsigned long len) { unsigned long ilen = 0, olen = 0, last_m_off = 1; uint32_t bb = 0; unsigned bc = 0;