efi_loader: support building UEFI binaries on sandbox
[oweals/u-boot.git] / lib / efi_loader / Makefile
index 01769ea58ba619e154af28594a453abf214aec8e..7db406028618b2023fadc231d6ea42969d1632f0 100644 (file)
@@ -6,6 +6,9 @@
 # This file only gets included with CONFIG_EFI_LOADER set, so all
 # object inclusion implicitly depends on it
 
+asflags-y += -DHOST_ARCH="$(HOST_ARCH)"
+ccflags-y += -DHOST_ARCH="$(HOST_ARCH)"
+
 CFLAGS_efi_boottime.o += \
   -DFW_VERSION="0x$(VERSION)" \
   -DFW_PATCHLEVEL="0x$(PATCHLEVEL)"