efi_loader: build with HII configuration protocol
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 2 Jan 2025 18:11:31 +0000 (19:11 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 25 Apr 2025 15:26:39 +0000 (17:26 +0200)
Without the HII configuration protocol the debug version of the UEFI shell
cannot be used.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/Makefile
lib/efi_loader/efi_hii_config.c
lib/efi_loader/efi_root_node.c

index ab50a69..cf050e5 100644 (file)
@@ -37,7 +37,7 @@ obj-$(CONFIG_EFI_DEVICE_PATH_UTIL) += efi_device_path_utilities.o
 obj-y += efi_dt_fixup.o
 obj-y += efi_fdt.o
 obj-y += efi_file.o
-obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o
+obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o efi_hii_config.o
 obj-y += efi_image_loader.o
 obj-y += efi_load_options.o
 obj-y += efi_memory.o
index 37d8c66..521481a 100644 (file)
@@ -4,10 +4,6 @@
  *
  * Copyright (c) 2017 Leif Lindholm
  * Copyright (c) 2018 AKASHI Takahiro, Linaro Limited
- *
- * As this is still a non-working stub and the protocol is neither required
- * by the EFI shell nor by the UEFI SCT this module has been removed from
- * the Makefile.
  */
 
 #define LOG_CATEGORY LOGC_EFI
index 74225ed..e5246f6 100644 (file)
@@ -80,6 +80,9 @@ efi_status_t efi_root_node_register(void)
                 /* HII database protocol */
                 &efi_guid_hii_database_protocol,
                 &efi_hii_database,
+                /* EFI HII Configuration Routing Protocol */
+                &efi_guid_hii_config_routing_protocol,
+                &efi_hii_config_routing,
 #endif
                 NULL);
        efi_root->type = EFI_OBJECT_TYPE_U_BOOT_FIRMWARE;