2018-11-29 21:51:13 +03: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 17:35:21 +03:00
|
|
|
$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
|
2018-11-29 21:51:13 +03:00
|
|
|
|
|
|
|
# Specific Test Rules
|
|
|
|
|
2022-06-13 20:12:52 +03:00
|
|
|
test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft
|
2018-11-29 21:51:13 +03:00
|
|
|
|
|
|
|
run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
|
2019-05-17 19:09:48 +03:00
|
|
|
run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel
|