1# -*- Mode: makefile -*-
2#
3# ARM SoftMMU tests - included from tests/tcg/Makefile
4#
5
6ifeq ($(TARGET_ABI_DIR),arm)
7
8ARM_SRC=$(SRC_PATH)/tests/tcg/arm
9
10# Set search path for all sources
11VPATH 		+= $(ARM_SRC)
12
13ARM_TESTS=test-armv6m-undef
14
15TESTS += $(ARM_TESTS)
16
17CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
18LDFLAGS+=-nostdlib -N -static
19
20%: %.S %.ld
21	$(CC) $(CFLAGS) $(ASFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
22
23# Specific Test Rules
24
25test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
26
27run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
28
29endif
30