fc76c56d3f
Rename Makefile.probe to Makefile.prereqs and make it actually define rules for the tests. Rename Makefile to Makefile.target, since it is not a toplevel makefile. Rename Makefile.include to Makefile.qemu and disentangle it from the QEMU Makefile.target, so that it is invoked recursively by tests/Makefile.include. Tests are now placed in tests/tcg/$(TARGET). Drop the usage of TARGET_BASE_ARCH, which is ignored by everything except x86_64 and aarch64. Fix x86 tests by using -cpu max and, while at it, standardize on QEMU_OPTS for aarch64 tests too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20190807143523.15917-3-pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# i386 cross compile notes
|
|
|
|
I386_SRC=$(SRC_PATH)/tests/tcg/i386
|
|
|
|
# Set search path for all sources
|
|
VPATH += $(I386_SRC)
|
|
|
|
I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c))
|
|
ALL_X86_TESTS=$(I386_SRCS:.c=)
|
|
I386_TESTS:=$(filter-out test-i386-ssse3, $(ALL_X86_TESTS))
|
|
X86_64_TESTS:=$(filter test-i386-ssse3, $(ALL_X86_TESTS))
|
|
# Update TESTS
|
|
TESTS=$(MULTIARCH_TESTS) $(I386_TESTS)
|
|
|
|
#
|
|
# hello-i386 is a barebones app
|
|
#
|
|
hello-i386: CFLAGS+=-ffreestanding
|
|
hello-i386: LDFLAGS+=-nostdlib
|
|
|
|
#
|
|
# test-386 includes a couple of additional objects that need to be linked together
|
|
#
|
|
|
|
test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ \
|
|
$(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
|
|
|
|
ifeq ($(SPEED), slow)
|
|
|
|
test-i386-fprem.ref: test-i386-fprem
|
|
$(call quiet-command, ./$< > $@,"GENREF","generating $@")
|
|
|
|
run-test-i386-fprem: TIMEOUT=60
|
|
run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref
|
|
$(call run-test,test-i386-fprem, $(QEMU) $<,"$< on $(TARGET_NAME)")
|
|
$(call diff-out,test-i386-fprem, test-i386-fprem.ref)
|
|
else
|
|
run-test-i386-fprem: test-i386-fprem
|
|
$(call skip-test, $<, "SLOW")
|
|
endif
|
|
|
|
# On i386 and x86_64 Linux only supports 4k pages (large pages are a different hack)
|
|
EXTRA_RUNS+=run-test-mmap-4096
|