summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 01:39:06 +0100
committerMichael Brown2006-12-20 01:39:06 +0100
commitec5789bf0cda2bf49b30cf5e4798e5b7f0787e63 (patch)
treef0b2fe09fdb260dc76b78f29e1c7b5a0a47ff708
parentRemove warning (at least on platforms with uint32_t == unsigned long). (diff)
downloadipxe-ec5789bf0cda2bf49b30cf5e4798e5b7f0787e63.tar.gz
ipxe-ec5789bf0cda2bf49b30cf5e4798e5b7f0787e63.tar.xz
ipxe-ec5789bf0cda2bf49b30cf5e4798e5b7f0787e63.zip
Select required commands via config.h
-rw-r--r--src/config.h9
-rw-r--r--src/core/config.c8
2 files changed, 17 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 6fd3deb53..cedd68bce 100644
--- a/src/config.h
+++ b/src/config.h
@@ -112,6 +112,15 @@
/* @BEGIN general.h
*
+ * Command-line commands to include
+ *
+ */
+#define NVO_CMD /* Non-volatile option storage commands */
+
+/* @END general.h */
+
+/* @BEGIN general.h
+ *
* Obscure configuration options
*
* You probably don't need to touch these.
diff --git a/src/core/config.c b/src/core/config.c
index b2cf09411..fa3a4b0fe 100644
--- a/src/core/config.c
+++ b/src/core/config.c
@@ -140,6 +140,14 @@ REQUIRE_OBJECT ( pxe );
#endif
/*
+ * Drag in all requested commands
+ *
+ */
+#ifdef NVO_CMD
+REQUIRE_OBJECT ( nvo_cmd );
+#endif
+
+/*
* Drag in miscellaneous objects
*
*/