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