aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2007-03-06 18:08:43 +0100
committerWolfgang Denk <wd@denx.de>2007-03-06 18:08:43 +0100
commitad5bb451ade552c44bef9119d907929ebc2c126f (patch)
treedf979d3c6385a161cd6df6b6f903ed7eaad31948 /Makefile
parenta5284efd125967675b2e9c6ef7b95832268ad360 (diff)
downloadu-boot-ad5bb451ade552c44bef9119d907929ebc2c126f.zip
u-boot-ad5bb451ade552c44bef9119d907929ebc2c126f.tar.gz
u-boot-ad5bb451ade552c44bef9119d907929ebc2c126f.tar.bz2
Restructure POST directory to support of other CPUs, boards, etc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3809de0..fec114f 100644
--- a/Makefile
+++ b/Makefile
@@ -203,7 +203,13 @@ ifeq ($(CPU),mpc83xx)
LIBS += drivers/qe/qe.a
endif
LIBS += drivers/sk98lin/libsk98lin.a
-LIBS += post/libpost.a post/cpu/libcpu.a
+LIBS += post/libpost.a post/drivers/libpostdrivers.a
+LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
+ "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
+LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
+ "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
+LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
+ "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
LIBS += common/libcommon.a
LIBS += $(BOARDLIBS)
@@ -216,9 +222,8 @@ PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -
# The "tools" are needed early, so put this first
# Don't include stuff already done in $(LIBS)
SUBDIRS = tools \
- examples \
- post \
- post/cpu
+ examples
+
.PHONY : $(SUBDIRS)
ifeq ($(CONFIG_NAND_U_BOOT),y)