From cd31afdc3cb3a83639e09111e6e9ed8bbca9326e Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 11 Nov 2014 12:27:06 +1100 Subject: lib/lzma.c: Use header over .c include Change-Id: I904eb1703eaf4f8de1b4ec443173686c7985be12 Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/7427 Reviewed-by: Paul Menzel Reviewed-by: Marc Jones Tested-by: build bot (Jenkins) --- src/lib/Makefile.inc | 6 ++---- src/lib/lzma.c | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index 6286cabf13..6faf28a950 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -29,8 +29,7 @@ $(foreach arch,$(ARCH_SUPPORTED),\ romstage-$(CONFIG_I2C_TPM) += delay.c romstage-y += cbfs.c cbfs_core.c -romstage-$(CONFIG_COMPRESS_RAMSTAGE) += lzma.c -#romstage-y += lzmadecode.c +romstage-$(CONFIG_COMPRESS_RAMSTAGE) += lzma.c lzmadecode.c romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c ifeq ($(CONFIG_EARLY_CBMEM_INIT),y) @@ -57,8 +56,7 @@ ramstage-y += fallback_boot.c ramstage-y += compute_ip_checksum.c ramstage-y += version.c ramstage-y += cbfs.c cbfs_core.c -ramstage-y += lzma.c -#ramstage-y += lzmadecode.c +ramstage-y += lzma.c lzmadecode.c ramstage-y += stack.c ramstage-y += clog2.c romstage-y += clog2.c diff --git a/src/lib/lzma.c b/src/lib/lzma.c index 674a029fd3..ea5f15f2d1 100644 --- a/src/lib/lzma.c +++ b/src/lib/lzma.c @@ -9,11 +9,12 @@ * */ -#include "lzmadecode.c" #include #include #include +#include "lzmadecode.h" + unsigned long ulzma(unsigned char * src, unsigned char * dst) { unsigned char properties[LZMA_PROPERTIES_SIZE]; -- cgit v1.2.3