public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS
@ 2014-04-15  5:47 Masahiro Yamada
  2014-04-18 21:02 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2014-04-15  5:47 UTC (permalink / raw)
  To: u-boot

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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 970a219..0191869 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    := \
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS
  2014-04-15  5:47 [U-Boot] [PATCH] kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS Masahiro Yamada
@ 2014-04-18 21:02 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-04-18 21:02 UTC (permalink / raw)
  To: u-boot

On Tue, Apr 15, 2014 at 02:47:40PM +0900, Masahiro Yamada wrote:

> 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>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/c42e2006/attachment.pgp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-18 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15  5:47 [U-Boot] [PATCH] kbuild: add user-supplied CPPFLAGS, AFLAGS and CFLAGS Masahiro Yamada
2014-04-18 21:02 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox