kbuild: rename LDFLAGS to KBUILD_LDFLAGS
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Aug 2018 23:20:39 +0000 (08:20 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Aug 2018 23:22:08 +0000 (08:22 +0900)
commitd503ac531a5246e4d910f971b213807fea925956
tree25e07f13512496598b959eefc238f169aaba9e59
parent87a32e624037e8b6e8538ed864dc9994853acc4d
kbuild: rename LDFLAGS to KBUILD_LDFLAGS

Commit a0f97e06a43c ("kbuild: enable 'make CFLAGS=...' to add
additional options to CC") renamed CFLAGS to KBUILD_CFLAGS.

Commit 222d394d30e7 ("kbuild: enable 'make AFLAGS=...' to add
additional options to AS") renamed AFLAGS to KBUILD_AFLAGS.

Commit 06c5040cdb13 ("kbuild: enable 'make CPPFLAGS=...' to add
additional options to CPP") renamed CPPFLAGS to KBUILD_CPPFLAGS.

For some reason, LDFLAGS was not renamed.

Using a well-known variable like LDFLAGS may result in accidental
override of the variable.

Kbuild generally uses KBUILD_ prefixed variables for the internally
appended options, so here is one more conversion to sanitize the
naming convention.

I did not touch Makefiles under tools/ since the tools build system
is a different world.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
29 files changed:
Makefile
arch/arc/Makefile
arch/arm/Makefile
arch/arm64/Makefile
arch/c6x/Makefile
arch/h8300/Makefile
arch/hexagon/Makefile
arch/m68k/Makefile
arch/microblaze/Makefile
arch/mips/Makefile
arch/mips/boot/compressed/Makefile
arch/mips/lasat/image/Makefile
arch/nds32/Makefile
arch/powerpc/Makefile
arch/riscv/Makefile
arch/s390/Makefile
arch/sh/Makefile
arch/sparc/Makefile
arch/um/Makefile
arch/x86/Makefile
arch/x86/Makefile.um
arch/x86/boot/compressed/Makefile
arch/xtensa/Makefile
arch/xtensa/boot/boot-elf/Makefile
scripts/Kbuild.include
scripts/Makefile.build
scripts/Makefile.lib
scripts/Makefile.modpost
scripts/link-vmlinux.sh