Commit 215bb1c14749591d2ac486682fad68fffc1c6bdb

Authored by Daniel Schwierzeck
Committed by Tom Rini
1 parent bf8f4c4400

README: add doc for how to supply user specific compiler flags to Kbuild

Probably not all users are aware of this possibility, thus add a
pointer to the README. Also add a useful example.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

... ... @@ -3719,6 +3719,11 @@
3719 3719 Note that the command line "O=" setting overrides the KBUILD_OUTPUT environment
3720 3720 variable.
3721 3721  
  3722 +User specific CPPFLAGS, AFLAGS and CFLAGS can be passed to the compiler by
  3723 +setting the according environment variables KCPPFLAGS, KAFLAGS and KCFLAGS.
  3724 +For example to treat all compiler warnings as errors:
  3725 +
  3726 + make KCFLAGS=-Werror
3722 3727  
3723 3728 Please be aware that the Makefiles assume you are using GNU make, so
3724 3729 for instance on NetBSD you might need to use "gmake" instead of