summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-03-22 17:09:13 -0500
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:12 -0600
commit3ea143abe957cd771582fcde33e5fb8096bd826e (patch)
treefc85425bd489063c134c0acfacaadf185cf6c7f0 /include/configs
parent17591405a7b932ba0a66107645f5ff5f6f36da75 (diff)
sandbox: eth: Add network support to sandbox
Add basic network support to sandbox which includes a network driver. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/sandbox.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index c12c53896a..01c6f19bd9 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -130,9 +130,6 @@
/* include default commands */
#include <config_cmd_default.h>
-/* We don't have networking support yet */
-#undef CONFIG_CMD_NET
-#undef CONFIG_CMD_NFS
#define CONFIG_CMD_HASH
#define CONFIG_HASH_VERIFY
@@ -169,16 +166,23 @@
#define CONFIG_KEYBOARD
-#define CONFIG_EXTRA_ENV_SETTINGS "stdin=serial,cros-ec-keyb\0" \
+#define SANDBOX_SERIAL_SETTINGS "stdin=serial,cros-ec-keyb\0" \
"stdout=serial,lcd\0" \
"stderr=serial,lcd\0"
#else
-
-#define CONFIG_EXTRA_ENV_SETTINGS "stdin=serial\0" \
+#define SANDBOX_SERIAL_SETTINGS "stdin=serial\0" \
"stdout=serial,lcd\0" \
"stderr=serial,lcd\0"
#endif
+#define SANDBOX_ETH_SETTINGS "ethaddr=00:00:11:22:33:44\0" \
+ "eth1addr=00:00:11:22:33:45\0" \
+ "eth2addr=00:00:11:22:33:46\0" \
+ "ipaddr=1.2.3.4\0"
+
+#define CONFIG_EXTRA_ENV_SETTINGS SANDBOX_SERIAL_SETTINGS \
+ SANDBOX_ETH_SETTINGS
+
#define CONFIG_GZIP_COMPRESSED
#define CONFIG_BZIP2
#define CONFIG_LZO