aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/arm/Makefile.softmmu-target
blob: 49d48d8a1c3e74f9b1ce69fb1931999809e73a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- Mode: makefile -*-
#
# ARM SoftMMU tests - included from tests/tcg/Makefile
#

ifeq ($(TARGET_ABI_DIR),arm)

ARM_SRC=$(SRC_PATH)/tests/tcg/arm

# Set search path for all sources
VPATH 		+= $(ARM_SRC)

ARM_TESTS=test-armv6m-undef

TESTS += $(ARM_TESTS)

CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
LDFLAGS+=-nostdlib -N -static

%: %.S %.ld
	$(CC) $(CFLAGS) $(ASFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld

# Specific Test Rules

test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0

run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel

endif