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:
parent
be1e563524
commit
9b4d2a22e4
@ -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
|
||||
;;
|
||||
|
@ -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'"
|
||||
|
@ -26,6 +26,8 @@ else
|
||||
"armv"*)
|
||||
_ARCH="armhf"
|
||||
;;
|
||||
"aarch64")
|
||||
;;
|
||||
*)
|
||||
echo "WARNING: Unknown architecture: $_ARCH"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user