From: Masahiro Yamada Date: Tue, 15 Apr 2014 05:47:40 +0000 (+0900) Subject: kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS X-Git-Tag: v2014.07-rc1~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e6256d0770f5f2bda80e9ce1aa8dd404de4bcdf;p=u-boot kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS Like Linux Kernel, this commit provides environment variables KCPPFLAGS, KAFLAGS and KCFLAGS, which are useful to pass additional options. Signed-off-by: Masahiro Yamada --- diff --git a/Makefile b/Makefile index 970a219c91..0191869040 100644 --- 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 := \