From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757952Ab1D0Tm3 (ORCPT ); Wed, 27 Apr 2011 15:42:29 -0400 Received: from pfepb.post.tele.dk ([195.41.46.236]:35808 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753672Ab1D0Tm1 (ORCPT ); Wed, 27 Apr 2011 15:42:27 -0400 Date: Wed, 27 Apr 2011 21:42:25 +0200 From: Sam Ravnborg To: Guan Xuetao Cc: "'Michal Marek'" , "'lkml'" , "'linux-kbuild'" , "'linux arch'" , "'Arnd Bergmann'" , "'Guan Xuetao'" Subject: Re: [PATCH v3] kbuild: asm-generic support Message-ID: <20110427194225.GA6551@merkur.ravnborg.org> References: <20110108130302.GA21698@merkur.ravnborg.org> <20110109192707.GA12387@merkur.ravnborg.org> <20110109192907.GA12403@merkur.ravnborg.org> <4D2F24CD.5040101@suse.cz> <20110113170131.GA28377@merkur.ravnborg.org> <20110114144354.GA23611@sepie.suse.cz> <20110422155349.GA9579@merkur.ravnborg.org> <008401cc02e8$415af510$c410df30$@mprc.pku.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <008401cc02e8$415af510$c410df30$@mprc.pku.edu.cn> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > @@ -349,7 +349,8 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage > > > > # Use LINUXINCLUDE when you must reference the include/ directory. > > # Needed to be compatible with the O= option > > -LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ > > +LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \ > > + -Iarch/$(hdr-arch)/include/generated -Iinclude \ > I think $(srctree) is necessary before new include-dir. > The generated files are located in objtree - because they are generated. So $(srctree) would be wrong here. > > +PHONY += asm-generic > > +asm-generic: > > + $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic obj=arch/$(SRCARCH)/include/generated/asm > Too long fixed > > _dst := $(if $(destination-y),$(destination-y),$(_dst)) > > +_src := $(srctree)/$(obj) > _src is only used one time fixed > > + > Additional empty line fixed > > + done; \ > > touch $@ > > > > + > Additional empty line fixed > > targets += $(install-file) > > -$(install-file): scripts/headers_install.pl $(input-files) FORCE > > +$(install-file): scripts/headers_install.pl \ > > + $(input-files) FORCE > The same content fixed > I have tested on UniCore32, and it works well. I take this as "Acked-by" and "Tested-by". Thanks for feedback - new version to be posted shortly. Sam