Return-Path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:45236 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeBSHEt (ORCPT ); Mon, 19 Feb 2018 02:04:49 -0500 Received: by mail-pg0-f68.google.com with SMTP id e11so5536284pgq.12 for ; Sun, 18 Feb 2018 23:04:49 -0800 (PST) Date: Mon, 19 Feb 2018 17:04:33 +1000 From: Nicholas Piggin Subject: Re: [PATCH 2/2] kbuild: rename built-in.o to built-in.a Message-ID: <20180219170433.5def7c6a@roar.ozlabs.ibm.com> In-Reply-To: <20180218171005.GA20286@ravnborg.org> References: <20180210142504.29890-1-npiggin@gmail.com> <20180210142504.29890-3-npiggin@gmail.com> <20180218171005.GA20286@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Sam Ravnborg Cc: linux-kbuild@vger.kernel.org, Masahiro Yamada , Michal Marek On Sun, 18 Feb 2018 18:10:05 +0100 Sam Ravnborg wrote: > Hi Nicholas. > > On Sun, Feb 11, 2018 at 12:25:04AM +1000, Nicholas Piggin wrote: > > Incremental linking is gone, so rename built-in.o to built-in.a, which > > is the usual extension for archive files. > > > > This patch does two things, first is a simple search/replace: > > > > git grep -l 'built-in\.o' | xargs sed -i 's/built-in\.o/built-in\.a/g' > > > > The second is to invert nesting of nested text manipulations to avoid > > filtering built-in.a out from libs-y2: > > > > -libs-y2 := $(filter-out %.a, $(patsubst %/, %/built-in.a, $(libs-y))) > > +libs-y2 := $(patsubst %/, %/built-in.a, $(filter-out %.a, $(libs-y))) > > > > Signed-off-by: Nicholas Piggin > > Renaming is welcome - .o files should not list files. > Acked-by: Sam Ravnborg > > Did you check that make clean / make mrproper continue to > do the right thing? > > I recalled we had "*.o" hardcoded somewhere but grep > did not reveal any places that should matter. > So likely it does. Yes it seemed to just work. I guess .a files are already removed in subdirectories. built-in.o was hard coded in the final link cleanup, but the rename catches that. Thanks, Nick