configure: build on arm

arm has a variety of uname -m forms, all beginning with arm, so use
this to determine the EFI architecture

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
James Bottomley 2016-02-12 15:46:44 -08:00
parent f37c1858fc
commit 3b4e9bb901

View file

@ -64,7 +64,7 @@ PKG_CHECK_MODULES(uuid, uuid,
AC_MSG_ERROR([libuuid (from the uuid package) is required])) AC_MSG_ERROR([libuuid (from the uuid package) is required]))
dnl gnu-efi headers require extra include dirs dnl gnu-efi headers require extra include dirs
EFI_ARCH=$(uname -m | sed s/i.86/ia32/) EFI_ARCH=$(uname -m | sed 's/i.86/ia32/;s/arm.*/arm/')
EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \ EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \
-DEFI_FUNCTION_WRAPPER" -DEFI_FUNCTION_WRAPPER"
CPPFLAGS_save="$CPPFLAGS" CPPFLAGS_save="$CPPFLAGS"