From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli To: passt-dev@passt.top Subject: [PATCH] Fix the name of the qemu-system-* executable Date: Fri, 23 Sep 2022 11:56:30 +0200 Message-ID: <166392698999.18098.15132792024892713963.stgit@tumbleweed.Wayrath> In-Reply-To: <166392668766.18098.8757600680122450526.stgit@tumbleweed.Wayrath> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5223166697853064645==" --===============5223166697853064645== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Vasiliy Ulyanov Define the target machine architecture in lowercase. The name of the executable qemu-system-* is defined from the build flags and should be in lowercase: ( "qemu-system-" ARCH ), I.e. qemu-system-x86_64 instead of qemu-system-X86_64. Otherwise, the exec call will fail. Signed-off-by: Vasiliy Ulyanov Signed-off-by: Dario Faggioli --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c47a5f6..4ccca67 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,10 @@ RLIMIT_STACK_VAL :=3D 1024 endif =20 # Get 'uname -m'-like architecture description for target -TARGET_ARCH :=3D $(shell $(CC) -dumpmachine | cut -f1 -d- | tr [a-z] [A-Z]) -TARGET_ARCH :=3D $(shell echo $(TARGET_ARCH) | sed 's/POWERPC/PPC/') +TARGET_ARCH :=3D $(shell $(CC) -dumpmachine | cut -f1 -d- | tr [A-Z] [a-z]) +TARGET_ARCH :=3D $(shell echo $(TARGET_ARCH) | sed 's/powerpc/ppc/') =20 -AUDIT_ARCH :=3D $(shell echo $(TARGET_ARCH) | sed 's/^ARM.*/ARM/') +AUDIT_ARCH :=3D $(shell echo $(TARGET_ARCH) | tr [a-z] [A-Z] | sed 's/^ARM.*= /ARM/') AUDIT_ARCH :=3D $(shell echo $(AUDIT_ARCH) | sed 's/I[456]86/I386/') AUDIT_ARCH :=3D $(shell echo $(AUDIT_ARCH) | sed 's/PPC64/PPC/') AUDIT_ARCH :=3D $(shell echo $(AUDIT_ARCH) | sed 's/PPCLE/PPC64LE/') @@ -90,7 +90,7 @@ docdir ?=3D $(datarootdir)/doc/passt mandir ?=3D $(datarootdir)/man man1dir ?=3D $(mandir)/man1 =20 -ifeq ($(TARGET_ARCH),X86_64) +ifeq ($(TARGET_ARCH),x86_64) BIN :=3D passt passt.avx2 pasta pasta.avx2 qrap else BIN :=3D passt pasta qrap --===============5223166697853064645==--