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