[U-Boot] [PATCH v6 18/20] Adjust dependency rules to permit per-file flags

Wolfgang Denk wd at denx.de
Mon Oct 17 22:51:14 CEST 2011


Dear Simon Glass,

In message <1318270953-32482-19-git-send-email-sjg at chromium.org> you wrote:
> The dependency rules are currently done in a shell 'for' loop. This does not
> permit Makefile variables to adjust preprocessor flags as is done with normal
> compile flags, using the CFLAGS_path/file.o syntax.
> 
> This change moves the dependency generation into the Makefile itself, and
> permits a CPPFLAGS_path/file.o to adjust preprocessor flags on a file or
> directory basis.
> 
> The CPPFLAGS_... variable is also folded into CFLAGS during the build.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v3:
> - Change U-Boot's dependency generation to permit per-file flags
> 
> Changes in v4:
> - 'Improve' dependency generation to deal with source files containing paths
> - Make sure that clobber target removes all dependency files
> 
> Changes in v5:
> - Fix dependency output to include $(obj) for out-of-tree builds
> 
>  .gitignore |    2 +-
>  Makefile   |    2 +-
>  config.mk  |    7 +++++++
>  rules.mk   |   44 +++++++++++++++++++++++++++++++++-----------
>  4 files changed, 42 insertions(+), 13 deletions(-)

Applied, thanks.

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
Some programming languages manage to  absorb  change,  but  withstand
progress.          -- Epigrams in Programming, ACM SIGPLAN Sept. 1982


More information about the U-Boot mailing list