]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[console] Add keyboard map selection
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 12:01:48 +0000 (12:01 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 12:03:00 +0000 (12:03 +0000)
The active keyboard map may be selected by editing KEYBOARD_MAP in
config/console.h.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config.c
src/config/console.h

index 0c28edf05a995e2f5d7f48a02b58f60965dd8cec..2c3555ead414e846c4e6dcb154f2f61a5eb35c30 100644 (file)
@@ -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 );
index dd1d7469c937f82989e3dc3e622ff5719f0717af..afc89569c517e903dc4d89562f92d7584d6bd770 100644 (file)
@@ -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 */