I also intend to add another wrapper script generation function for
running executables while changing the root directory.
+# Return the QEMU architecture name for the given target or CHOST.
This name is
+# used in qemu-user binary filenames, e.g. qemu-ppc64le.
+qemu_arch() {
+ local target=${1:-${CHOST}}
+ case ${target} in
+ armeb*) echo armeb ;;
+ arm*) echo arm ;;
+ hppa*) echo hppa ;;
+ i?86*) echo i386 ;;
+ m68*) echo m68k ;;
+ mips64el*-gnuabi64) echo mips64el ;;
+ mips64el*-gnuabin32) echo mipsn32el ;;
+ mips64*-gnuabi64) echo mips64 ;;
+ mips64*-gnuabin32) echo mipsn32 ;;
+ powerpc64le*) echo ppc64le ;;
+ powerpc64*) echo ppc64 ;;
+ powerpc*) echo ppc ;;
+ *) echo "${target%%-*}" ;;
+ esac
+}
+
On 2025.05.27 12:08, James Le Cuirot wrote:
I also intend to add another wrapper script generation function for
running executables while changing the root directory.
+# Return the QEMU architecture name for the given target or CHOST.
This name is
+# used in qemu-user binary filenames, e.g. qemu-ppc64le.
+qemu_arch() {
+ local target=${1:-${CHOST}}
+ case ${target} in
+ armeb*) echo armeb ;;
+ arm*) echo arm ;;
+ hppa*) echo hppa ;;
+ i?86*) echo i386 ;;
+ m68*) echo m68k ;;
+ mips64el*-gnuabi64) echo mips64el ;;
+ mips64el*-gnuabin32) echo mipsn32el ;;
+ mips64*-gnuabi64) echo mips64 ;;
+ mips64*-gnuabin32) echo mipsn32 ;;
+ powerpc64le*) echo ppc64le ;;
+ powerpc64*) echo ppc64 ;;
+ powerpc*) echo ppc ;;
+ *) echo "${target%%-*}" ;;
+ esac
+}
+
No arm64/aarch64 ?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 489 |
Nodes: | 16 (2 / 14) |
Uptime: | 33:22:45 |
Calls: | 9,668 |
Calls today: | 3 |
Files: | 13,716 |
Messages: | 6,169,032 |