From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754817AbcIGPGp (ORCPT ); Wed, 7 Sep 2016 11:06:45 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38111 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393AbcIGPGm (ORCPT ); Wed, 7 Sep 2016 11:06:42 -0400 Subject: Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile To: Jorge Ramirez-Ortiz , 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: Daniel Thompson Message-ID: Date: Wed, 7 Sep 2016 16:06:39 +0100 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: <1473258496-14565-1-git-send-email-jorge.ramirez-ortiz@linaro.org> 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 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? The built in rules should already honour both these variables (and more besides). Daniel.