On Sun, 18 Feb 2018 18:10:05 +0100 Sam Ravnborg <sam@xxxxxxxxxxxx> 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 <npiggin@xxxxxxxxx> > > Renaming is welcome - .o files should not list files. > Acked-by: Sam Ravnborg <sam@xxxxxxxxxxxx> > > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html