From patchwork Fri Jun 15 19:46:34 2018 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: 138772 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1260073lji; Fri, 15 Jun 2018 13:02:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJRfnNurr/r8L+C//At11gLwub50i/XQLF/HHiSCMbOVH5CShR7sxINwoXePsVofCkpmjv8 X-Received: by 2002:a37:b987:: with SMTP id j129-v6mr2650362qkf.177.1529092920982; Fri, 15 Jun 2018 13:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529092920; cv=none; d=google.com; s=arc-20160816; b=PHa+uqkyIBPKhYuNv1TpcOGXv++Bd/NpXWRFpUiTMxLrYZydVpcDoCQ3SBdHc3Uiw5 rjzRLblaoYM/QohU0P5ZtCxKjJHi4wm7wjI4J9cLlPTSWsgEpB8SsXbctXcOJn1FNO3I Ga4cqqvpTi54saUr3tPHfxiZnluKtyvVGwhcCD98ry/+/zkxzS6nB78p5GecRSdcNFOW L9IshVwkqWzZ9fgm3lRUN/iLwx+bGGSs5HqGdQMD8lm4ZYyfUk7IjPEEhZfx2+2M+t8T 3tzrXFUcGUb/AjfobBywemEX1z0KtEC2NPLXGaMFpCs0mCh7YsyE9OBLIjmIhoR2qYf3 VmuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=ySO5WeTKDXaiwnC91xKOjHzomGpuHQ7DfQsCRJQXOxQ=; b=yOPYZNh4gc3JuchHyUYfIaO/C92RIDkpA9XAgl/IyfWjNjZz9n1XyT1324vkCQLwLM FhdV64Y3ANWGWD7IFGW7IyzTN+HcQ59RlRnXmpPw9dX3LYDoPU3/KeIcWM0c/Elk4EOG WZuFpdvfnPCPXoR9d17VTad6JFugzF7DulD957rJlY+bYZooXDFHoxu8jyrJkCSdGJb/ MAZ29VU10UlewQ1Ezjt2XQ/u/SPGowHp3Xes0Tp7JgYIMjCA8Hu3hXNPuuN1LiF6qSIx CItzdliogbQIWw9ayegIn8pk1vIl5DWKXYmYT3W55eHdHSo8V1CieB5fJuu9f8IXlYkA SCvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QEw29apk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f1-v6si3544633qta.307.2018.06.15.13.02.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Jun 2018 13:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QEw29apk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuv2-0006OD-Ea for patch@linaro.org; Fri, 15 Jun 2018 16:02:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTugu-0002cf-2L for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTugs-0005eM-Vi for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:24 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:38766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTugs-0005dR-Ob for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:22 -0400 Received: by mail-wr0-x242.google.com with SMTP id e18-v6so10983565wrs.5 for ; Fri, 15 Jun 2018 12:47:22 -0700 (PDT) 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=ySO5WeTKDXaiwnC91xKOjHzomGpuHQ7DfQsCRJQXOxQ=; b=QEw29apk2m9a5M+9Q9JsKNOcj+ATF6vukUrh7HH6NyEqxUp+zXZMBqW/JqMaR4mkfG FsH49Kkd/m/5MfsbKLk3e2a45S0dG0YLy53JEqvtsQpmY9IlxfEGGsooIEjySl85jhVi 5wHyZVHT6vD5+B2h16EmogdKy+biPh0AhsLs8= 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=ySO5WeTKDXaiwnC91xKOjHzomGpuHQ7DfQsCRJQXOxQ=; b=Y9OppzylUb4KZzLCZ/AudErhXT9bu2t04ntFuate5epvkKR7hquXTed5MO9yYv8TJ1 geEoQM4WILLrKjyYX7g+VRfYLSRPgq6+5g74pbshzxDTz8QcgPVHt4i4Bp1e7qVSn5bY 9cpDHgPCUmK9q4aHY/8QalJ0uGu9P3RG4EhvZGz5iL6HbnIVi8qqG5d8mjun78FFVHII lH1MOGk6AMjcSl+ohJFQj7A3hez8d2go3yCK21CgDuffT++tCaTHZAlHLrulvYaC2Bl/ SEFVUywsaDUyKv4oHry4iHAnckSoYsfBgZQNfi77vj0Ac3OmnsMLQsVnL6Ptz93AVx6r aFyA== X-Gm-Message-State: APt69E2YAu728JSZIPI8VKD8YRYXEamMrsYqr+/HPRO3KrfSuTMSKjNL GKPsknX5mCY0FNTBb+008StX6/W9quU= X-Received: by 2002:adf:8ab9:: with SMTP id y54-v6mr2638641wry.98.1529092041648; Fri, 15 Jun 2018 12:47:21 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n23-v6sm2065062wmh.6.2018.06.15.12.47.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:47:17 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5734F3E0C65; Fri, 15 Jun 2018 20:47:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:46:34 +0100 Message-Id: <20180615194705.28019-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194705.28019-1-alex.bennee@linaro.org> References: <20180615194705.28019-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [PATCH v7 23/54] tests/tcg: enable building for ARM 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: "open list:ARM" , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This allows us to use the docker cross compiler image to build these tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - add EXTRA_RUNS for mmap tests --- tests/tcg/arm/Makefile.include | 8 ++++++++ tests/tcg/arm/Makefile.target | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/arm/Makefile.include -- 2.17.1 diff --git a/tests/tcg/arm/Makefile.include b/tests/tcg/arm/Makefile.include new file mode 100644 index 0000000000..8e7eac008f --- /dev/null +++ b/tests/tcg/arm/Makefile.include @@ -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 diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index bc6962ecc6..0312293dca 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -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