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>
26 lines
547 B
Makefile
26 lines
547 B
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# ARM SoftMMU tests - included from tests/tcg/Makefile
|
|
#
|
|
|
|
ARM_SRC=$(SRC_PATH)/tests/tcg/arm
|
|
|
|
# Set search path for all sources
|
|
VPATH += $(ARM_SRC)
|
|
|
|
ARM_TESTS=test-armv6m-undef
|
|
|
|
TESTS += $(ARM_TESTS)
|
|
|
|
CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
|
|
LDFLAGS+=-nostdlib -N -static
|
|
|
|
%: %.S %.ld
|
|
$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
|
|
|
|
# Specific Test Rules
|
|
|
|
test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
|
|
|
|
run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
|