Browse Source

[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>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
ddad96cd23
2 changed files with 9 additions and 0 deletions
  1. 7
    0
      src/config/config.c
  2. 2
    0
      src/config/console.h

+ 7
- 0
src/config/config.c View File

281
 REQUIRE_OBJECT ( efi_bofm );
281
 REQUIRE_OBJECT ( efi_bofm );
282
 #endif /* BOFM_EFI */
282
 #endif /* BOFM_EFI */
283
 #endif /* CONFIG_BOFM */
283
 #endif /* CONFIG_BOFM */
284
+
285
+/*
286
+ * Drag in selected keyboard map
287
+ */
288
+#define REQUIRE_KEYMAP_OBJECT( _map ) REQUIRE_OBJECT ( keymap_ ## _map )
289
+#define REQUIRE_KEYMAP( _map ) REQUIRE_KEYMAP_OBJECT ( _map )
290
+REQUIRE_KEYMAP ( KEYBOARD_MAP );

+ 2
- 0
src/config/console.h View File

21
 //#define	CONSOLE_PC_KBD		/* Direct access to PC keyboard */
21
 //#define	CONSOLE_PC_KBD		/* Direct access to PC keyboard */
22
 //#define	CONSOLE_SYSLOG		/* Syslog console */
22
 //#define	CONSOLE_SYSLOG		/* Syslog console */
23
 
23
 
24
+#define	KEYBOARD_MAP	us
25
+
24
 #include <config/local/console.h>
26
 #include <config/local/console.h>
25
 
27
 
26
 #endif /* CONFIG_CONSOLE_H */
28
 #endif /* CONFIG_CONSOLE_H */

Loading…
Cancel
Save