From patchwork Mon Apr 20 23:15:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47380 Return-Path: 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 ; Mon, 20 Apr 2015 23:15:33 +0000 (UTC) Received: by lamp14 with SMTP id p14sf42748806lam.3 for ; 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 (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 ; 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 + 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 ); Mon, 20 Apr 2015 19:15:23 -0400 Received: by pdbnk13 with SMTP id nk13so222189644pdb.0 for ; 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 To: Shuah Khan Cc: Andy Lutomirski , Kevin Hilman , John Stultz , Darren Hart , David Herrmann , Michael Ellerman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tyler Baker 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: 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: , List-Help: , List-Archive: List-Unsubscribe: , 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 Signed-off-by: Tyler Baker --- tools/testing/selftests/x86/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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