]> git.baikalelectronics.ru Git - uboot.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)
commitd588da29c1bd8ff86ad5c736c99dbe5d359f835a
tree180c884f27be8ded6f7ff5bb05e79dff8d48a4fb
parent6254db24ac59ef6d29550f517684bceab8e6e7f3
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