summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--config.mk4
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3454db62d7..e07906074e 100644
--- a/Makefile
+++ b/Makefile
@@ -309,6 +309,10 @@ else
PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
endif
PLATFORM_LIBS += $(PLATFORM_LIBGCC)
+# Add vboot_reference lib
+ifdef VBOOT
+PLATFORM_LIBS += $(VBOOT)/lib/vboot_fw.a
+endif
export PLATFORM_LIBS
# Special flags for CPP when processing the linker script.
diff --git a/config.mk b/config.mk
index 2eb7fa22e1..a0ee570acd 100644
--- a/config.mk
+++ b/config.mk
@@ -172,6 +172,10 @@ ifneq ($(OBJTREE),$(SRCTREE))
CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
endif
+ifdef VBOOT
+CPPFLAGS += -I$(VBOOT)/include/vboot
+endif
+
CPPFLAGS += -I$(TOPDIR)/include
CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \
-isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)