From d60cbe43b74d06e3a2a41f3f9565430b456b86bc Mon Sep 17 00:00:00 2001
From: Piotr Jaroszyński
Date: Fri, 28 May 2010 01:09:22 +0200
Subject: [linux] Add the tap driver
Add the tap driver that can be used like:
$ ./ipxe.linux --net tap,if=tap0,mac=00:0c:29:c5:39:a1
The if setting is mandatory.
Signed-off-by: Piotr Jaroszyński
Signed-off-by: Michael Brown
---
src/config/config.c | 5 +++++
src/config/defaults/linux.h | 2 ++
2 files changed, 7 insertions(+)
(limited to 'src/config')
diff --git a/src/config/config.c b/src/config/config.c
index 561e53d40..cb66e164e 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -263,3 +263,8 @@ REQUIRE_OBJECT ( gdbstub_cmd );
*/
REQUIRE_OBJECT ( device );
REQUIRE_OBJECT ( embedded );
+
+/* linux drivers aren't picked up by the parserom utility so drag them in here */
+#ifdef DRIVERS_LINUX
+REQUIRE_OBJECT ( tap );
+#endif
diff --git a/src/config/defaults/linux.h b/src/config/defaults/linux.h
index a678aa4f1..901097fda 100644
--- a/src/config/defaults/linux.h
+++ b/src/config/defaults/linux.h
@@ -14,6 +14,8 @@
#define NAP_LINUX
#define SMBIOS_LINUX
+#define DRIVERS_LINUX
+
#define IMAGE_SCRIPT
#endif /* CONFIG_DEFAULTS_LINUX_H */
--
cgit v1.2.3-55-g7522