]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: expose END device path node
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Sun, 19 Jun 2022 04:55:59 +0000 (13:55 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 13 Jul 2022 18:07:07 +0000 (20:07 +0200)
This commit exposes the END device path node.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_device_path.c

index 5b41985244e2d26ea1bbb18f75d79f2f2136dafa..3a63a1f75fdf524f54ae87c4dbaeb35e51fa8081 100644 (file)
@@ -802,6 +802,9 @@ ssize_t efi_dp_check_length(const struct efi_device_path *dp,
        (((_dp)->type == DEVICE_PATH_TYPE_##_type) && \
         ((_dp)->sub_type == DEVICE_PATH_SUB_TYPE_##_subtype))
 
+/* template END node: */
+extern const struct efi_device_path END;
+
 /* Indicate supported runtime services */
 efi_status_t efi_init_runtime_supported(void);
 
index 2493d7432613d368793838fc9585990e09d15659..ebffb771228f3ff1ccae89ba4ab4eb280ed72e7a 100644 (file)
@@ -30,7 +30,7 @@ const efi_guid_t efi_guid_virtio_dev = U_BOOT_VIRTIO_DEV_GUID;
 #endif
 
 /* template END node: */
-static const struct efi_device_path END = {
+const struct efi_device_path END = {
        .type     = DEVICE_PATH_TYPE_END,
        .sub_type = DEVICE_PATH_SUB_TYPE_END,
        .length   = sizeof(END),