Fedora AArch64 (64-bit ARM) support in diskimage-builder

Add some checks for AArch64 to avoid the "Unknown architecture" or
"architecture not supported" messages, and allow builds to complete.

Change-Id: I89ba609abaeeb7019eb317cf13473929b2065230
This commit is contained in:
d.marlin 2016-11-16 21:47:26 -05:00
parent be1e563524
commit 9b4d2a22e4
3 changed files with 6 additions and 1 deletions

View File

@ -53,7 +53,7 @@ case "$ARCH" in
qemu_binary_file="/usr/bin/qemu-arm-static"
copy_binary $qemu_binary_file $ARCH
;;
"arm64")
"arm64" | "aarch64")
qemu_binary_file="/usr/bin/qemu-aarch64-static"
copy_binary $qemu_binary_file $ARCH
;;

View File

@ -18,6 +18,9 @@ elif [[ "$ARCH" = "ppc64" ]]; then
elif [[ "$ARCH" = "ppc64el" ]]; then
basearch=ppc64el
arch=ppc64el
elif [[ "$ARCH" = "aarch64" ]]; then
basearch=aarch64
arch=aarch64
else
echo "********************"
echo "Unknown arch '$ARCH'"

View File

@ -26,6 +26,8 @@ else
"armv"*)
_ARCH="armhf"
;;
"aarch64")
;;
*)
echo "WARNING: Unknown architecture: $_ARCH"
;;