From patchwork Mon Apr 20 23:15:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47381 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 DE6182121F for ; Mon, 20 Apr 2015 23:15:59 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf41539773wgt.1 for ; Mon, 20 Apr 2015 16:15:59 -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=k4iu/sNilXUYduMicVpvK2LOPi6NVdyeQQ9tMSYZosY=; b=BjXNkMrnPq8LdiOhHjUj3pBWBv1vhqhUNYbhlaijVq9wXcGxYbA/0l/oCrVr4zlv0l ZgrXwb1BHV/V4D56AnePPOhI1kOCIs5lybyraNbhZqbRqe23MTER8PHZe01XP4bNASxP VSMSQpm5Ua32r5tUJ/o9feXdtyNScIggHAiwxHpYq3r60csfLMpErI4OIeRoJ/s8XkSw A9cjYhjxDrKMYNp5NEFRWfWm0I2/u+ZH6dbenJkYwzK3qrYlDp0MXaTb4Ql9ih91CLkw MzkzIa0REPbH7eToLEKzfJYMScpDW37OjMcSV9JakfYoxXTzZx9nytnAat5ciSeZutA0 HT+A== X-Gm-Message-State: ALoCoQkkR/mdmikdjrfut/DbJ2G/meeNu2rPVN4oUrd/A69x/53i2R1uWs3DLaoeJAt8LA3X+lhV X-Received: by 10.112.51.68 with SMTP id i4mr8210365lbo.13.1429571759192; Mon, 20 Apr 2015 16:15:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.104 with SMTP id j8ls730474laj.106.gmail; Mon, 20 Apr 2015 16:15:59 -0700 (PDT) X-Received: by 10.112.144.69 with SMTP id sk5mr17460785lbb.6.1429571759021; Mon, 20 Apr 2015 16:15:59 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id le4si38653lac.158.2015.04.20.16.15.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 16:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbuc2 with SMTP id uc2so142632830lbb.2 for ; Mon, 20 Apr 2015 16:15:58 -0700 (PDT) X-Received: by 10.112.204.72 with SMTP id kw8mr17685273lbc.88.1429571758619; Mon, 20 Apr 2015 16:15:58 -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 l1csp297947lbt; Mon, 20 Apr 2015 16:15:57 -0700 (PDT) X-Received: by 10.70.33.33 with SMTP id o1mr23149911pdi.132.1429571756647; Mon, 20 Apr 2015 16:15:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si112992pdc.102.2015.04.20.16.15.55; Mon, 20 Apr 2015 16:15:56 -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 S1754659AbbDTXPv (ORCPT + 26 others); Mon, 20 Apr 2015 19:15:51 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36220 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754601AbbDTXPt (ORCPT ); Mon, 20 Apr 2015 19:15:49 -0400 Received: by pabsx10 with SMTP id sx10so221435977pab.3 for ; Mon, 20 Apr 2015 16:15:49 -0700 (PDT) X-Received: by 10.67.3.105 with SMTP id bv9mr31665398pad.149.1429571749093; Mon, 20 Apr 2015 16:15:49 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id mx5sm42489pdb.75.2015.04.20.16.15.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Apr 2015 16:15:48 -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 6/8] selftest/x86: have no dependency on all when cross building Date: Mon, 20 Apr 2015 16:15:43 -0700 Message-Id: <1429571743-27740-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.170 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 Signed-off-by: Tyler Baker --- tools/testing/selftests/x86/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index be93945..a5ca38b 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -7,15 +7,21 @@ 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 +else +# No dependency on all when cross building +all: +endif all_32: check_build32 $(BINARIES_32)