On Tue, 2025-05-27 at 17:35 +0100, Roy Bamford wrote:
> 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 ?

That's covered by the * case. It's what I tested with. :)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to