1 # -*- Mode: makefile -*-
3 # ARM SoftMMU tests - included from tests/tcg/Makefile
6 ARM_SRC=$(SRC_PATH)/tests/tcg/arm
8 # Set search path for all sources
11 ARM_TESTS=test-armv6m-undef
15 CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
16 LDFLAGS+=-nostdlib -N -static
19 $(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
23 test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
25 run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
26 run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel