kbuild: rename LDFLAGS to KBUILD_LDFLAGS
Commit a0f97e06 ("kbuild: enable 'make CFLAGS=...' to add additional options to CC") renamed CFLAGS to KBUILD_CFLAGS. Commit 222d394d ("kbuild: enable 'make AFLAGS=...' to add additional options to AS") renamed AFLAGS to KBUILD_AFLAGS. Commit 06c5040c ("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>
Showing
- Makefile 3 additions, 3 deletionsMakefile
- arch/arc/Makefile 1 addition, 1 deletionarch/arc/Makefile
- arch/arm/Makefile 2 additions, 2 deletionsarch/arm/Makefile
- arch/arm64/Makefile 2 additions, 2 deletionsarch/arm64/Makefile
- arch/c6x/Makefile 1 addition, 2 deletionsarch/c6x/Makefile
- arch/h8300/Makefile 1 addition, 1 deletionarch/h8300/Makefile
- arch/hexagon/Makefile 1 addition, 3 deletionsarch/hexagon/Makefile
- arch/m68k/Makefile 1 addition, 1 deletionarch/m68k/Makefile
- arch/microblaze/Makefile 2 additions, 2 deletionsarch/microblaze/Makefile
- arch/mips/Makefile 1 addition, 1 deletionarch/mips/Makefile
- arch/mips/boot/compressed/Makefile 1 addition, 1 deletionarch/mips/boot/compressed/Makefile
- arch/mips/lasat/image/Makefile 1 addition, 1 deletionarch/mips/lasat/image/Makefile
- arch/nds32/Makefile 2 additions, 2 deletionsarch/nds32/Makefile
- arch/powerpc/Makefile 3 additions, 3 deletionsarch/powerpc/Makefile
- arch/riscv/Makefile 2 additions, 2 deletionsarch/riscv/Makefile
- arch/s390/Makefile 1 addition, 1 deletionarch/s390/Makefile
- arch/sh/Makefile 2 additions, 2 deletionsarch/sh/Makefile
- arch/sparc/Makefile 2 additions, 2 deletionsarch/sparc/Makefile
- arch/um/Makefile 1 addition, 1 deletionarch/um/Makefile
- arch/x86/Makefile 2 additions, 2 deletionsarch/x86/Makefile
Loading
Please register or sign in to comment