1*1fe918a0SAndrew GeisslerError building for i386 target in cross env 2*1fe918a0SAndrew Geissler 3*1fe918a0SAndrew Geissler#include <efi/x86_64/efibind.h> 4*1fe918a0SAndrew Geissler 5*1fe918a0SAndrew GeisslerARCH is host arch, not target arch 6*1fe918a0SAndrew Geissler 7*1fe918a0SAndrew GeisslerUpstream-Status: Submitted 8*1fe918a0SAndrew Geissler 9*1fe918a0SAndrew GeisslerSigned-off-by: Armin Kuster <akuster808@gmail.com> 10*1fe918a0SAndrew GeisslerIndex: git/src/uefi-types.h 11*1fe918a0SAndrew Geissler=================================================================== 12*1fe918a0SAndrew Geissler--- git.orig/src/uefi-types.h 13*1fe918a0SAndrew Geissler+++ git/src/uefi-types.h 14*1fe918a0SAndrew Geissler@@ -3,9 +3,9 @@ 15*1fe918a0SAndrew Geissler #define UEFI_TYPES_H 16*1fe918a0SAndrew Geissler 17*1fe918a0SAndrew Geissler #ifndef EDK2_BUILD 18*1fe918a0SAndrew Geissler-#if ARCH == x86_64 19*1fe918a0SAndrew Geissler+#if defined(__x86_64__) 20*1fe918a0SAndrew Geissler #include <efi/x86_64/efibind.h> 21*1fe918a0SAndrew Geissler-#elif ARCH == ia32 22*1fe918a0SAndrew Geissler+#elif defined(__i386__) 23*1fe918a0SAndrew Geissler #include <efi/ia32/efibind.h> 24*1fe918a0SAndrew Geissler #else 25*1fe918a0SAndrew Geissler #error "Unsupported ARCH." 26