target/arm: Makefile cleanup (Aarch64)
[qemu/ar7.git] / tests / tcg / arm / Makefile.softmmu-target
blob49d48d8a1c3e74f9b1ce69fb1931999809e73a28
1 # -*- Mode: makefile -*-
3 # ARM SoftMMU tests - included from tests/tcg/Makefile
6 ifeq ($(TARGET_ABI_DIR),arm)
8 ARM_SRC=$(SRC_PATH)/tests/tcg/arm
10 # Set search path for all sources
11 VPATH           += $(ARM_SRC)
13 ARM_TESTS=test-armv6m-undef
15 TESTS += $(ARM_TESTS)
17 CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
18 LDFLAGS+=-nostdlib -N -static
20 %: %.S %.ld
21         $(CC) $(CFLAGS) $(ASFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
23 # Specific Test Rules
25 test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
27 run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
29 endif