summaryrefslogtreecommitdiffstats
path: root/src/config/config.c
diff options
context:
space:
mode:
authorMichael Brown2017-08-01 21:25:28 +0200
committerMichael Brown2017-08-01 21:25:28 +0200
commit7054468d56aead705e20cdaf9f93819d60007fde (patch)
treee3dd3121e53b092a2c2cd8458edc94bd1f65c16a /src/config/config.c
parent[hyperv] Do not steal ownership from the Gen 2 UEFI firmware (diff)
downloadipxe-7054468d56aead705e20cdaf9f93819d60007fde.tar.gz
ipxe-7054468d56aead705e20cdaf9f93819d60007fde.tar.xz
ipxe-7054468d56aead705e20cdaf9f93819d60007fde.zip
[shell] Enable "shell" command even when BANNER_TIMEOUT is zero
Setting BANNER_TIMEOUT to zero removes the only symbol reference to shell.o, causing the "shell" command to become unavailable. Add SHELL_CMD in config/general.h (enabled by default) which will explicitly drag in shell.o regardless of the value of BANNER_TIMEOUT. Reported-by: Julian Brost <julian@0x4a42.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/config.c')
-rw-r--r--src/config/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c
index 8adb1ed3..2ca05dff 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -248,6 +248,9 @@ REQUIRE_OBJECT ( cpuid_cmd );
#ifdef SYNC_CMD
REQUIRE_OBJECT ( sync_cmd );
#endif
+#ifdef SHELL_CMD
+REQUIRE_OBJECT ( shell );
+#endif
#ifdef NSLOOKUP_CMD
REQUIRE_OBJECT ( nslookup_cmd );
#endif