Change directory-specific CFLAGS to use full path
authorPeter Tyser <ptyser@xes-inc.com>
Tue, 13 Apr 2010 03:28:03 +0000 (22:28 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 13 Apr 2010 07:13:00 +0000 (09:13 +0200)
commit89f39e177e7b0152aa1d3152baa25d986e36cdcf
tree038889f28a7a52528dbf1d73c5394b98e6773709
parent03b7004ddafc70d83904d790abaa50843868130e
Change directory-specific CFLAGS to use full path

Previously, a specific file or directory could be compiled with custom
CFLAGS by adding a Makefile variable such as:
  CFLAGS_dlmalloc.o = <custom flags for common/dlmalloc.c>
or
  CFLAGS_lib = <custom flags for lib directory>

This method breaks down once multiple files or directories share the
same path.  Eg FLAGS_fileA = <custom flags> would incorrectly result in
both dir1/fileA.c and dir2/fileA.c being compiled with <custom flags>.

This change allows finer grained control which we need once we move
lib_$ARCH to arch/$ARCH/lib/ and lib_generic/ to lib/.  Without this
change all lib/ directories would share the same custom CFLAGS.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
20 files changed:
board/bf518f-ezbrd/config.mk
board/bf526-ezbrd/config.mk
board/bf527-ezkit/config.mk
board/bf533-ezkit/config.mk
board/bf533-stamp/config.mk
board/bf537-stamp/config.mk
board/bf538f-ezkit/config.mk
board/bf548-ezkit/config.mk
board/bf561-acvilon/config.mk
board/bf561-ezkit/config.mk
board/cm-bf527/config.mk
board/cm-bf533/config.mk
board/cm-bf537e/config.mk
board/cm-bf537u/config.mk
board/cm-bf548/config.mk
board/cm-bf561/config.mk
board/eNET/config.mk
board/tcm-bf518/config.mk
board/tcm-bf537/config.mk
config.mk