qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [PULL 002/150] optionrom: simplify Makefile
Date: Tue, 18 Aug 2020 10:07:57 -0400	[thread overview]
Message-ID: <20200818141025.21608-3-pbonzini@redhat.com> (raw)
In-Reply-To: <20200818141025.21608-1-pbonzini@redhat.com>

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Make it independent from the rules.mak, and clean up to use pattern rules.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 pc-bios/optionrom/Makefile | 67 +++++++++++++++++++++++---------------
 1 file changed, 41 insertions(+), 26 deletions(-)

diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
index e33a24da0d..51cb6ca9d8 100644
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -1,13 +1,16 @@
-all: build-all
+CURRENT_MAKEFILE := $(realpath $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
+SRC_DIR := $(dir $(CURRENT_MAKEFILE))
+TOPSRC_DIR := $(SRC_DIR)/../..
+VPATH = $(SRC_DIR)
+
+all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
 # Dummy command so that make thinks it has done something
 	@true
 
 include ../../config-host.mak
-include $(SRC_PATH)/rules.mak
-
-$(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)
 
-.PHONY : all clean build-all
+quiet-command = $(if $(V),$1,$(if $(2),@printf "  %-7s %s\n" $2 $3 && $1, @$1))
+cc-option = $(if $(shell $(CC) $1 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo OK), $1, $2)
 
 # Compiling with no optimization creates ROMs that are too large
 ifeq ($(lastword $(filter -O%, -O0 $(CFLAGS))),-O0)
@@ -15,48 +18,60 @@ override CFLAGS += -O2
 endif
 override CFLAGS += -march=i486
 
-# Drop -fstack-protector and the like
-QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) -ffreestanding
-QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
-QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -m16)
-ifeq ($(filter -m16, $(QEMU_CFLAGS)),)
+# Flags for dependency generation
+override CPPFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d
+
+override CFLAGS += $(filter -W%, $(QEMU_CFLAGS))
+override CFLAGS += $(CFLAGS_NOPIE) -ffreestanding -I$(TOPSRC_DIR)/include
+override CFLAGS += $(call cc-option, -fno-stack-protector)
+override CFLAGS += $(call cc-option, -m16)
+
+ifeq ($(filter -m16, $(CFLAGS)),)
 # Attempt to work around compilers that lack -m16 (GCC <= 4.8, clang <= ??)
 # On GCC we add -fno-toplevel-reorder to keep the order of asm blocks with
 # respect to the rest of the code.  clang does not have -fno-toplevel-reorder,
 # but it places all asm blocks at the beginning and we're relying on it for
 # the option ROM header.  So just force clang not to use the integrated
 # assembler, which doesn't support .code16gcc.
-QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-toplevel-reorder)
-QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -no-integrated-as)
-QEMU_CFLAGS += -m32 -include $(SRC_PATH)/pc-bios/optionrom/code16gcc.h
+override CFLAGS += $(call cc-option, -fno-toplevel-reorder)
+override CFLAGS += $(call cc-option, -no-integrated-as)
+override CFLAGS += -m32 -include $(SRC_DIR)/code16gcc.h
 endif
 
-QEMU_INCLUDES += -I$(SRC_PATH)
-
 Wa = -Wa,
-ASFLAGS += -32
-QEMU_CFLAGS += $(call cc-c-option, $(QEMU_CFLAGS), $(Wa)-32)
+override ASFLAGS += -32
+override CFLAGS += $(call cc-option, $(Wa)-32)
 
-build-all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
 
-# suppress auto-removal of intermediate files
-.SECONDARY:
+LD_I386_EMULATION ?= elf_i386
+override LDFLAGS = -m $(LD_I386_EMULATION) -T $(SRC_DIR)/flat.lds
+override LDFLAGS += $(LDFLAGS_NOPIE)
 
+all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
+
+pvh.img: pvh.o pvh_main.o
 
 %.o: %.S
-	$(call quiet-command,$(CPP) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) -c -o - $< | $(AS) $(ASFLAGS) -o $@,"AS","$(TARGET_DIR)$@")
+	$(call quiet-command,$(CPP) $(CPPFLAGS) -c -o - $< | $(AS) $(ASFLAGS) -o $@,"AS","$@")
 
-pvh.img: pvh.o pvh_main.o
-	$(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m $(LD_I386_EMULATION) -T $(SRC_PATH)/pc-bios/optionrom/flat.lds -s -o $@ $^,"BUILD","$(TARGET_DIR)$@")
+%.o: %.c
+	$(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@,"CC","$@")
 
 %.img: %.o
