summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Brown2011-03-16 13:01:48 +0100
committerMichael Brown2011-03-16 13:03:00 +0100
commitddad96cd2347fead28a98002754ac243b8dedb3f (patch)
tree7e9f231baaa7d3a8db6b54fcedcd268b70db65a0 /src/config
parent[console] Add keymap generator (diff)
downloadipxe-ddad96cd2347fead28a98002754ac243b8dedb3f.tar.gz
ipxe-ddad96cd2347fead28a98002754ac243b8dedb3f.tar.xz
ipxe-ddad96cd2347fead28a98002754ac243b8dedb3f.zip
[console] Add keyboard map selection
The active keyboard map may be selected by editing KEYBOARD_MAP in config/console.h. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.c7
-rw-r--r--src/config/console.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c
index 0c28edf0..2c3555ea 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -281,3 +281,10 @@ REQUIRE_OBJECT ( tap );
REQUIRE_OBJECT ( efi_bofm );
#endif /* BOFM_EFI */
#endif /* CONFIG_BOFM */
+
+/*
+ * Drag in selected keyboard map
+ */
+#define REQUIRE_KEYMAP_OBJECT( _map ) REQUIRE_OBJECT ( keymap_ ## _map )
+#define REQUIRE_KEYMAP( _map ) REQUIRE_KEYMAP_OBJECT ( _map )
+REQUIRE_KEYMAP ( KEYBOARD_MAP );
diff --git a/src/config/console.h b/src/config/console.h
index dd1d7469..afc89569 100644
--- a/src/config/console.h
+++ b/src/config/console.h
@@ -21,6 +21,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
//#define CONSOLE_PC_KBD /* Direct access to PC keyboard */
//#define CONSOLE_SYSLOG /* Syslog console */
+#define KEYBOARD_MAP us
+
#include <config/local/console.h>
#endif /* CONFIG_CONSOLE_H */