3rdparty/vboot: Add vboot
This allows providing a verified boot mechanism in the
default distribution, as well as reusing vboot code like
its crypto primitives for reasonably secure checksums over
CBFS files.
Change-Id: I729b249776b2bf7aa4b2f69bb18ec655b9b08d90
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10107
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/.gitmodules b/.gitmodules
index cf32923..7d40675 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -6,3 +6,6 @@
[submodule "util/nvidia-cbootimage"]
path = util/nvidia/cbootimage
url = ../nvidia-cbootimage.git
+[submodule "vboot"]
+ path = 3rdparty/vboot
+ url = ../vboot.git
diff --git a/3rdparty/vboot b/3rdparty/vboot
new file mode 160000
index 0000000..7dd3bd0
--- /dev/null
+++ b/3rdparty/vboot
@@ -0,0 +1 @@
+Subproject commit 7dd3bd0fcf565901aacc512cd29cefe19291c2e7
diff --git a/src/vendorcode/google/chromeos/Makefile.inc b/src/vendorcode/google/chromeos/Makefile.inc
index 33cdb26..7c41ec8 100644
--- a/src/vendorcode/google/chromeos/Makefile.inc
+++ b/src/vendorcode/google/chromeos/Makefile.inc
@@ -53,6 +53,6 @@
CFLAGS_common += -DMOCK_TPM=0
endif
-VB_SOURCE := vboot_reference
+VB_SOURCE := 3rdparty/vboot
subdirs-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += vboot2
CPPFLAGS_common += -I$(VB_SOURCE)/firmware/include