From patchwork Fri Apr 17 22:01:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47299 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F17420553 for ; Fri, 17 Apr 2015 22:01:53 +0000 (UTC) Received: by wiun10 with SMTP id n10sf7078261wiu.1 for ; Fri, 17 Apr 2015 15:01:52 -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=rplL5499Qy5Tnd/pSUQoJQRtodCpJf+bVNfmxXcOBUc=; b=N7HYOHMzNpzk1mxWCl06UytDoxDxJFgSpZCZz9fVOSjtsEVfyYE/ulVJh++C8RtJC8 jqeSIf6yGYvq3WkjZF0tvkcAjzKUaUNavyILScSRPBHGmWPSvBdK/Oo3NYsLUAlep5fl fgqzkKNF8q6CPVy+N9+bI/M8xp3+xVNpkdbkaNT6DDclqGGhtj1lb4w+nK6ur06Yl852 fy8iJPp6eSXNOmQCekPlyYJuUKUPsF3Aph5nt6vIJvJcjgXukgIAO9KQ6AtkzkMSzpJz mZF8S+3nsKnEVDQrUpkHt0hnK06A6MoBb2qY+8+Lc6/DdfSUF6LJv0/ATIF5pNfaT8zA fJig== X-Gm-Message-State: ALoCoQllSE8To7tC7atSNKz2PzqA7VolOShp9nFc8X/ydrZwDTtBtfNMtmTZncoXLwxNz7Q44ket X-Received: by 10.180.211.168 with SMTP id nd8mr1238455wic.4.1429308112502; Fri, 17 Apr 2015 15:01:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.181.5 with SMTP id ds5ls663730lac.20.gmail; Fri, 17 Apr 2015 15:01:52 -0700 (PDT) X-Received: by 10.152.170.170 with SMTP id an10mr6073975lac.84.1429308112313; Fri, 17 Apr 2015 15:01:52 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id qh5si9693850lbb.28.2015.04.17.15.01.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 15:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by layy10 with SMTP id y10so90245088lay.0 for ; Fri, 17 Apr 2015 15:01:52 -0700 (PDT) X-Received: by 10.152.178.197 with SMTP id da5mr6238595lac.56.1429308112222; Fri, 17 Apr 2015 15:01:52 -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 l1csp230378lbt; Fri, 17 Apr 2015 15:01:51 -0700 (PDT) X-Received: by 10.69.12.227 with SMTP id et3mr8957173pbd.11.1429308110592; Fri, 17 Apr 2015 15:01:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ul9si18335552pab.119.2015.04.17.15.01.49; Fri, 17 Apr 2015 15:01:50 -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 S1753892AbbDQWBp (ORCPT + 27 others); Fri, 17 Apr 2015 18:01:45 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:32844 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751354AbbDQWBo (ORCPT ); Fri, 17 Apr 2015 18:01:44 -0400 Received: by pdbnk13 with SMTP id nk13so140704641pdb.0 for ; Fri, 17 Apr 2015 15:01:43 -0700 (PDT) X-Received: by 10.70.61.65 with SMTP id n1mr8960237pdr.77.1429308103500; Fri, 17 Apr 2015 15:01:43 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id x1sm11668pdp.1.2015.04.17.15.01.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Apr 2015 15:01:42 -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 v2 5/8] selftest/x86: build both bitnesses Date: Fri, 17 Apr 2015 15:01:36 -0700 Message-Id: <1429308096-4667-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.215.47 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index f0a7918..57090ad 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -7,14 +7,14 @@ 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) -all: all_64 +ifeq ($(UNAME_M),x86_64) +all: all_32 all_64 endif all_32: check_build32 $(BINARIES_32)