summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahisa Kojima <masahisa.kojima@linaro.org>2022-06-19 13:55:59 +0900
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-07-13 20:07:07 +0200
commit9897350c52196736cce1a601b172fb5ea14a75c1 (patch)
treefc1c997ffe88ee8e8ce383bf7c076553c7697f3f
parent34a026a891ef7c51194e9926cb9212fa811cb212 (diff)
downloadu-boot-9897350c52196736cce1a601b172fb5ea14a75c1.tar.gz
u-boot-9897350c52196736cce1a601b172fb5ea14a75c1.tar.bz2
u-boot-9897350c52196736cce1a601b172fb5ea14a75c1.zip
efi_loader: expose END device path node
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>
-rw-r--r--include/efi_loader.h3
-rw-r--r--lib/efi_loader/efi_device_path.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 5b41985244..3a63a1f75f 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -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);
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index 2493d74326..ebffb77122 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -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),