From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v4] kbuild: asm-generic support Date: Wed, 27 Apr 2011 21:52:37 +0200 Message-ID: <201104272152.37889.arnd@arndb.de> References: <20110108130302.GA21698@merkur.ravnborg.org> <20110427194225.GA6551@merkur.ravnborg.org> <20110427194647.GA6621@merkur.ravnborg.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110427194647.GA6621@merkur.ravnborg.org> Sender: linux-kbuild-owner@vger.kernel.org To: Sam Ravnborg Cc: Guan Xuetao , Michal Marek , 'lkml' , 'linux-kbuild' , 'linux arch' , 'Guan Xuetao' , Remis Lima Baima List-Id: linux-arch.vger.kernel.org On Wednesday 27 April 2011 21:46:47 Sam Ravnborg wrote: > From 8546953f0c87d6b1c37c25df73511780c86ad89d Mon Sep 17 00:00:00 2001 > From: Sam Ravnborg > Date: Fri, 22 Apr 2011 14:45:13 +0200 > Subject: [PATCH] kbuild: asm-generic support > > There is an increasing amount of header files > shared between individual architectures in asm-generic. > To avoid a lot of dummy wrapper files that just > include the corresponding file in asm-generic provide > some basic support in kbuild for this. > > With the following patch an architecture can maintain > a list of files in the file arch/$(ARCH)/include/asm/Kbuild > > To use a generic file just add: > > generic-y += > > For each file listed kbuild will generate the necessary > wrapper in arch/$(ARCH)/include/generated/asm. > > When installing userspace headers a wrapper is likewise created. > > The original inspiration for this came from the unicore32 > patchset - although a different method is used. > > The patch includes several improvements from Arnd Bergmann. > Michael Marek contributed Makefile.asm-generic. > > Signed-off-by: Sam Ravnborg > Acked-by: Guan Xuetao > Tested-by: Guan Xuetao > Cc: Arnd Bergmann Acked-by: Arnd Bergmann I'm glad to see this finally happen. Maybe you can mention Remis Baima in the changelog as well, he did an earlier implementation back in the days when some architectures were still using include/asm-${ARCH}, which IIRC did not get merged because of the complexity associated with that. Arnd