aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-05-10 12:38:50 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-05-10 12:38:50 +0200
commit6f89dc3650847e970dd9d0d5c986793e22b73a00 (patch)
tree7b110d3cf5374a5cc68274ec31eea12c9f1978dd /Makefile
parentc8581f3710335ae6be68909c1c8307aa66990428 (diff)
downloadpasst-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar
passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.gz
passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.bz2
passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.lz
passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.xz
passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.zst
passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.zip
qrap: Find qemu command if not passed, patch command line
It might be impractical to pass options to qrap when using libvirt, because the <emulator/> tag expects a path to an executable, without further arguments. If the first argument is not a plausible socket number, and the second argument is not a valid executable, look up a qemu command from a list of possible names, then start it patching the command line to include the -netdev fd= parameter corresponding to the AF_UNIX domain socket we just opened. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 326e717..213020b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ passt: passt.c passt.h arp.c arp.h dhcp.c dhcp.h dhcpv6.c dhcpv6.h ndp.c ndp.h s
$(CC) $(CFLAGS) passt.c arp.c dhcp.c dhcpv6.c ndp.c siphash.c tap.c icmp.c tcp.c udp.c util.c -o passt
qrap: qrap.c passt.h
- $(CC) $(CFLAGS) qrap.c -o qrap
+ $(CC) $(CFLAGS) -DARCH=\"$(shell uname -m)\" qrap.c -o qrap
.PHONY: clean
clean: