diff options
author | Vasiliy Ulyanov <vulyanov@suse.de> | 2022-09-23 11:56:30 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-24 09:12:35 +0200 |
commit | 11e285df8f6f5943e87c78d025da2c95ca158e0b (patch) | |
tree | ad7d843a160b3ae8dbdcb9e120bfd7a5b8e6efca | |
parent | 83381357771011936abb0a7d77fc5625f3edc550 (diff) | |
download | passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.tar passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.tar.gz passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.tar.bz2 passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.tar.lz passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.tar.xz passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.tar.zst passt-11e285df8f6f5943e87c78d025da2c95ca158e0b.zip |
Fix the name of the qemu-system-* executable
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 <vulyanov@suse.de>
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -15,10 +15,10 @@ RLIMIT_STACK_VAL := 1024 endif # Get 'uname -m'-like architecture description for target -TARGET_ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d- | tr [a-z] [A-Z]) -TARGET_ARCH := $(shell echo $(TARGET_ARCH) | sed 's/POWERPC/PPC/') +TARGET_ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d- | tr [A-Z] [a-z]) +TARGET_ARCH := $(shell echo $(TARGET_ARCH) | sed 's/powerpc/ppc/') -AUDIT_ARCH := $(shell echo $(TARGET_ARCH) | sed 's/^ARM.*/ARM/') +AUDIT_ARCH := $(shell echo $(TARGET_ARCH) | tr [a-z] [A-Z] | sed 's/^ARM.*/ARM/') AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/I[456]86/I386/') AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPC64/PPC/') AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPCLE/PPC64LE/') @@ -90,7 +90,7 @@ docdir ?= $(datarootdir)/doc/passt mandir ?= $(datarootdir)/man man1dir ?= $(mandir)/man1 -ifeq ($(TARGET_ARCH),X86_64) +ifeq ($(TARGET_ARCH),x86_64) BIN := passt passt.avx2 pasta pasta.avx2 qrap else BIN := passt pasta qrap |