kbuild: rename built-in.o to built-in.a
authorNicholas Piggin <npiggin@gmail.com>
Sat, 10 Feb 2018 14:25:04 +0000 (00:25 +1000)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:01:19 +0000 (02:01 +0900)
commitf49821ee32b76b1a356fab17316eb62430182ecf
tree289c979dcb971c009d3c858851af50a55be8a3e4
parent6358d6e8b9846c2ff6fd1d4ad2809145635dd813
kbuild: rename built-in.o to built-in.a

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@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
12 files changed:
Documentation/kbuild/makefiles.txt
Documentation/process/changes.rst
Makefile
arch/blackfin/kernel/bfin_ksyms.c
arch/powerpc/kernel/Makefile
drivers/s390/Makefile
lib/Kconfig.debug
scripts/Makefile.build
scripts/Makefile.lib
scripts/link-vmlinux.sh
scripts/namespace.pl
usr/initramfs_data.S