[Concept,13/15] efi: client: Build sync_dt for RISC-V EFI applications

Message ID 20260212001410.1919749-14-sjg@u-boot.org
State New
Headers
Series riscv: Add EFI-application support |

Commit Message

Simon Glass Feb. 12, 2026, 12:14 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Theis file handles syncing the EFI memory map to the device tree
reserved-memory nodes. It is needed for 64-bit architectures (ARM64
and RISC-V) but is only built for ARM64.

Add RISC-V to the build condition.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 lib/efi_client/Makefile | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/lib/efi_client/Makefile b/lib/efi_client/Makefile
index 9d53ff3c924..685f0a5abfd 100644
--- a/lib/efi_client/Makefile
+++ b/lib/efi_client/Makefile
@@ -10,6 +10,8 @@  obj-$(CONFIG_EFI_STUB) += efi_info.o
 ifeq ($(CONFIG_ARM64),y)
 stub_obj := stub_arm64.o
 obj-$(CONFIG_EFI_APP) += sync_dt.o
+else ifeq ($(CONFIG_RISCV),y)
+obj-$(CONFIG_EFI_APP) += sync_dt.o
 else
 stub_obj := stub_x86.o