From patchwork Wed Dec 14 17:12:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 88052 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp317711qgi; Wed, 14 Dec 2016 09:35:06 -0800 (PST) X-Received: by 10.55.126.193 with SMTP id z184mr55820802qkc.115.1481736906813; Wed, 14 Dec 2016 09:35:06 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id m184si30429352qkb.181.2016.12.14.09.35.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 14 Dec 2016 09:35:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHDSK-0006rm-BQ for patch@linaro.org; Wed, 14 Dec 2016 12:35:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHD7v-00067X-MN for qemu-devel@nongnu.org; Wed, 14 Dec 2016 12:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHD7r-0001zL-KR for qemu-devel@nongnu.org; Wed, 14 Dec 2016 12:13:59 -0500 Received: from mail-wj0-f175.google.com ([209.85.210.175]:33549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHD7r-0001zC-EE for qemu-devel@nongnu.org; Wed, 14 Dec 2016 12:13:55 -0500 Received: by mail-wj0-f175.google.com with SMTP id xy5so42546706wjc.0 for ; Wed, 14 Dec 2016 09:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fZA+N6s1o22QCf+Yd6/J/fnmdMUDaQooDrL09YyXH2c=; b=DqUMpLRWULgZRDskOx1YkUD2tyEZHd5B5+a3GX//x5Oh6vpypmvjhkVLyGaFc+G+wm +BnPU5gZsKHTL52noaXnGI15KdghmbK6IRspcX9fbxPm/vTCkqCrSYSCTpj1UiDgorl8 3cEL5bBoE0zLeousJb/fguk0DNG1FYyzOy/uc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fZA+N6s1o22QCf+Yd6/J/fnmdMUDaQooDrL09YyXH2c=; b=Kk7LAFFH3Cyxm1tcGcNB0dVJLSy3uM4l14/q8BRL0JELKHTxTUmwXwluC6XeRLns+B D2jwW5CIlo2TDBYPJxBxO5oAZE/IVk/ZYm9+GKWpTHUha+JktQAd6gQVuIEQkwb3t7Jj rBUXyS5PJzhETlbEzDkwfC4TDnFi1eiHcnYEHvVMH9dVLoKtqlDUB4XvscF3suLm5hfB jNdY6bgftRZ51qKMzUHf1LeWstEGLT7WTj+31VQIm9Yq21ihQ+6EaTsvuXZt9VJkvPkG xjOqhUyUh4eFMHcvo5JJOWH9fZTbMIepvXr8YAkKhsm7yl87apXn+jKers0GcLGiwrsK a9+w== X-Gm-Message-State: AKaTC02lbIzXtDzVcrlfyH/2mI+mNqy+4iCrSOM2e8KSqju3L4DCdAhbJqxF+KU+zqYV8xmJ X-Received: by 10.194.146.228 with SMTP id tf4mr23028741wjb.183.1481735574424; Wed, 14 Dec 2016 09:12:54 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id bj1sm68165175wjc.17.2016.12.14.09.12.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2016 09:12:50 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AAE7D3E08EE; Wed, 14 Dec 2016 17:12:48 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: bobby.prani@gmail.com, marcandre.lureau@redhat.com Date: Wed, 14 Dec 2016 17:12:44 +0000 Message-Id: <20161214171244.26813-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161214171244.26813-1-alex.bennee@linaro.org> References: <20161214171244.26813-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.210.175 Subject: [Qemu-devel] [RFC/POC PATCH 4/4] tests/tcg/Makefile: use docker target for arm-tcg-tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 --- tests/tcg/Makefile.include | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) -- 2.11.0 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/ && \