kbuild: prefix compiler flag variables with KBUILD_
In old days, Linux also used to use well-known variables such CFLAGS,
CPPFLAGS, etc.

They were prefixed with KBUILD_ presumably for preventing users from
overriding them accidentally.

Rename as follows:
  CFLAGS          ->  KBUILD_CFLAGS
  AFLAGS          ->  KBUILD_AFLAGS
  CPPFLAGS        ->  KBUILD_CPPFLAGS
  LDFLAGS         ->  KBUILD_LDFLAGS
  HOSTCFLAGS      ->  KBUILD_HOSTCFLAGS
  HOSTCXXFLAGS    ->  KBUILD_HOSTCXXFLAGS
  HOSTLDFLAGS     ->  KBUILD_HOSTLDFLAGS
  HOST_LOADLIBES  ->  KBUILD_HOSTLDLIBS

HOSTCFLAGS, HOSTCXXFLAGS, HOSTLDFLAGS, HOSTLDLIBS are re-used to allow
users to pass-in additional flags to the host compiler.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 331eeca commit c6f95bc715c4dad2e189b8b6fcb29963c4cec1cd
@Masahiro Yamada Masahiro Yamada authored on 22 Apr 2020
Sascha Hauer committed on 27 Apr 2020
Showing 19 changed files
View
Makefile
View
arch/arm/Makefile
View
arch/kvx/Makefile
View
arch/mips/Makefile
View
arch/mips/pbl/Makefile
View
arch/nios2/Makefile
View
arch/openrisc/Makefile
View
arch/ppc/Makefile
View
arch/riscv/Makefile
View
arch/sandbox/Makefile
View
arch/sandbox/os/Makefile
View
arch/x86/Makefile
View
arch/x86/boot/Makefile
View
scripts/Kbuild.include
View
scripts/Makefile
View
scripts/Makefile.build
View
scripts/Makefile.host
View
scripts/Makefile.lib
View
scripts/Makefile.modpost