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 -mfloat-abi=soft
25 run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
27 # We don't currently support the multiarch system tests
28 undefine MULTIARCH_TESTS