summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2010-10-07 10:08:43 +0800
committerSimon Glass <sjg@chromium.org>2011-08-24 09:56:47 -0700
commit728f95f4413186cf0bbafefb45bb495da32d289a (patch)
tree617389ee3dcde1033fc76e27b2dac2207f4b932e
parent5f3675c2e65697963142382de9f22d9a28f7584c (diff)
Add VBOOT to top-level Makefile
This CL adds argument "VBOOT" to top-level Makefile and config.mk that points to a verify boot implementation. Change-Id: Ib468cc7a6a7c3ce3db56b90d73c6022ac30fa046 BUG=none TEST=Run "make all" successfully Review URL: http://codereview.chromium.org/3515011
-rw-r--r--Makefile4
-rw-r--r--config.mk4
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3454db62d77..e07906074e4 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 2eb7fa22e1b..a0ee570acd5 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)