Message ID | 1429571717-27338-1-git-send-email-tyler.baker@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDEP3ZF5REFRBFER22UQKGQEQT3KKBI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 388612121F for <linaro@patches.linaro.org>; Mon, 20 Apr 2015 23:15:33 +0000 (UTC) Received: by lamp14 with SMTP id p14sf42748806lam.3 for <linaro@patches.linaro.org>; Mon, 20 Apr 2015 16:15:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=DjjAs10qFEFx262lMWFTPulNtvzSRq5VikY1LYpqkKA=; b=mT3rQ1h3j7GhE7BgliVm/OmwO5QGNkK3wAL6Pr/eXZq1n8gUacTUrA1YVwDA5XwoIn TVHWYD2dWtoRvlTaLmWbGO2DKMjuEzPNPhhLfSuFeVZKbLPv8RlVdnimElwsBhJp7lSB bRjL/kz219bQdkOWKOQf8NBKABK3M4CjrPMKl9vxhghg3Q/3RUFxvp/g5T3xCyWq0HBi 8ZycvEYvnPX2fRZL0Y7O7lfVdixIvtbPmU6lHSaMwIruPYyBdTnAQexGpXluUY12Nm8c jIM9LaYm/wgUFID+AS9Sc+jKnsuiF5uydxG1hHRS5mIFUj75NCM1eX8/RHCCpJQRFO/c f2gA== X-Gm-Message-State: ALoCoQnHsAYRW5Km9ACZwsZ9var0ei2DZZf+xw9HW13xhkceodL+EQBFTb+iEJVg4P/ehsw3AiJ0 X-Received: by 10.112.26.5 with SMTP id h5mr8220866lbg.4.1429571732186; Mon, 20 Apr 2015 16:15:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.198 with SMTP id ao6ls834098lac.103.gmail; Mon, 20 Apr 2015 16:15:31 -0700 (PDT) X-Received: by 10.152.8.231 with SMTP id u7mr17284334laa.37.1429571731969; Mon, 20 Apr 2015 16:15:31 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id lc4si64184lac.26.2015.04.20.16.15.31 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 16:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbuc2 with SMTP id uc2so142627296lbb.2 for <patchwork-forward@linaro.org>; Mon, 20 Apr 2015 16:15:31 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr17932001lab.35.1429571731891; Mon, 20 Apr 2015 16:15:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp297790lbt; Mon, 20 Apr 2015 16:15:31 -0700 (PDT) X-Received: by 10.70.95.228 with SMTP id dn4mr6305445pdb.89.1429571730165; Mon, 20 Apr 2015 16:15:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uv6si127995pbc.34.2015.04.20.16.15.29; Mon, 20 Apr 2015 16:15:30 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754598AbbDTXPZ (ORCPT <rfc822;hanjun.guo@linaro.org> + 26 others); Mon, 20 Apr 2015 19:15:25 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:32934 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753327AbbDTXPX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Apr 2015 19:15:23 -0400 Received: by pdbnk13 with SMTP id nk13so222189644pdb.0 for <linux-kernel@vger.kernel.org>; Mon, 20 Apr 2015 16:15:23 -0700 (PDT) X-Received: by 10.69.26.67 with SMTP id iw3mr31967829pbd.151.1429571722929; Mon, 20 Apr 2015 16:15:22 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id qd8sm39516pbc.71.2015.04.20.16.15.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Apr 2015 16:15:22 -0700 (PDT) From: Tyler Baker <tyler.baker@linaro.org> To: Shuah Khan <shuahkh@osg.samsung.com> Cc: Andy Lutomirski <luto@amacapital.net>, Kevin Hilman <khilman@kernel.org>, John Stultz <john.stultz@linaro.org>, Darren Hart <dvhart@infradead.org>, David Herrmann <dh.herrmann@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tyler Baker <tyler.baker@linaro.org> Subject: [PATCH v3 5/8] selftest/x86: build both bitnesses Date: Mon, 20 Apr 2015 16:15:17 -0700 Message-Id: <1429571717-27338-1-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tyler.baker@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index ddf6356..be93945 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -7,13 +7,13 @@ BINARIES_64 := $(TARGETS_C_BOTHBITS:%=%_64) CFLAGS := -O2 -g -std=gnu99 -pthread -Wall -UNAME_P := $(shell uname -p) +UNAME_M := $(shell uname -m) # Always build 32-bit tests all: all_32 # If we're on a 64-bit host, build 64-bit tests as well -ifeq ($(shell uname -p),x86_64) +ifeq ($(UNAME_M),x86_64) all: all_64 endif
Using uname with the processor flag option in some cases can yield 'unknown' so lets use the machine flag option as it is deterministic. Add a dependency for all_32 when building on a x86 64 bit host so that both bitnesses are built in this case. Cc: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Tyler Baker <tyler.baker@linaro.org> --- tools/testing/selftests/x86/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)