2018-11-29 18:51:13 +00:00
|
|
|
# -*- Mode: makefile -*-
|
|
|
|
#
|
|
|
|
# ARM SoftMMU tests - included from tests/tcg/Makefile
|
|
|
|
#
|
|
|
|
|
2023-11-20 15:08:29 +00:00
|
|
|
ARM_SRC=$(SRC_PATH)/tests/tcg/arm/system
|
2018-11-29 18:51:13 +00:00
|
|
|
|
|
|
|
# Set search path for all sources
|
|
|
|
VPATH += $(ARM_SRC)
|
|
|
|
|
|
|
|
ARM_TESTS=test-armv6m-undef
|
|
|
|
|
|
|
|
TESTS += $(ARM_TESTS)
|
|
|
|
|
|
|
|
LDFLAGS+=-nostdlib -N -static
|
|
|
|
|
|
|
|
%: %.S %.ld
|
2019-08-07 14:35:21 +00:00
|
|
|
$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
|
2018-11-29 18:51:13 +00:00
|
|
|
|
|
|
|
# Specific Test Rules
|
|
|
|
|
2023-11-20 15:08:29 +00:00
|
|
|
test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft -Wl,--build-id=none -x assembler-with-cpp
|
2018-11-29 18:51:13 +00:00
|
|
|
|
|
|
|
run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
|
2023-04-24 09:22:44 +00:00
|
|
|
|
|
|
|
# We don't currently support the multiarch system tests
|
|
|
|
undefine MULTIARCH_TESTS
|