From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752568Ab1H3Eg0 (ORCPT ); Tue, 30 Aug 2011 00:36:26 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:56395 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752248Ab1H3EgY (ORCPT ); Tue, 30 Aug 2011 00:36:24 -0400 MIME-Version: 1.0 In-Reply-To: References: <1313800642-32418-1-git-send-email-lacombar@gmail.com> Date: Tue, 30 Aug 2011 00:36:24 -0400 Message-ID: Subject: Re: [RFC] Kbuild: allow code re-use across different directories From: Arnaud Lacombe To: Nicolas Pitre Cc: linux-kbuild@vger.kernel.org, lkml , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Aug 30, 2011 at 12:32 AM, Nicolas Pitre wrote: > On Mon, 29 Aug 2011, Arnaud Lacombe wrote: > >> On Fri, Aug 19, 2011 at 8:37 PM, Arnaud Lacombe wrote: >> > With the attached patch, we would do: >> > >> > arch/foo/boot/Makefile: >> > LDFLAGS_fancy.o := -DPANTS=30 >> > obj-y += fancy.o >> > vpath-y += $(srctree)/arch/foo/lib >> > >> > and let GNU make do the job. >> > >> Nicolas, I guess you were the one who was interested for a generic way >> to do such code re-use, did you had any chance to test the quoted >> patch ? > > I actually missed the original post (I wasn't in CC) so I didn't test it. > Will try to do so ASAP. > Sorry for the miss, I thought linux-arm-kernel@ would catch enough people :) - Arnaud From mboxrd@z Thu Jan 1 00:00:00 1970 From: lacombar@gmail.com (Arnaud Lacombe) Date: Tue, 30 Aug 2011 00:36:24 -0400 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 Hi, On Tue, Aug 30, 2011 at 12:32 AM, Nicolas Pitre wrote: > On Mon, 29 Aug 2011, Arnaud Lacombe wrote: > >> On Fri, Aug 19, 2011 at 8:37 PM, Arnaud Lacombe wrote: >> > With the attached patch, we would do: >> > >> > arch/foo/boot/Makefile: >> > LDFLAGS_fancy.o := -DPANTS=30 >> > obj-y += fancy.o >> > vpath-y += $(srctree)/arch/foo/lib >> > >> > and let GNU make do the job. >> > >> Nicolas, I guess you were the one who was interested for a generic way >> to do such code re-use, did you had any chance to test the quoted >> patch ? > > I actually missed the original post (I wasn't in CC) so I didn't test it. > Will try to do so ASAP. > Sorry for the miss, I thought linux-arm-kernel@ would catch enough people :) - Arnaud