As described in commit
05cb930 ("[build] Extend default configuration
for non-BIOS builds"), the default configuration for EFI needs to
allow for the unfortunate fact that users will not be able to rebuild
the Secure Boot binaries for themselves.
The keyboard map currently defaults to "us" (i.e. no keyboard
remapping) on all platforms. Switch to using the "dynamic" keyboard
map by default for EFI platforms.
Do not use the "dynamic" keyboard map by default on Linux platforms
(where the input character read by iPXE has already passed through the
host's keyboard mapping) or on RISC-V SBI (where input is expected to
come via a serial port rather than a directly attached keyboard).
Requested-by: Simon Fonteneau <blog@lesfourmisduweb.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
#define KEYBOARD_MAP us /* Default US keyboard map */
//#define KEYBOARD_MAP dynamic /* Runtime selectable keyboard map */
+/* Use dynamic keyboard by default on EFI platforms */
+#if defined ( PLATFORM_efi )
+ #undef KEYBOARD_MAP
+ #define KEYBOARD_MAP dynamic
+#endif
+
/*****************************************************************************
*
* Log levels