]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix setting PlatformLang
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 11 Apr 2019 05:34:24 +0000 (07:34 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 12 Apr 2019 20:00:42 +0000 (22:00 +0200)
commit07805f203bec8e8e24837428c2fab39533168bf2
tree180c884f27be8ded6f7ff5bb05e79dff8d48a4fb
parentdc6f3f48c5d8efeadf1d4956837f69fee22b0234
efi_loader: fix setting PlatformLang

The UEFI variables PlatformLang and PlatformLangCodes specify the current
firmware language and the list of all available languages.

Currently their values are hard coded. With the patch a new configuration
variable EFI_PLATFORM_LANG_CODES is provided.

When initializing the UEFI subsystem this configuration variable is used to
initialize PlatformLangCodes. The value of variable PlatformLang is read.
If it is not set, the first language specified in EFI_PLATFORM_LANG_CODES
is used to initialize PlatformLang.

Suggested-by: Takahiro Akashi <takahiro.akashi@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/Kconfig
lib/efi_loader/efi_setup.c