Message ID | 20180126153107.7376-2-daniel.schwierzeck@gmail.com |
---|---|
State | Accepted |
Commit | 215bb1c14749591d2ac486682fad68fffc1c6bdb |
Delegated to: | Tom Rini |
Headers | show |
Series | Add support for treating compiler warnings as errors | expand |
On Fri, Jan 26, 2018 at 04:31:04PM +0100, Daniel Schwierzeck wrote: > 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> Applied to u-boot/master, thanks!
diff --git a/README b/README index b53ea7dfe3..b055ae7ef2 100644 --- a/README +++ b/README @@ -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
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> --- Changes in v2: - new patch README | 5 +++++ 1 file changed, 5 insertions(+)