From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:36517 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbcHQJFG (ORCPT ); Wed, 17 Aug 2016 05:05:06 -0400 Subject: Re: [PATCH 3/6] kbuild: add arch specific post-link pass References: <1470910580-18458-1-git-send-email-npiggin@gmail.com> <1470910580-18458-4-git-send-email-npiggin@gmail.com> <57B2DBA1.6090304@suse.com> <20160817144322.4067391f@roar.ozlabs.ibm.com> From: Michal Marek Message-ID: Date: Wed, 17 Aug 2016 11:05:02 +0200 MIME-Version: 1.0 In-Reply-To: <20160817144322.4067391f@roar.ozlabs.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Nicholas Piggin Cc: linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org, Sam Ravnborg , Stephen Rothwell , Arnd Bergmann , Nicolas Pitre , Segher Boessenkool , Alan Modra On 2016-08-17 06:43, Nicholas Piggin wrote: > On Tue, 16 Aug 2016 11:23:45 +0200 > Michal Marek wrote: > >> Dne 11.8.2016 v 12:16 Nicholas Piggin napsal(a): >>> $(modules): %.ko :%.o %.mod.o FORCE >>> $(call if_changed,ld_ko_o) >>> +ifdef CONFIG_BUILD_ARCH_POSTLINK >>> + $(Q)$(MAKE) -f $(srctree)/arch/$(SRCARCH)/Makefile.postlink $@ >>> +endif >> >> Why not simply branch off the existence of arch/*/Makefile.postlink and >> drop the kconfig option? > > I just did not think of it. That does seem nicer, thanks. What do > you think of this? [...] This looks cleaner, thanks! Michal