From 3b4e9bb901e40ce5d737dfc5b44b4529421d8f8a Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Fri, 12 Feb 2016 15:46:44 -0800 Subject: [PATCH] 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 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2e80e09..ee637df 100644 --- a/configure.ac +++ b/configure.ac @@ -64,7 +64,7 @@ PKG_CHECK_MODULES(uuid, uuid, AC_MSG_ERROR([libuuid (from the uuid package) is required])) 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 \ -DEFI_FUNCTION_WRAPPER" CPPFLAGS_save="$CPPFLAGS"