[U-Boot-Users] [PATCH] Allow per file CFLAGS and AFLAGS

Wolfgang Denk wd at denx.de
Sun Jul 6 00:32:02 CEST 2008


In message <Pine.LNX.4.64.0805291257420.31402 at blarg.am.freescale.net> you wrote:
> Mimic the linux kernel build system's ability to have per source file
> CFLAGS or AFLAGS.  In the makefile you can now do:
> 
> CFLAGS_<file>.o += MY_FLAGS_OPTIONS
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>

I'm not sure why this would be needed.  I tend to think that using a
homogenuous set of compiler flags for all source fines is a good
thing. If single source files need different handling,we should rather
think why this is the case and probably fix the cause instead of
doctoring with the symptoms or finally giving in and twek compiler
options until we don't see the warnings / errors any more.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A man is not complete until he is married -- then he is finished.




More information about the U-Boot mailing list