diff mbox

[U-Boot] If CONFIG_SANDBOX isn't defined the build fails in fw_env.c due to a with with the following error:

Message ID 1434397251-24805-2-git-send-email-pbrobinson@gmail.com
State Changes Requested
Delegated to: Simon Glass
Headers show

Commit Message

Peter Robinson June 15, 2015, 7:40 p.m. UTC
error: expected '}' before 'BOOT_TARGET_DEVICES_references_HOST_without_CONFIG_SANDBOX'
  CONFIG_EXTRA_ENV_SETTINGS

A check to see if it's defined fixes this issue.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 include/configs/sandbox.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 3caa83c..f72675b 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -6,6 +6,10 @@ 
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#ifndef CONFIG_SANDBOX
+#define CONFIG_SANDBOX
+#endif
+
 #ifdef FTRACE
 #define CONFIG_TRACE
 #define CONFIG_CMD_TRACE