2038f8c877
Avoid the repeated inclusions of config-target.mak, which have risks of namespace pollution, and instead build minimal configuration files in a configuration script. The same configuration files can also be included in Makefile and Makefile.qemu [AJB 10/09/19] In the original PR this had inadvertently enabled tests for ppc64abi32. However as the rest of the multiarch tests work rather than disabling the otherwise correctly functioning build I've just skipped the failing linux-test test. For some reason I can't debug it with TCG so I'm leaving that to the PPC maintainers to look at. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20190807143523.15917-4-pbonzini@redhat.com> [AJB: s/docker/container/, rm last bits from configure, ppc6432abi hack] Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Cc: Richard Henderson <rth@twiddle.net>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# Multiarch Tests - included from tests/tcg/Makefile.target
|
|
#
|
|
# These tests are plain C and built without any architecture specific code.
|
|
#
|
|
|
|
MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
|
|
|
|
# Set search path for all sources
|
|
VPATH += $(MULTIARCH_SRC)
|
|
MULTIARCH_SRCS =$(notdir $(wildcard $(MULTIARCH_SRC)/*.c))
|
|
MULTIARCH_TESTS =$(MULTIARCH_SRCS:.c=)
|
|
|
|
# FIXME: ppc64abi32 linux-test seems to have issues but the other basic tests work
|
|
ifeq ($(TARGET_NAME),ppc64abi32)
|
|
BROKEN_TESTS = linux-test
|
|
endif
|
|
|
|
# Update TESTS
|
|
TESTS += $(filter-out $(BROKEN_TESTS), $(MULTIARCH_TESTS))
|
|
|
|
#
|
|
# The following are any additional rules needed to build things
|
|
#
|
|
|
|
testthread: LDFLAGS+=-lpthread
|
|
|
|
# We define the runner for test-mmap after the individual
|
|
# architectures have defined their supported pages sizes. If no
|
|
# additional page sizes are defined we only run the default test.
|
|
|
|
# default case (host page size)
|
|
run-test-mmap: test-mmap
|
|
$(call run-test, test-mmap, $(QEMU) $<, \
|
|
"$< (default) on $(TARGET_NAME)")
|
|
|
|
# additional page sizes (defined by each architecture adding to EXTRA_RUNS)
|
|
run-test-mmap-%: test-mmap
|
|
$(call run-test, test-mmap-$*, $(QEMU) -p $* $<,\
|
|
"$< ($* byte pages) on $(TARGET_NAME)")
|