summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-07-23 13:48:41 -0700
committerMarc Jones <marc.jones@se-eng.com>2015-03-17 16:40:34 +0100
commite6ede46c3395f76b9777b6baa052b82000588fb4 (patch)
treeff86f2e05267592fe2a708f764de353c5e83bc83 /src
parent64352a7c1b50819828cffdeacd93c757ee91c3ba (diff)
downloadcoreboot-e6ede46c3395f76b9777b6baa052b82000588fb4.tar.xz
rush: Add ec_dummy file to enable vboot compilation
BUG=chrome-os-partner:30784 BRANCH=None TEST=Compiles successfully for rush Original-Change-Id: Ic11bef85e5c7635000582f87727cd9a33b0b36e3 Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/209975 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> (cherry picked from commit 3d3f0494d8758ef5040384f63d023c042686bd2c) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: Ie15781d10a366b68f0db97378ccb348a4f074995 Reviewed-on: http://review.coreboot.org/8679 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/rush/Makefile.inc2
-rw-r--r--src/mainboard/google/rush/ec_dummy.c9
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/rush/Makefile.inc b/src/mainboard/google/rush/Makefile.inc
index b66cd555fb..e4520c1750 100644
--- a/src/mainboard/google/rush/Makefile.inc
+++ b/src/mainboard/google/rush/Makefile.inc
@@ -36,6 +36,8 @@ romstage-y += reset.c
romstage-y += romstage.c
romstage-y += sdram_configs.c
romstage-$(CONFIG_CHROMEOS) += chromeos.c
+romstage-y += ec_dummy.c
ramstage-y += mainboard.c
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
+ramstage-y += ec_dummy.c \ No newline at end of file
diff --git a/src/mainboard/google/rush/ec_dummy.c b/src/mainboard/google/rush/ec_dummy.c
new file mode 100644
index 0000000000..01a935c79f
--- /dev/null
+++ b/src/mainboard/google/rush/ec_dummy.c
@@ -0,0 +1,9 @@
+/* Dummy CHROMEEC file to provide stub functions for vboot compilation */
+
+#include <stdint.h>
+
+int google_chromeec_vbnv_context(int is_read, uint8_t *data, int len);
+int google_chromeec_vbnv_context(int is_read, uint8_t *data, int len)
+{
+ return 0;
+}