]> git.sur5r.net Git - u-boot/commitdiff
kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 15 Apr 2014 05:47:40 +0000 (14:47 +0900)
committerTom Rini <trini@ti.com>
Fri, 18 Apr 2014 15:43:36 +0000 (11:43 -0400)
Like Linux Kernel, this commit provides environment variables
KCPPFLAGS, KAFLAGS and KCFLAGS, which are useful to pass
additional options.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile

index 970a219c91b42d69534dfefffc735315874a5391..01918690407736320645b8ef9d91a32ebae60800 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -584,6 +584,11 @@ endif
 
 export CONFIG_SYS_TEXT_BASE
 
+# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
+KBUILD_CPPFLAGS += $(KCPPFLAGS)
+KBUILD_AFLAGS += $(KAFLAGS)
+KBUILD_CFLAGS += $(KCFLAGS)
+
 # Use UBOOTINCLUDE when you must reference the include/ directory.
 # Needed to be compatible with the O= option
 UBOOTINCLUDE    := \