Ver código fonte

[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 anos atrás
pai
commit
ddad96cd23
2 arquivos alterados com 9 adições e 0 exclusões
  1. 7
    0
      src/config/config.c
  2. 2
    0
      src/config/console.h

+ 7
- 0
src/config/config.c Ver arquivo

@@ -281,3 +281,10 @@ REQUIRE_OBJECT ( tap );
281 281
 REQUIRE_OBJECT ( efi_bofm );
282 282
 #endif /* BOFM_EFI */
283 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 Ver arquivo

@@ -21,6 +21,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
21 21
 //#define	CONSOLE_PC_KBD		/* Direct access to PC keyboard */
22 22
 //#define	CONSOLE_SYSLOG		/* Syslog console */
23 23
 
24
+#define	KEYBOARD_MAP	us
25
+
24 26
 #include <config/local/console.h>
25 27
 
26 28
 #endif /* CONFIG_CONSOLE_H */

Carregando…
Cancelar
Salvar