diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2018-01-26 16:31:04 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-02-04 22:55:34 -0500 |
commit | 215bb1c14749591d2ac486682fad68fffc1c6bdb (patch) | |
tree | 64c5df6f2ba1178ca5e641a625fd3b023fa0b147 /README | |
parent | bf8f4c4400e3c45acf0773ce381b70f5625be724 (diff) | |
download | u-boot-215bb1c14749591d2ac486682fad68fffc1c6bdb.zip u-boot-215bb1c14749591d2ac486682fad68fffc1c6bdb.tar.gz u-boot-215bb1c14749591d2ac486682fad68fffc1c6bdb.tar.bz2 |
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>
Diffstat (limited to 'README')
-rw-r--r-- | README | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3719,6 +3719,11 @@ this behavior and build U-Boot to some external directory: Note that the command line "O=" setting overrides the KBUILD_OUTPUT environment variable. +User specific CPPFLAGS, AFLAGS and CFLAGS can be passed to the compiler by +setting the according environment variables KCPPFLAGS, KAFLAGS and KCFLAGS. +For example to treat all compiler warnings as errors: + + make KCFLAGS=-Werror Please be aware that the Makefiles assume you are using GNU make, so for instance on NetBSD you might need to use "gmake" instead of |