aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-image.sh
diff options
context:
space:
mode:
authorAndrew Donnellan <ajd@linux.ibm.com>2020-10-06 18:17:06 +1100
committerDmitry Vyukov <dvyukov@google.com>2020-10-08 12:17:15 +0200
commit0e469495ddd1f4be4ba3a94e3865ae8acc3f165c (patch)
tree9f2cac971b5654e9d6051b0451a69bd941120b7c /tools/create-image.sh
parenta68f87323ae8e8c21757c7b82694645c2709bddd (diff)
tools/create-image.sh: add architecture mapping x86_64 -> amd64
Add a mapping from qemu architecture x86_64 to Debian architecture amd64 which I forgot to add earlier. (Also fix up the indentation to be consistent while we're here.) Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Diffstat (limited to 'tools/create-image.sh')
-rwxr-xr-xtools/create-image.sh27
1 files changed, 15 insertions, 12 deletions
diff --git a/tools/create-image.sh b/tools/create-image.sh
index 20446985e..db710a27c 100755
--- a/tools/create-image.sh
+++ b/tools/create-image.sh
@@ -77,18 +77,21 @@ done
# Handle cases where qemu and Debian use different arch names
case "$ARCH" in
- ppc64le)
- DEBARCH=ppc64el
- ;;
- aarch64)
- DEBARCH=arm64
- ;;
- arm)
- DEBARCH=armel
- ;;
- *)
- DEBARCH=$ARCH
- ;;
+ ppc64le)
+ DEBARCH=ppc64el
+ ;;
+ aarch64)
+ DEBARCH=arm64
+ ;;
+ arm)
+ DEBARCH=armel
+ ;;
+ x86_64)
+ DEBARCH=amd64
+ ;;
+ *)
+ DEBARCH=$ARCH
+ ;;
esac
# Foreign architecture