From patchwork Tue Apr 24 15:23:37 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: 134159 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2457233lji; Tue, 24 Apr 2018 09:43:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49XjChLUn5Vt7Jlb0oUxc5Qmj4ToGXjVsqS6CQLED7hl7fKg2wF9vfKbsUJKGT0o5b0rGxM X-Received: by 2002:aed:2962:: with SMTP id s89-v6mr27659751qtd.162.1524588202685; Tue, 24 Apr 2018 09:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588202; cv=none; d=google.com; s=arc-20160816; b=t6Iu4N/m4jzGBVDuMH3VbNpXNC8FUpBysW26mssOPuWaH/VCc40H+jpBRzIjehj7st 6i4S3twEe5icdouVcNJsd5QsTQHRgMtmSA3gU4QQ63WRMCbBghBwGW6qRAvgy5r03a2K /UUeHeYIdqpEZoOnbVZDDhpBU3WxmOawzksfZ2ZKMqKhQHWSkqgNULVYybwFPjAAt6HZ W3qbPdA/CEUMDjPZZLKUeV6JbPRsW9mKY6VT5swHRNez3rgGpuW/f3nqvjWBMIkY7TX0 B3LuqdDYtVw2b1y4HuxrJpAFEJQ+cJqqt2nsBALWY8UvgqIeodg2JDk0y8pIbmgpEZmw 7G7A== 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=VOJWrt8nJRVdmiI9EEW9Jy5GKHaARZenqgm8O8C/IWA=; b=AVM9J0r6UxskuIlxYR7xgA1r2ppbT/5CQxNMZTkcCtqVWQU3vnjtjL0ZDwAIb8AsOB qq6ak9HLPlZGKdGBw9q4SwLv2tCJ8HTj2a0nOSq+wnvcKJvRrmfurTpLWSKL8uLK2hnN FERSBscGY9Pk5Onyls68IpudAT5+BOKLZoj6Wavrl2qzmLLggv3zSKbdXdpiyOs9DX4X SldAg9C+Fc8NJfLywFXoM5WCN3SdIrLOxJSLUp7XNuVEbb9xas8a5VBz4srmIYOO6Bn+ T0B/itbicHZHj20hIeKSptjErFyMNkUkwMWY0fixgFQSfDzx97KHnudFNRIiPUBUYQ84 QhTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XFIFCJVm; 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 w1-v6si2285857qtd.75.2018.04.24.09.43.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:43:22 -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=XFIFCJVm; 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]:59653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB12I-0002tY-5i for patch@linaro.org; Tue, 24 Apr 2018 12:43:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06I-0005OF-F6 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06H-0000l0-D1 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:26 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:40270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06H-0000kd-6I for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:25 -0400 Received: by mail-wr0-x241.google.com with SMTP id v60-v6so50428456wrc.7 for ; Tue, 24 Apr 2018 08:43:25 -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=VOJWrt8nJRVdmiI9EEW9Jy5GKHaARZenqgm8O8C/IWA=; b=XFIFCJVmYyxMt7dYsuh+n/ttKtCkSVrx8zddxh2+S6a2X9XJyIywR/Tc/ZBXJSrr6x RMnt2gMbSKr1l2alv2rW2Vl11mu6g+QHVyzyOukwe92miCTkCk8wKKQ2myRGqOAl0OB2 8NqLZbPr2JByZ1Tr9K5JjcJ3BCvHRc+CoNmYw= 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=VOJWrt8nJRVdmiI9EEW9Jy5GKHaARZenqgm8O8C/IWA=; b=kD/DvxFXScJOcVoJNUmXAOIpeGXN2fTmNK6ag8y536zEiFvmrT/qpnF7lIgA0Sen2p H61kCD/DZGWZH9WKG9Lhar+T4CpfZPL3mM8I0Ao7nDhPwCi8mubYC8il8ebecZJ7tAZz Y+fN3Oqr2Bm9C5hBxP05eVjd305m73pPVQ3eZNdZbmR73L2rqHSP7f1Ey677IxWpbmat aOWtpQfrp47h1ubl4i2fxVy2xg0O5J7HeM5h4UKQJKb7nPsk2WhJoSh2zaq/Qth3330u LGL5XsRNsOxWD9MKtRgN7wrvFCR0rys80bdWbQ0BCCTnb3PvJLFIrjXxCMplAjfNbguS 9SfA== X-Gm-Message-State: ALQs6tD6AxpdHj+WPlf63Knw4DHbx4HfiGihTfAZuw3q43byvoN4oaLW ahnMDGsqrmG8tJLlHfu/vrXpAQ== X-Received: by 2002:adf:88c2:: with SMTP id g2-v6mr21097387wrg.78.1524584604080; Tue, 24 Apr 2018 08:43:24 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p128sm15473784wmd.45.2018.04.24.08.43.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:17 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C8F833E0ADA; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, 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: Tue, 24 Apr 2018 16:23:37 +0100 Message-Id: <20180424152405.10304-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-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::241 Subject: [Qemu-devel] [PATCH v3 18/46] tests/tcg: enable building for i386 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" While you can construct a compile command that does work using the x86_64 host compiler that most people use this is flakey. Different distros handle this is different ways so we default to using a known good i386 compiler via docker. Signed-off-by: Alex Bennée --- v3 - add runner for runcom --- tests/tcg/i386/Makefile.include | 9 +++++++++ tests/tcg/i386/Makefile.target | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/tcg/i386/Makefile.include -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/Makefile.include b/tests/tcg/i386/Makefile.include new file mode 100644 index 0000000000..be1c3008dd --- /dev/null +++ b/tests/tcg/i386/Makefile.include @@ -0,0 +1,9 @@ +# +# Makefile.include for all i386 +# +# There is enough brokeness in x86_64 compilers that we don't default +# to using the x86_64 system compiler for i386 binaries. +# + +DOCKER_IMAGE=fedora-i386-cross +DOCKER_CROSS_COMPILER=gcc diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 2f27b65e2d..39a1627650 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -28,3 +28,12 @@ hello-i386: LDFLAGS+=-nostdlib test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ $( runcom.out, "TEST", "$< on $(TARGET_NAME)") +