summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2007-08-21 17:00:17 -0500
committerWolfgang Denk <wd@denx.de>2007-08-29 02:15:46 +0200
commit7608d75f9c87c9eb5b3a43219d0506d3e979a13f (patch)
tree6370fbb2dd1c25a645144617427e10eb28fb98df /Makefile
parentef8f20752712dc1cdbd86f47e3bd6e35f81c83fd (diff)
downloadu-boot-imx-7608d75f9c87c9eb5b3a43219d0506d3e979a13f.zip
u-boot-imx-7608d75f9c87c9eb5b3a43219d0506d3e979a13f.tar.gz
u-boot-imx-7608d75f9c87c9eb5b3a43219d0506d3e979a13f.tar.bz2
support board vendor-common makefiles
if a board/$(VENDOR)/common/Makefile exists, build it. also add the first such case, board/freescale/common/Makefile, to handle building board-shared EEPROM, PIXIS, and MDS-PIB code, as dictated by board configuration. thusly get rid of alternate build dir errors such as: FATAL: can't create /work/wd/tmp/u-boot-ppc/board/freescale/mpc8360emds/../common/pq-mds-pib.o: No such file or directory by putting the common/ mkdir command in its proper place (the common Makefile). Common bits from existing individual board Makefiles have been removed. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e15cea..0477cd3 100644
--- a/Makefile
+++ b/Makefile
@@ -190,6 +190,8 @@ endif
OBJS := $(addprefix $(obj),$(OBJS))
LIBS = lib_generic/libgeneric.a
+LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
+ "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
LIBS += board/$(BOARDDIR)/lib$(BOARD).a
LIBS += cpu/$(CPU)/lib$(CPU).a
ifdef SOC