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: 6143301 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 63D7A9F1BE for ; Wed, 1 Apr 2015 23:24:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89B0120351 for ; Wed, 1 Apr 2015 23:24:53 +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 B409D20306 for ; Wed, 1 Apr 2015 23:24:52 +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 1YdRwm-0007sR-Ub; Wed, 01 Apr 2015 23:21:20 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YdRwO-0007bh-L7 for linux-arm-kernel@lists.infradead.org; Wed, 01 Apr 2015 23:20:57 +0000 Received: by pddn5 with SMTP id n5so69818406pdd.2 for ; Wed, 01 Apr 2015 16:20:35 -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:in-reply-to :references; bh=YpDifYe0GFCPdOdDHnIcJSGERJjO1DJ2M4Q7tVquek8=; b=hbT058X54Q/VupHVYFCFk0CQEKZ5LCFnpvf67tOHDrqkwx4wnmewAg4gH44VFfJqwC 7XKVJk+ZAmvXtIVFVhbMSa+h+vMgQ+DD3a5yrZatbtBkDXqE8M79vlYFZj4jciE0qhNv QxZb/G0Dsb4447MUI4907J1VMGWC8L1HLZT4CWoIkB9vl86bE2xjxtQ9LBIrkrO/eVK7 fuHXYe4TMACu6VtDI2wY/AttixqClPXQ499ogm7TnhwcL4YDk02tVPklpQlqD7r2rp96 II9XCIdwgAj6OwSjUVmmK1aA8uhkNa/pcsXcIkKtWnxYjHR9EemlisDV5lbzr9V+LHif iTpg== X-Gm-Message-State: ALoCoQltjTo8CjqCbP8owKlAVqZg2BoTex5zQ5EE3XRkLeCXzC+qH/K0BgPm3/zMCIubwdMp+ZYp 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150401_162056_751139_8FC51B97 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kevin Hilman , Michael Ellerman , Tyler Baker , linux-kernel@vger.kernel.org, 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 Use the CC variable instead of hard coding gcc and include lib.mk. Signed-off-by: Tyler Baker Acked-by: Shuah Khan --- 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