From: "Alex Bennée" <alex.bennee@linaro.org>
To: bobby.prani@gmail.com, marcandre.lureau@redhat.com
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: [Qemu-devel] [RFC/POC PATCH 4/4] tests/tcg/Makefile: use docker target for arm-tcg-tests
Date: Wed, 14 Dec 2016 17:12:44 +0000 [thread overview]
Message-ID: <20161214171244.26813-5-alex.bennee@linaro.org> (raw)
In-Reply-To: <20161214171244.26813-1-alex.bennee@linaro.org>
This means we can type:
make arm-tcg-tests
And through the power of docker and Debian's emdebian cross tools we
build the misc and arm TCG targets.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/tcg/Makefile.include | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include
index 3eff12527c..6d8d666203 100644
--- a/tests/tcg/Makefile.include
+++ b/tests/tcg/Makefile.include
@@ -8,6 +8,7 @@ BUILD_DIR?=$(CURDIR)
include $(BUILD_DIR)/config-host.mak # brings in SRC_PATH
UNAME_M := $(shell uname -m)
+BUILD_UID = $(shell id -u)
tests-tcg: prepare $(UNAME_M)
@@ -22,9 +23,22 @@ i386:
cd $(BUILD_DIR)/i386-linux-user/tests/ && \
make -f $(SRC_PATH)/tests/tcg/i386/Makefile
-arm:
- cd $(BUILD_DIR)/arm-linux-user/tests/ && \
- make -f $(SRC_PATH)/tests/tcg/arm/Makefile
+arm-tcg-tests: docker-image-debian-multiarch-cross
+ mkdir -p $(BUILD_DIR)/arm-linux-user/tests
+ docker run --rm -it -v $(SRC_PATH):$(SRC_PATH) \
+ -v $(BUILD_DIR):$(BUILD_DIR) \
+ --user $(BUILD_ID):$(BUILD_ID) \
+ -w $(BUILD_DIR)/arm-linux-user/tests \
+ -e CROSS_CC="arm-linux-gnueabihf-gcc" \
+ qemu:debian-multiarch-cross \
+ make -f ../../tests/tcg/misc/Makefile
+ docker run --rm -it -v $(SRC_PATH):$(SRC_PATH) \
+ -v $(BUILD_DIR):$(BUILD_DIR) \
+ --user $(BUILD_ID):$(BUILD_ID) \
+ -w $(BUILD_DIR)/arm-linux-user/tests \
+ -e CROSS_CC="arm-linux-gnueabihf-gcc" \
+ qemu:debian-multiarch-cross \
+ make -f ../../tests/tcg/arm/Makefile
aarch64:
cd $(BUILD_DIR)/aarch64-linux-user/tests/ && \
--
2.11.0
next prev parent reply other threads:[~2016-12-14 17:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 17:12 [Qemu-devel] [RFC/POC PATCH 0/4] Building TCG tests with emdebian cross compilers Alex Bennée
2016-12-14 17:12 ` [Qemu-devel] [RFC/POC PATCH 1/4] tests/docker: add basic user mapping support Alex Bennée
2016-12-14 17:12 ` [Qemu-devel] [RFC/POC PATCH 2/4] new tests/docker/dockerfiles/debian-multiarch-cross.docker Alex Bennée
2016-12-14 17:12 ` [Qemu-devel] [RFC/POC PATCH 3/4] tests/tcg: don't run tests by default Alex Bennée
2016-12-14 17:12 ` Alex Bennée [this message]
2016-12-19 11:09 ` [Qemu-devel] [RFC/POC PATCH 0/4] Building TCG tests with emdebian cross compilers Marc-André Lureau
2017-01-09 11:57 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161214171244.26813-5-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=bobby.prani@gmail.com \
--cc=marcandre.lureau@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.