From: Michael Brown Date: Tue, 30 Jun 2026 09:38:37 +0000 (+0100) Subject: [build] Use dynamic keyboard map by default in UEFI builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=895db73fbde54ac2aea5c64fba8049cf206f574f;p=thirdparty%2Fipxe.git [build] Use dynamic keyboard map by default in UEFI builds 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 Signed-off-by: Michael Brown --- diff --git a/src/config/console.h b/src/config/console.h index 9ba1bb6d7..60d7aa838 100644 --- a/src/config/console.h +++ b/src/config/console.h @@ -83,6 +83,12 @@ FILE_SECBOOT ( PERMITTED ); #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