2018-11-29 19:51:13 +01:00
|
|
|
# -*- Mode: makefile -*-
|
|
|
|
#
|
|
|
|
# ARM SoftMMU tests - included from tests/tcg/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
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
|
2019-08-07 16:35:21 +02:00
|
|
|
$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
|
2018-11-29 19:51:13 +01:00
|
|
|
|
|
|
|
# Specific Test Rules
|
|
|
|
|
|
|
|
test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
|
|
|
|
|
|
|
|
run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
|
2019-05-17 18:09:48 +02:00
|
|
|
run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel
|