efi_loader: reduce UEFI size if HAS_BOARD_SIZE_LIMIT=y
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 17 Jan 2025 20:34:01 +0000 (21:34 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 26 Jan 2025 10:06:56 +0000 (11:06 +0100)
If a board has a strict size limit, disable

* Unicode capitalization and
* HII protocols

by default to reduce the image size.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/Kconfig

index 798dced..ad0bbdd 100644 (file)
@@ -387,7 +387,7 @@ config EFI_DT_FIXUP
 
 config EFI_LOADER_HII
        bool "HII protocols"
-       default y
+       default y if !HAS_BOARD_SIZE_LIMIT
        help
          The Human Interface Infrastructure is a complicated framework that
          allows UEFI applications to draw fancy menus and hook strings using
@@ -407,7 +407,7 @@ if EFI_UNICODE_COLLATION_PROTOCOL2
 
 config EFI_UNICODE_CAPITALIZATION
        bool "Support Unicode capitalization"
-       default y
+       default y if !HAS_BOARD_SIZE_LIMIT
        help
          Select this option to enable correct handling of the capitalization of
          Unicode codepoints in the range 0x0000-0xffff. If this option is not