From patchwork Tue Apr 21 22:51:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47408 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE99F2121F for ; Tue, 21 Apr 2015 22:51:50 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf47986600wgi.3 for ; Tue, 21 Apr 2015 15:51:50 -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=NQDhtFO7Cq06GMMJk+6xGT1Y0d7igAat/WAY1+wu44c=; b=EEupcWB/NycfnT9sg+XZubkUbeBlBr+rKHMrCx5pqncAzc/NIohvi9av65uOewIlIp 1/Hx1f41RBEfxnSHl3pHxK6VTApWGAh/MZ+8uvzcQ6sQ52vJ7iRH05CKqgqNFilP7hpQ NrOQOvcB6RVejvw961BSk9xqJN+h1LqJFGc2k2RvhLW5VFJ/UjVS7I+Q2bFqEppHg1Bc B4mSPbMW+PUviHKnlQtYBOvnhc1owypAwLfRAidU2iyb6xxRgZjJmFW1PkOOio49rn2S JdFwN2ZE1KjPprHuBjhJYS4jTIDS9+3QyvoaUPTqmgI6KEBNGsc/ky9/QyfChXve2vhk 5AGw== X-Gm-Message-State: ALoCoQnWhAfmhzai7fX1nX5lgJIF1ohJpOF9pxYrqYWx7wxFBNpaDLTJ8UzpR1UPSYTzVXXx6JB/ X-Received: by 10.180.73.137 with SMTP id l9mr126755wiv.5.1429656710237; Tue, 21 Apr 2015 15:51:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.65 with SMTP id yg1ls113841lab.26.gmail; Tue, 21 Apr 2015 15:51:50 -0700 (PDT) X-Received: by 10.112.148.101 with SMTP id tr5mr22671541lbb.0.1429656710046; Tue, 21 Apr 2015 15:51:50 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id e7si2398709lbc.62.2015.04.21.15.51.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2015 15:51:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbuc2 with SMTP id uc2so166882338lbb.2 for ; Tue, 21 Apr 2015 15:51:49 -0700 (PDT) X-Received: by 10.112.184.70 with SMTP id es6mr21745980lbc.117.1429656709768; Tue, 21 Apr 2015 15:51:49 -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 l1csp907742lbt; Tue, 21 Apr 2015 15:51:48 -0700 (PDT) X-Received: by 10.66.182.5 with SMTP id ea5mr40489866pac.45.1429656707940; Tue, 21 Apr 2015 15:51:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hq5si4804439pbb.191.2015.04.21.15.51.46; Tue, 21 Apr 2015 15:51:47 -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 S965200AbbDUWvm (ORCPT + 27 others); Tue, 21 Apr 2015 18:51:42 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:35454 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965069AbbDUWvj (ORCPT ); Tue, 21 Apr 2015 18:51:39 -0400 Received: by pdbqd1 with SMTP id qd1so255591853pdb.2 for ; Tue, 21 Apr 2015 15:51:39 -0700 (PDT) X-Received: by 10.66.156.225 with SMTP id wh1mr5041316pab.100.1429656699396; Tue, 21 Apr 2015 15:51:39 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id b10sm3048744pdo.84.2015.04.21.15.51.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Apr 2015 15:51:38 -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 v4 4/7] selftest/x86: build both bitnesses Date: Tue, 21 Apr 2015 15:51:33 -0700 Message-Id: <1429656693-9937-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.181 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 Acked-by: 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