fix-efi-arch-detection

Gbp-Pq: Name fix-efi-arch-detection.patch
This commit is contained in:
Ubuntu Developers 2022-05-14 02:51:24 +08:00 committed by openKylinBot
parent 809783243e
commit 43f6090781
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ 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/;s/arm.*/arm/')
AC_CANONICAL_HOST
EFI_ARCH=$(echo $host_cpu | sed 's/i.86/ia32/;s/arm.*/arm/')
AM_CONDITIONAL(TEST_BINARY_FORMAT, [ test "$EFI_ARCH" = "arm" -o "$EFI_ARCH" = "aarch64" ])
##