From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756137Ab1IHXfB (ORCPT ); Thu, 8 Sep 2011 19:35:01 -0400 Received: from relais.videotron.ca ([24.201.245.36]:49605 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755210Ab1IHXe4 (ORCPT ); Thu, 8 Sep 2011 19:34:56 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN; CHARSET=US-ASCII Date: Thu, 08 Sep 2011 16:33:00 -0400 (EDT) From: Nicolas Pitre To: Arnaud Lacombe Cc: linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lkml Subject: Re: [RFC] Kbuild: allow code re-use across different directories In-reply-to: Message-id: References: <1313800642-32418-1-git-send-email-lacombar@gmail.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Sep 2011, Arnaud Lacombe wrote: > you missed: > > # Make sure files are removed during clean > -extra-y += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S > +extra-y += piggy.gzip piggy.lzo piggy.lzma > > This confused make. Well... that was suttle. So yes, your patch may certainly be useful to a couple cases, and it works fine for this lib1func.S. It doesn't help me much in the following situation though. What I actually want to achieve is to compile arch/arm/boot/compressed/fdt_rw.o from scripts/dtc/libfdt/fdt_rw.c, however I want it to include my local version of libfdt_env.h rather than scripts/dtc/libfdt/libfdt_env.h. I still haven't found a way to convince gcc to do that. Nicolas From mboxrd@z Thu Jan 1 00:00:00 1970 From: nico@fluxnic.net (Nicolas Pitre) Date: Thu, 08 Sep 2011 16:33:00 -0400 (EDT) Subject: [RFC] Kbuild: allow code re-use across different directories In-Reply-To: References: <1313800642-32418-1-git-send-email-lacombar@gmail.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 8 Sep 2011, Arnaud Lacombe wrote: > you missed: > > # Make sure files are removed during clean > -extra-y += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S > +extra-y += piggy.gzip piggy.lzo piggy.lzma > > This confused make. Well... that was suttle. So yes, your patch may certainly be useful to a couple cases, and it works fine for this lib1func.S. It doesn't help me much in the following situation though. What I actually want to achieve is to compile arch/arm/boot/compressed/fdt_rw.o from scripts/dtc/libfdt/fdt_rw.c, however I want it to include my local version of libfdt_env.h rather than scripts/dtc/libfdt/libfdt_env.h. I still haven't found a way to convince gcc to do that. Nicolas