From patchwork Thu May 17 17:47:11 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: 136168 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp239627lji; Thu, 17 May 2018 10:51:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZozMRvzov9OeTACKvm/PB4IdafE3zuyOYMZqHmwYOAYanma8k9jc61w6qNoqKZ1piQ0JGcV X-Received: by 2002:a37:129b:: with SMTP id 27-v6mr5792869qks.96.1526579478864; Thu, 17 May 2018 10:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526579478; cv=none; d=google.com; s=arc-20160816; b=wXitLanO0XPulKjIuhfEcROmZqAvGcx70FN4Uqt8oU5b7gwusp8Ty3wnjc42LZCftD eTdRjHm94Hy+pSnNNtD1xw51zfSBXUCCgNYuhrvACA2tosdfMHWmpXRK8t41pJtSz9Ea vLxhBxoE87YiX8ESnq5NBKF8QNUjongc6cW7CmaQmI2O+fQIggqzNHSERU9CFsyi5MAv rLyydi7W2gUM7KU7h5lQ9QcoE5dBkUlfpEfpMihssun9bn52Iq9Ps32OHPzSV5BEn3WY m9kENcUJm4ThxMr8BnJGs5KWze+HiQClmtBjjn9ONe8/7Mvg7u1doDp6oOQWFmatGFa3 UKPQ== 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=eYFxm0zOmOQ4y0J1dM/O7tqik68lxiCgtPIow5wiXXs=; b=dB2VliiKagFAiFw5/W2RQkFeudTAukFMesG8QFntAsOqcdHrVovuvXLfSvjZkDcLej nsKVlyJ7cw1x2wUIwS2/wcsltbKKYa0BekShK5bdkfCLNrMCM1NCtHJouzATqVwbG3Pd uAlCSlU7hgS81uLwEAdJX5vnRysh07pWQx+jSwPLPc1yPG8qix9pM+13rnJiIWQObUJF mficOdhTz57cDHlqPK0p+WZG74dPFpcRslYYBxXqIHigsqPJbiy85V0+pWxFiYbwo+/B qBs0hmKeHsOYzAQ9oydGxdA1u+c8xO4lWpDZfJtz3qqVIit1W4y0pAPXOwi1L8ILs8n+ To5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QelLL5Z7; 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 r8-v6si5859261qkr.151.2018.05.17.10.51.18 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 10:51:18 -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=QelLL5Z7; 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]:38447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN3e-0000k4-8w for patch@linaro.org; Thu, 17 May 2018 13:51:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN0C-0006RC-Ue for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJN0B-0003d2-W5 for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:44 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:52497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJN0B-0003cd-Ob for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:43 -0400 Received: by mail-wm0-x229.google.com with SMTP id w194-v6so9863566wmf.2 for ; Thu, 17 May 2018 10:47:43 -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=eYFxm0zOmOQ4y0J1dM/O7tqik68lxiCgtPIow5wiXXs=; b=QelLL5Z7Um0mEBFcNFd+e/O9+ZXr3EZqS+BtzqUGKeS4t7JBs/0zg+BdbGBhCXccZg CjjdkaKyei3QyRIRVSfu0A2+55AarX8wUdpRjZF1OPZ1U++9nt5J3uFXpWBEo9s4mlpB PyJl5kqC/BScysA4PblHqxytNCMVn7oFTC0Fg= 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=eYFxm0zOmOQ4y0J1dM/O7tqik68lxiCgtPIow5wiXXs=; b=biaG83/gbK5c1EHKvsKqLMR6Dbs1vZGzH3WS7LZVinj2fEApXCxZSGFMA7k5oXlUsI d1YWHUleXyuauyB7tEV0yOBbQu932v7qsoERT31OMFWgsTCxWq5OEKVRWDe8IJO/HRnR jDAdi1BTt4NyfVAguw9LWaKYD40U4aQROj1b9mBQ/jEexvVs+KeSxRqZmWjApQQ3VOpf 6vbKUJlHNsxXz1hkXsPUag2KRn2QMqedlCkG2AjjfiD3rTtgdUU8eYx3kxaSQfuZ4GXg EhLptaH0IalgRu4ZCVQXiXVlRcOWO+ptN0uDxaAkT7JOrHrlIIu+OWq0lvjMiWA2EkZ/ ABTg== X-Gm-Message-State: ALKqPwdLAvJkpUggkMaqmj25c8+t5DlH+xxbBqlrTXWFgUbCI2TtLxcQ xnawR67whFhAgHr5PXD6I8JP/A== X-Received: by 2002:a1c:a906:: with SMTP id s6-v6mr2314811wme.116.1526579262607; Thu, 17 May 2018 10:47:42 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id q15-v6sm4634963wmf.11.2018.05.17.10.47.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:47:34 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 56B203E0F8C; Thu, 17 May 2018 18:47:22 +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 Date: Thu, 17 May 2018 18:47:11 +0100 Message-Id: <20180517174718.10107-43-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-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:c09::229 Subject: [Qemu-devel] [PATCH v4 42/49] tests/tcg: enable building for sh4 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As before, using Debian SID compilers. While the compiler can be coerced into generating big-endian code it seems the linker can't deal with it so we only enable the building for little endian SH4. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-sh4-cross.docker | 12 ++++++++++++ tests/tcg/sh4/Makefile.include | 4 ++++ 3 files changed, 17 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-sh4-cross.docker create mode 100644 tests/tcg/sh4/Makefile.include -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 15c52127c7..c08f32ca58 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -65,6 +65,7 @@ docker-image-debian-win64-cross: docker-image-debian8-mxe docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid docker-image-debian-m68k-cross: docker-image-debian-sid +docker-image-debian-sh4-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-sh4-cross.docker b/tests/docker/dockerfiles/debian-sh4-cross.docker new file mode 100644 index 0000000000..88a2423094 --- /dev/null +++ b/tests/docker/dockerfiles/debian-sh4-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-sh4-linux-gnu \ + libc6-dev-sh4-cross diff --git a/tests/tcg/sh4/Makefile.include b/tests/tcg/sh4/Makefile.include new file mode 100644 index 0000000000..ad21594d9d --- /dev/null +++ b/tests/tcg/sh4/Makefile.include @@ -0,0 +1,4 @@ +ifneq ($(TARGET_NAME), sh4eb) +DOCKER_IMAGE=debian-sh4-cross +DOCKER_CROSS_COMPILER=sh4-linux-gnu-gcc +endif