From patchwork Tue Apr 21 22:51:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47409 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1703A2121F for ; Tue, 21 Apr 2015 22:52:03 +0000 (UTC) Received: by wizk4 with SMTP id k4sf7753356wiz.2 for ; Tue, 21 Apr 2015 15:52:02 -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=5pA4dcFUixupHUw9lUNPjyT4ZkYoWQvcbC87h2JXZKo=; b=b6W0Nnr+alkjG1wm8VhZwTcawLOnw8NbohBLEWuYNX55W8JnesIUrMaiBFixXXV+GX GklylkpNRufzdqkrLQgvabIKKs+4sKmGBPGB7m32k2OHrk6BVwcYxXNd2ROWmRinHwo6 cDBGIikk1S2B0PTy2MnG7BStx5dAiK3ta11L+zZIvn9iJL6Bx1c+jwPxHhGQG1K25ekc UAet7dSXeRfPtukIzbEIOZs3xWQ14ed5JN5Mgr/uXaIQd6yKFRP1rWivgOCYsGZ6sT7/ iNwQQt/0bgybmjpswdPPThmWkqzxM7b9fE4pq+4G82COkyQfT8GQ9A427kKMhj+sHKFL QBrg== X-Gm-Message-State: ALoCoQl7IYBAf6wRua/p4DXymCJUVM4YI/UlY806VAFYQIvrHSKonRXR/cEhYTakkWX+bGgCqlBX X-Received: by 10.180.98.130 with SMTP id ei2mr143909wib.0.1429656722385; Tue, 21 Apr 2015 15:52:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.67 with SMTP id da3ls126945lad.49.gmail; Tue, 21 Apr 2015 15:52:02 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr22734870lae.32.1429656722188; Tue, 21 Apr 2015 15:52:02 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id e4si2397161laf.74.2015.04.21.15.52.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2015 15:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbcga7 with SMTP id ga7so167107721lbc.1 for ; Tue, 21 Apr 2015 15:52:02 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr22661896lbh.56.1429656722026; Tue, 21 Apr 2015 15:52:02 -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 l1csp907804lbt; Tue, 21 Apr 2015 15:52:01 -0700 (PDT) X-Received: by 10.67.3.195 with SMTP id by3mr41515007pad.109.1429656720306; Tue, 21 Apr 2015 15:52:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hp1si4860784pad.56.2015.04.21.15.51.58; Tue, 21 Apr 2015 15:52:00 -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 S965221AbbDUWvy (ORCPT + 27 others); Tue, 21 Apr 2015 18:51:54 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:33434 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965201AbbDUWvv (ORCPT ); Tue, 21 Apr 2015 18:51:51 -0400 Received: by pdbnk13 with SMTP id nk13so255277742pdb.0 for ; Tue, 21 Apr 2015 15:51:51 -0700 (PDT) X-Received: by 10.66.102.99 with SMTP id fn3mr41602497pab.118.1429656711354; Tue, 21 Apr 2015 15:51:51 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id nj7sm3013047pbc.36.2015.04.21.15.51.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Apr 2015 15:51:50 -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 5/7] selftest/x86: have no dependency on all when cross building Date: Tue, 21 Apr 2015 15:51:45 -0700 Message-Id: <1429656705-10016-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.179 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: , If the CROSS_COMPILE is set remove all's dependency on all_32 and all_64. Cc: Andy Lutomirski Acked-by: Andy Lutomirski Signed-off-by: Tyler Baker --- tools/testing/selftests/x86/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index be93945..ec7b088 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -7,15 +7,18 @@ BINARIES_64 := $(TARGETS_C_BOTHBITS:%=%_64) CFLAGS := -O2 -g -std=gnu99 -pthread -Wall +all: + UNAME_M := $(shell uname -m) +ifeq ($(CROSS_COMPILE),) # Always build 32-bit tests all: all_32 - # If we're on a 64-bit host, build 64-bit tests as well ifeq ($(UNAME_M),x86_64) all: all_64 endif +endif all_32: check_build32 $(BINARIES_32)