mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07:00
The current build structure for migration tests is confusing. There is
the tests/migration directory, which contains two different guest code
implementations, one for the qtests (a-b-{bootblock|kernel}.S) and
another for the guestperf script (stress.c). One uses a Makefile,
while the other uses meson.
The next patches will add a new qtests/migration/ directory to hold
qtest code which will make the situation even more confusing.
Move the guest code used by qtests into a new qtests/migration/
directory and rename the old one to tests/migration-stress.
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
18 lines
411 B
Makefile
18 lines
411 B
Makefile
# To specify cross compiler prefix, use CROSS_PREFIX=
|
|
# $ make CROSS_PREFIX=aarch64-linux-gnu-
|
|
|
|
.PHONY: all clean
|
|
all: a-b-kernel.h
|
|
|
|
a-b-kernel.h: aarch64.kernel
|
|
echo "$$__note" > $@
|
|
xxd -i $< | sed -e 's/.*int.*//' >> $@
|
|
|
|
aarch64.kernel: aarch64.elf
|
|
$(CROSS_PREFIX)objcopy -O binary $< $@
|
|
|
|
aarch64.elf: a-b-kernel.S
|
|
$(CROSS_PREFIX)gcc -o $@ -nostdlib -Wl,--build-id=none $<
|
|
|
|
clean:
|
|
$(RM) *.kernel *.elf
|