forked from mirror/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
640 B
Makefile
27 lines
640 B
Makefile
# -*- 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
|
|
$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
|
|
|
|
# Specific Test Rules
|
|
|
|
test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft
|
|
|
|
run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
|
|
run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel
|