From patchwork Wed Apr 1 23:20:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 46671 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 52ED72159A for ; Wed, 1 Apr 2015 23:21:05 +0000 (UTC) Received: by wgua4 with SMTP id a4sf13267821wgu.2 for ; Wed, 01 Apr 2015 16:21:04 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=8B9WNlpyz0pmIHDDnDTzK0JVLq7BP3EcYfRtwa1Q2zo=; b=ltxqcZfRqjSyYfUezKUvj3VuwGfQSsCUSEWHk41Kr7bKZIeym3INvNVjdGZbmIgChg 7EJgsAIBJhCTaf8a6tfqjw9QaixFXy4O2gGUEvmhfN7D54+dbvRcfUTXVy/UC3nTa/R/ x7rQoN55uyavuKyV0D2qUjvGYcmiiuDom0S4OVvxgou4T19IMJqlLp6zV1RQYZomn4OO C/wuS9hJw+R1Uh8rCcQnr3YQtr1rK0OvGvLn2SxsaWozF9PW1oA5YTtwyJb5QLE+aCHK N4AveAfnnpt5My4IFIHLFmSRdGIWi8OfrDQQiQ88xF1tFTHqiBCQN5fO8d3iPSKU35pC qagg== X-Gm-Message-State: ALoCoQm/CYO273CuKSCPSoykvK3e5svpCdU7TlKeSHYzqYxLTKOPUy0DVitVMGyNp9/4ZfxlI92r X-Received: by 10.112.180.74 with SMTP id dm10mr10278723lbc.11.1427930464663; Wed, 01 Apr 2015 16:21:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.103 with SMTP id s7ls123228lag.105.gmail; Wed, 01 Apr 2015 16:21:04 -0700 (PDT) X-Received: by 10.152.23.3 with SMTP id i3mr11345789laf.23.1427930464347; Wed, 01 Apr 2015 16:21:04 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id o10si2749502laj.121.2015.04.01.16.21.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 16:21:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbzk7 with SMTP id zk7so31346206lbb.0 for ; Wed, 01 Apr 2015 16:21:04 -0700 (PDT) X-Received: by 10.112.141.202 with SMTP id rq10mr38106790lbb.88.1427930464224; Wed, 01 Apr 2015 16:21:04 -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.57.201 with SMTP id k9csp972160lbq; Wed, 1 Apr 2015 16:21:03 -0700 (PDT) X-Received: by 10.68.163.101 with SMTP id yh5mr82659469pbb.92.1427930462529; Wed, 01 Apr 2015 16:21:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wl5si4839836pab.105.2015.04.01.16.21.01; Wed, 01 Apr 2015 16:21:02 -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 S1752849AbbDAXUk (ORCPT + 27 others); Wed, 1 Apr 2015 19:20:40 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35252 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbbDAXUg (ORCPT ); Wed, 1 Apr 2015 19:20:36 -0400 Received: by patj18 with SMTP id j18so65906132pat.2 for ; Wed, 01 Apr 2015 16:20:35 -0700 (PDT) X-Received: by 10.68.68.197 with SMTP id y5mr10767379pbt.108.1427930435547; Wed, 01 Apr 2015 16:20:35 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id qz3sm3210197pab.13.2015.04.01.16.20.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 16:20:34 -0700 (PDT) From: Tyler Baker To: Shuah Khan Cc: 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 2/6] selftest/kdbus: enable cross compilation Date: Wed, 1 Apr 2015 16:20:16 -0700 Message-Id: <1427930420-4762-3-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427930420-4762-1-git-send-email-tyler.baker@linaro.org> References: <1427930420-4762-1-git-send-email-tyler.baker@linaro.org> 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.176 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: , Use the CC variable instead of hard coding gcc and include lib.mk. Signed-off-by: Tyler Baker --- tools/testing/selftests/kdbus/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kdbus/Makefile b/tools/testing/selftests/kdbus/Makefile index f6cfab2..de8242f 100644 --- a/tools/testing/selftests/kdbus/Makefile +++ b/tools/testing/selftests/kdbus/Makefile @@ -33,11 +33,13 @@ OBJS= \ all: kdbus-test +include ../lib.mk + %.o: %.c - gcc $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ kdbus-test: $(OBJS) - gcc $(CFLAGS) $^ $(LDLIBS) -o $@ + $(CC) $(CFLAGS) $^ $(LDLIBS) -o $@ run_tests: ./kdbus-test --tap