summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-11 12:27:06 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-19 00:13:44 +0100
commitcd31afdc3cb3a83639e09111e6e9ed8bbca9326e (patch)
tree194483d4ad5bca64ca060cc8fc8c6527f0d88fcd /src/lib
parentcdabc880e1273076ff0786fbbe0ffdc2ea87eca4 (diff)
downloadcoreboot-cd31afdc3cb3a83639e09111e6e9ed8bbca9326e.tar.xz
lib/lzma.c: Use header over .c include
Change-Id: I904eb1703eaf4f8de1b4ec443173686c7985be12 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7427 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Marc Jones <marc.jones@se-eng.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Makefile.inc6
-rw-r--r--src/lib/lzma.c3
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 <console/console.h>
#include <string.h>
#include <lib.h>
+#include "lzmadecode.h"
+
unsigned long ulzma(unsigned char * src, unsigned char * dst)
{
unsigned char properties[LZMA_PROPERTIES_SIZE];