-	$(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m $(LD_I386_EMULATION) -T $(SRC_PATH)/pc-bios/optionrom/flat.lds -s -o $@ $<,"BUILD","$(TARGET_DIR)$@")
+	$(call quiet-command,$(LD) $(LDFLAGS) -s -o $@ $^,"BUILD","$@")
 
 %.raw: %.img
-	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"BUILD","$(TARGET_DIR)$@")
+	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"BUILD","$@")
 
 %.bin: %.raw
-	$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/signrom.py $< $@,"SIGN","$(TARGET_DIR)$@")
+	$(call quiet-command,$(PYTHON) $(TOPSRC_DIR)/scripts/signrom.py $< $@,"SIGN","$@")
+
+include $(wildcard *.d)
 
 clean:
 	rm -f *.o *.d *.raw *.img *.bin *~
+
+# suppress auto-removal of intermediate files
+.SECONDARY:
+
+.PHONY: all clean
-- 
2.26.2




  parent reply	other threads:[~2020-08-18 14:12 UTC|newest]

Thread overview: 160+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-18 14:07 [PULL 000/150] Meson-based build system Paolo Bonzini
2020-08-18 14:07 ` [PULL 001/150] oss-fuzz/build: remove LIB_FUZZING_ENGINE Paolo Bonzini
2020-08-18 14:07 ` Paolo Bonzini [this message]
2020-08-18 14:07 ` [PULL 003/150] pc-bios/s390-ccw: do not use rules.mak Paolo Bonzini
2020-08-18 14:07 ` [PULL 004/150] trace: switch position of headers to what Meson requires Paolo Bonzini
2020-08-18 14:08 ` [PULL 005/150] meson: rename included C source files to .c.inc Paolo Bonzini
2020-08-18 14:08 ` [PULL 006/150] meson: rename .inc.h files to .h.inc Paolo Bonzini
2020-08-18 14:08 ` [PULL 007/150] build-sys hack: ensure target directory is there Paolo Bonzini
2020-08-18 14:08 ` [PULL 008/150] tests/vm: do not pollute configure with --efi-aarch64 Paolo Bonzini
2020-08-18 14:08 ` [PULL 009/150] tests/vm: check for Python YAML parser in the Makefile Paolo Bonzini
2020-08-18 14:08 ` [PULL 010/150] tests/docker: add test script for static linux-user builds Paolo Bonzini
2020-08-18 14:08 ` [PULL 011/150] nsis: use "make DESTDIR=" instead of "make prefix=" Paolo Bonzini
2020-08-18 14:08 ` [PULL 012/150] configure: do not include $(...) variables in config-host.mak Paolo Bonzini
2020-08-18 14:08 ` [PULL 013/150] configure: expand path variables for meson configure Paolo Bonzini
2020-08-18 14:08 ` [PULL 014/150] configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson Paolo Bonzini
2020-08-18 14:08 ` [PULL 015/150] tests/vm: include setuptools Paolo Bonzini
2020-08-18 14:08 ` [PULL 016/150] configure: integrate Meson in the build system Paolo Bonzini
2020-08-18 14:08 ` [PULL 017/150] configure: generate Meson cross file Paolo Bonzini
2020-08-18 14:08 ` [PULL 018/150] build-sys hack: link with whole .fa archives Paolo Bonzini
2020-08-18 14:08 ` [PULL 019/150] build-sys: add meson submodule Paolo Bonzini
2020-08-18 14:08 ` [PULL 020/150] meson: move summary to meson.build Paolo Bonzini
2020-08-18 14:08 ` [PULL 021/150] meson: enable pie Paolo Bonzini
2020-08-18 14:08 ` [PULL 022/150] meson: use coverage option Paolo Bonzini
2020-08-18 14:08 ` [PULL 023/150] meson: add sparse support Paolo Bonzini
2020-08-18 14:08 ` [PULL 024/150] meson: add testsuite Makefile generator Paolo Bonzini
2020-08-18 14:08 ` [PULL 025/150] libqemuutil, qapi, trace: convert to meson Paolo Bonzini
2020-08-18 14:08 ` [PULL 026/150] meson: add remaining generated tcg trace helpers Paolo Bonzini
2020-08-18 14:08 ` [PULL 027/150] meson: add version.o Paolo Bonzini
2020-08-18 14:08 ` [PULL 028/150] contrib/libvhost-user: convert to Meson Paolo Bonzini
2020-08-18 14:08 ` [PULL 029/150] tools/virtiofsd: " Paolo Bonzini
2020-08-18 14:08 ` [PULL 030/150] contrib/vhost-user-blk: " Paolo Bonzini
2020-08-18 14:08 ` [PULL 031/150] vhost-user-scsi: add compatibility for libiscsi 1.9.0 Paolo Bonzini
2020-08-18 14:08 ` [PULL 032/150] contrib/vhost-user-scsi: convert to Meson Paolo Bonzini
2020-08-18 14:08 ` [PULL 033/150] contrib/rdmacm-mux: " Paolo Bonzini
2020-08-18 14:08 ` [PULL 034/150] contrib/vhost-user-input: convert to meson Paolo Bonzini
2020-08-18 14:08 ` [PULL 035/150] contrib/vhost-user-gpu: " Paolo Bonzini
2020-08-18 14:08 ` [PULL 036/150] contrib/ivshmem: " Paolo Bonzini
2020-08-18 14:08 ` [PULL 037/150] contrib/elf2dmp: " Paolo Bonzini
2020-08-18 14:08 ` [PULL 038/150] meson: add macos dependencies Paolo Bonzini
2020-08-18 14:08 ` [PULL 039/150] meson: add solaris and Haiku libraries Paolo Bonzini
2020-08-18 14:08 ` [PULL 040/150] meson: convert qemu-ga Paolo Bonzini
2020-08-18 14:08 ` [PULL 041/150] meson: convert vss-win32 Paolo Bonzini
2020-08-18 14:08 ` [PULL 042/150] meson: add msi generation Paolo Bonzini
2020-08-18 14:08 ` [PULL 043/150] meson: convert dummy Windows qga/qemu-ga target Paolo Bonzini
2020-08-18 14:08 ` [PULL 044/150] meson: add qemu-bridge-helper Paolo Bonzini
2020-08-18 14:08 ` [PULL 045/150] meson: add qemu-keymap Paolo Bonzini
2020-08-18 14:08 ` [PULL 046/150] meson: add qemu-edid Paolo Bonzini
2020-08-18 14:08 ` [PULL 047/150] meson: add virtfs-proxy-helper Paolo Bonzini
2020-08-18 14:08 ` [PULL 048/150] meson: keymap-gen Paolo Bonzini
2020-08-18 14:08 ` [PULL 049/150] meson: generate qemu-version.h Paolo Bonzini
2020-08-18 14:08 ` [PULL 050/150] meson: generate shader headers Paolo Bonzini
2020-08-18 14:08 ` [PULL 051/150] meson: generate hxtool files Paolo Bonzini
2020-08-18 14:08 ` [PULL 052/150] meson: handle edk2 bios and descriptors Paolo Bonzini
2020-08-18 14:08 ` [PULL 053/150] meson: convert check-decodetree Paolo Bonzini
2020-08-18 14:08 ` [PULL 054/150] meson: convert tests/fp and check-softfloat Paolo Bonzini
2020-08-18 14:08 ` [PULL 055/150] meson: convert check-qapi-schema Paolo Bonzini
2020-08-18 14:08 ` [PULL 056/150] meson: convert qom directory to Meson (tools part) Paolo Bonzini
2020-08-18 14:08 ` [PULL 057/150] meson: convert authz directory to Meson Paolo Bonzini
2020-08-18 14:08 ` [PULL 058/150] meson: convert crypto " Paolo Bonzini
2020-08-18 14:08 ` [PULL 059/150] meson: convert io " Paolo Bonzini
2020-08-18 14:08 ` [PULL 060/150] meson: convert target/s390x/gen-features.h Paolo Bonzini
2020-08-18 14:08 ` [PULL 061/150] meson: infrastructure for building emulators Paolo Bonzini
2020-08-18 14:08 ` [PULL 062/150] meson: add modules infrastructure Paolo Bonzini
2020-08-18 14:08 ` [PULL 063/150] meson: convert chardev directory to Meson (tools part) Paolo Bonzini
2020-08-18 14:08 ` [PULL 064/150] meson: convert block Paolo Bonzini
2020-08-18 14:09 ` [PULL 065/150] meson: qemu-{img,io,nbd} Paolo Bonzini
2020-08-18 14:09 ` [PULL 066/150] meson: qemu-pr-helper Paolo Bonzini
2020-08-18 14:09 ` [PULL 067/150] configure, Makefile; remove TOOLS and HELPERS-y variable Paolo Bonzini
2020-08-18 14:09 ` [PULL 068/150] meson: convert chardev directory to Meson (emulator part) Paolo Bonzini
2020-08-18 14:09 ` [PULL 069/150] meson: convert tests/qtest to meson Paolo Bonzini
2020-08-18 14:09 ` [PULL 070/150] meson: convert audio directory to Meson Paolo Bonzini
2020-08-18 14:09 ` [PULL 071/150] meson: convert ui " Paolo Bonzini
2020-08-18 14:09 ` [PULL 072/150] meson: convert root " Paolo Bonzini
2020-08-18 14:09 ` [PULL 073/150] meson: convert most of softmmu/ Paolo Bonzini
2020-08-18 14:09 ` [PULL 074/150] meson: convert trace/ Paolo Bonzini
2020-08-18 14:09 ` [PULL 075/150] meson: convert dump/ Paolo Bonzini
2020-08-18 14:09 ` [PULL 076/150] meson: convert common QMP bits for qemu and qemu-storage-daemon Paolo Bonzini
2020-08-18 14:09 ` [PULL 077/150] meson: convert qemu-storage-daemon Paolo Bonzini
2020-08-18 14:09 ` [PULL 078/150] meson: convert replay directory to Meson Paolo Bonzini
2020-08-18 14:09 ` [PULL 079/150] meson: convert migration " Paolo Bonzini
2020-08-18 14:09 ` [PULL 080/150] meson: convert net " Paolo Bonzini
2020-08-18 14:09 ` [PULL 081/150] meson: convert backends " Paolo Bonzini
2020-08-18 14:09 ` [PULL 082/150] meson: convert fsdev/ Paolo Bonzini
2020-08-18 14:09 ` [PULL 083/150] meson: convert disas directory to Meson Paolo Bonzini
2020-08-18 14:09 ` [PULL 084/150] meson: convert qapi-specific to meson Paolo Bonzini
2020-08-18 14:09 ` [PULL 085/150] meson: convert hw/xen Paolo Bonzini
2020-08-18 14:09 ` [PULL 086/150] meson: convert hw/core Paolo Bonzini
2020-08-18 14:09 ` [PULL 087/150] meson: convert hw/semihosting Paolo Bonzini
2020-08-18 14:09 ` [PULL 088/150] meson: convert hw/nubus Paolo Bonzini
2020-08-18 14:09 ` [PULL 089/150] meson: convert hw/smbios Paolo Bonzini
2020-08-18 14:09 ` [PULL 090/150] meson: convert hw/mem Paolo Bonzini
2020-08-18 14:09 ` [PULL 091/150] meson: convert hw/watchdog Paolo Bonzini
2020-08-18 14:09 ` [PULL 092/150] meson: convert hw/virtio Paolo Bonzini
2020-08-18 14:09 ` [PULL 093/150] meson: convert hw/vfio Paolo Bonzini
2020-08-18 14:09 ` [PULL 094/150] meson: convert hw/usb Paolo Bonzini
2020-08-18 14:09 ` [PULL 095/150] meson: convert hw/tpm Paolo Bonzini
2020-08-18 14:09 ` [PULL 096/150] meson: convert hw/timer Paolo Bonzini
2020-08-18 14:09 ` [PULL 097/150] meson: convert hw/rtc Paolo Bonzini
2020-08-18 14:09 ` [PULL 098/150] meson: convert hw/ssi Paolo Bonzini
2020-08-18 14:09 ` [PULL 099/150] meson: convert hw/sd Paolo Bonzini
2020-08-18 14:09 ` [PULL 100/150] meson: convert hw/scsi Paolo Bonzini
2020-08-18 14:09 ` [PULL 101/150] meson: convert hw/pcmcia Paolo Bonzini
2020-08-18 14:09 ` [PULL 102/150] meson: convert hw/pci-host Paolo Bonzini
2020-08-18 14:09 ` [PULL 103/150] meson: convert hw/pci-bridge Paolo Bonzini
2020-08-18 14:09 ` [PULL 104/150] meson: convert hw/pci Paolo Bonzini
2020-08-18 14:09 ` [PULL 105/150] meson: convert hw/nvram Paolo Bonzini
2020-08-18 14:09 ` [PULL 106/150] meson: convert hw/rdma Paolo Bonzini
2020-08-18 14:09 ` [PULL 107/150] meson: convert hw/net Paolo Bonzini
2020-08-18 14:09 ` [PULL 108/150] meson: convert hw/misc Paolo Bonzini
2020-08-18 14:09 ` [PULL 109/150] meson: convert hw/isa Paolo Bonzini
2020-08-18 14:09 ` [PULL 110/150] meson: convert hw/ipmi Paolo Bonzini
2020-08-18 14:09 ` [PULL 111/150] meson: convert hw/ipack Paolo Bonzini
2020-08-18 14:09 ` [PULL 112/150] meson: convert hw/intc Paolo Bonzini
2020-08-18 14:09 ` [PULL 113/150] meson: convert hw/input Paolo Bonzini
2020-08-18 14:09 ` [PULL 114/150] meson: convert hw/ide Paolo Bonzini
2020-08-18 14:09 ` [PULL 115/150] meson: convert hw/i2c Paolo Bonzini
2020-08-18 14:09 ` [PULL 116/150] meson: convert hw/hyperv Paolo Bonzini
2020-08-18 14:09 ` [PULL 117/150] meson: convert hw/gpio Paolo Bonzini
2020-08-18 14:09 ` [PULL 118/150] meson: convert hw/dma Paolo Bonzini
2020-08-18 14:09 ` [PULL 119/150] meson: convert hw/display Paolo Bonzini
2020-08-18 14:09 ` [PULL 120/150] meson: convert hw/cpu Paolo Bonzini
2020-08-18 14:09 ` [PULL 121/150] meson: convert hw/char Paolo Bonzini
2020-08-18 14:09 ` [PULL 122/150] meson: convert hw/block Paolo Bonzini
2020-08-18 14:09 ` [PULL 123/150] meson: convert hw/audio Paolo Bonzini
2020-08-18 14:09 ` [PULL 124/150] meson: convert hw/adc Paolo Bonzini
2020-08-18 14:10 ` [PULL 125/150] meson: convert hw/acpi Paolo Bonzini
2020-08-18 14:10 ` [PULL 126/150] meson: convert hw/9pfs, cleanup Paolo Bonzini
2020-08-18 14:10 ` [PULL 127/150] meson: convert hw/arch* Paolo Bonzini
2020-08-18 14:10 ` [PULL 128/150] meson: target Paolo Bonzini
2020-08-18 14:10 ` [PULL 129/150] meson: accel Paolo Bonzini
2020-08-18 14:10 ` [PULL 130/150] meson: linux-user Paolo Bonzini
2020-08-18 14:10 ` [PULL 131/150] meson: bsd-user Paolo Bonzini
2020-08-18 14:10 ` [PULL 132/150] meson: cpu-emu Paolo Bonzini
2020-08-18 14:10 ` [PULL 133/150] meson: plugins Paolo Bonzini
2020-08-18 14:10 ` [PULL 134/150] meson: link emulators without Makefile.target Paolo Bonzini
2020-08-18 14:10 ` [PULL 135/150] meson: convert systemtap files Paolo Bonzini
2020-08-18 14:10 ` [PULL 136/150] rules.mak: remove version.o Paolo Bonzini
2020-08-18 14:10 ` [PULL 137/150] remove Makefile.target Paolo Bonzini
2020-08-18 14:10 ` [PULL 138/150] meson: sphinx-build Paolo Bonzini
2020-08-18 14:10 ` [PULL 139/150] docs: automatically track manual dependencies Paolo Bonzini
2020-08-18 14:10 ` [PULL 140/150] meson: build texi doc Paolo Bonzini
2020-08-18 14:10 ` [PULL 141/150] meson: convert check-block Paolo Bonzini
2020-08-18 14:10 ` [PULL 142/150] rules.mak: drop unneeded macros Paolo Bonzini
2020-08-18 14:10 ` [PULL 143/150] meson: replace create-config with meson configure_file Paolo Bonzini
2020-08-18 14:10 ` [PULL 144/150] meson: convert sample plugins Paolo Bonzini
2020-08-18 14:10 ` [PULL 145/150] meson: move SDL and SDL-image detection to meson Paolo Bonzini
2020-08-18 14:10 ` [PULL 146/150] meson: convert VNC and dependent libraries " Paolo Bonzini
2020-08-18 14:10 ` [PULL 147/150] meson: convert po/ Paolo Bonzini
2020-08-19  1:56   ` Brad Smith
2020-08-19  8:03     ` Paolo Bonzini
2020-08-19 16:55       ` Brad Smith
2020-08-18 14:10 ` [PULL 148/150] meson: avoid unstable module warning with Meson 0.56.0 or newer Paolo Bonzini
2020-08-18 14:10 ` [PULL 149/150] meson: update build-system documentation Paolo Bonzini
2020-08-18 14:10 ` [PULL 150/150] docs: convert build system documentation to rST Paolo Bonzini
2020-08-18 14:23 ` [PULL 000/150] Meson-based build system Peter Maydell
2020-08-18 14:33 ` Peter Maydell
2020-08-18 18:05 ` no-reply
2020-08-18 19:26 ` Peter Maydell
2020-08-18 20:10   ` Paolo Bonzini
2020-08-18 20:34     ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200818141025.21608-3-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).