tests/tcg: enable building for ARM

This allows us to use the docker cross compiler image to build these
tests.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
Alex Bennée 2018-05-07 21:53:43 +01:00
parent c348722c53
commit ab4aac5023
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,8 @@
# Makefile.include for all ARM targets
#
# We don't have any bigendian build tools so we only use this for armhf
ifeq ($(TARGET_NAME),arm)
DOCKER_IMAGE=debian-armhf-cross
DOCKER_CROSS_COMPILER=arm-linux-gnueabihf-gcc
endif

View file

@ -1,6 +1,6 @@
# -*- Mode: makefile -*-
#
# ARM - included from tests/tcg/Makefile.target
# ARM - included from tests/tcg/Makefile
#
ARM_SRC=$(SRC_PATH)/tests/tcg/arm
@ -11,3 +11,6 @@ VPATH += $(ARM_SRC)
hello-arm: CFLAGS+=-marm -ffreestanding
hello-arm: LDFLAGS+=-nostdlib
# On ARM Linux only supports 4k pages
EXTRA_RUNS+=run-test-mmap-4096