summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
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];