From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938771AbcIGPYt (ORCPT ); Wed, 7 Sep 2016 11:24:49 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:33301 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935768AbcIGPYk (ORCPT ); Wed, 7 Sep 2016 11:24:40 -0400 Subject: Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile To: Daniel Thompson , broonie@kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <1473258496-14565-1-git-send-email-jorge.ramirez-ortiz@linaro.org> From: Jorge Ramirez Message-ID: <9eec4153-d4be-21ab-4f97-2c545c3cbbf8@linaro.org> Date: Wed, 7 Sep 2016 17:24:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/2016 05:06 PM, Daniel Thompson wrote: > On 07/09/16 15:28, Jorge Ramirez-Ortiz wrote: >> Signed-off-by: Jorge Ramirez-Ortiz >> --- >> tools/spi/Makefile | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/tools/spi/Makefile b/tools/spi/Makefile >> index cd0db62..d1845b0 100644 >> --- a/tools/spi/Makefile >> +++ b/tools/spi/Makefile >> @@ -1,4 +1,8 @@ >> +CC = $(CROSS_COMPILE)gcc >> + >> all: spidev_test spidev_fdx >> >> +%: %.c >> + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< > > What is this extra rule for? yes you are right. this one is not required. only setting CC. sending v2 > > The built in rules should already honour both these variables (and > more besides). > > > Daniel.