diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-03-16 12:01:48 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-03-16 12:03:00 +0000 |
commit | ddad96cd2347fead28a98002754ac243b8dedb3f (patch) | |
tree | 7e9f231baaa7d3a8db6b54fcedcd268b70db65a0 /src/config | |
parent | 1febd879e340958c7a4a54823a82784fcb3672ca (diff) | |
download | ipxe-ddad96cd2347fead28a98002754ac243b8dedb3f.zip ipxe-ddad96cd2347fead28a98002754ac243b8dedb3f.tar.gz ipxe-ddad96cd2347fead28a98002754ac243b8dedb3f.tar.bz2 |
[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.c | 7 | ||||
-rw-r--r-- | src/config/console.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c index 0c28edf..2c3555e 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 dd1d746..afc8956 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 */ |