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: 6235671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 771EFBF4A6 for ; Fri, 17 Apr 2015 22:04:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99CB120279 for ; Fri, 17 Apr 2015 22:04:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C5E9D20272 for ; Fri, 17 Apr 2015 22:04:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YjEL0-0002Q2-2h; Fri, 17 Apr 2015 22:02:14 +0000 Received: from mail-pd0-f169.google.com ([209.85.192.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YjEKr-00029g-Ms for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2015 22:02:06 +0000 Received: by pdbqa5 with SMTP id qa5so140594250pdb.1 for ; Fri, 17 Apr 2015 15:01:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aqgr2mWF53EgoG8Y61V9scou6h275lakWJBa/pbMmGY=; b=NWlk3q/UDRV4W48pmkbsmHdgx0XVQUqQxA3IQV41wzTSVbFpZw/qJlfzXQEfGy2G0Z OCgJI/C5PT9+HYBZFCk6TIiF50ngvNZsu9RUaQSpx89PvwLEhEEs3QeMHifbWIx5Lv2I ZAYDgP/Xa41MNeLX/Ovmkw6Vg8AIuITjgzrjLyFGI/W7124l0Kc6QxjZ1cKtpl2uD2fw pCBlgNjy+yB4O9L5VUSyHyFAIECwIPjCzbTuHZSar1DIxANWlhLoJwV3BghoWsGmHcqw Ynx1iuJ3Hc5SVVIc79CShjhwyh3OLWXH2X4sF8mx6SchOnBO7YGthi867YII66gAn5r8 rWCw== X-Gm-Message-State: ALoCoQn/a/1WhZIOcURSpZ7LZqdjP7yU38q4FqN7JSdu7aPF+XwsCyHGpSa6ZLRS6FGAcsAs7XEX 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150417_150205_794245_FFBEFF64 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kevin Hilman , Michael Ellerman , Tyler Baker , linux-kernel@vger.kernel.org, Andy Lutomirski , John Stultz , David Herrmann , Darren Hart , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)