Bläddra i källkod

[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 år sedan
förälder
incheckning
ddad96cd23
2 ändrade filer med 9 tillägg och 0 borttagningar
  1. 7
    0
      src/config/config.c
  2. 2
    0
      src/config/console.h

+ 7
- 0
src/config/config.c Visa fil

@@ -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 Visa fil

@@ -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 */

Laddar…
Avbryt
Spara