summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-03-27 00:19:13 +0100
committerWolfgang Denk <wd@denx.de>2008-03-27 00:19:13 +0100
commit234ea73c660cfd0b1c98de00995c32d4152d202f (patch)
tree0d5252c1ec150a470a2c3d559fb03a0bcc6d0265
parent38b189fe749824ea9b1c5422865e78b4b7eb2494 (diff)
parentb9670dd85be6e0496ef2e231043c23cad9b1d903 (diff)
downloadu-boot-234ea73c660cfd0b1c98de00995c32d4152d202f.tar.gz
u-boot-234ea73c660cfd0b1c98de00995c32d4152d202f.tar.xz
u-boot-234ea73c660cfd0b1c98de00995c32d4152d202f.zip
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
-rw-r--r--tools/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 9f0dedfa3b..8784a6d5c2 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -37,7 +37,7 @@ endif
#OBJ_FILES += mpc86x_clk.o
#endif
-LIBFDT_OBJ_FILES = fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o
+LIBFDT_OBJ_FILES = $(obj)fdt.o $(obj)fdt_ro.o $(obj)fdt_rw.o $(obj)fdt_strerror.o $(obj)fdt_wip.o
LOGO_H = $(OBJTREE)/include/bmp_logo.h
@@ -251,24 +251,30 @@ $(obj)sha1.c:
$(obj)image.c:
@rm -f $(obj)image.c
ln -s $(src)../common/image.c $(obj)image.c
-
-$(obj)fdt.c: libfdt_internal.h
+ if [ ! -f $(obj)mkimage.h ] ; then \
+ ln -s $(src)../tools/mkimage.h $(obj)mkimage.h; \
+ fi
+ if [ ! -f $(obj)fdt_host.h ] ; then \
+ ln -s $(src)../tools/fdt_host.h $(obj)fdt_host.h; \
+ fi
+
+$(obj)fdt.c: $(obj)libfdt_internal.h
@rm -f $(obj)fdt.c
ln -s $(src)../libfdt/fdt.c $(obj)fdt.c
-$(obj)fdt_ro.c: libfdt_internal.h
+$(obj)fdt_ro.c: $(obj)libfdt_internal.h
@rm -f $(obj)fdt_ro.c
ln -s $(src)../libfdt/fdt_ro.c $(obj)fdt_ro.c
-$(obj)fdt_rw.c: libfdt_internal.h
+$(obj)fdt_rw.c: $(obj)libfdt_internal.h
@rm -f $(obj)fdt_rw.c
ln -s $(src)../libfdt/fdt_rw.c $(obj)fdt_rw.c
-$(obj)fdt_strerror.c: libfdt_internal.h
+$(obj)fdt_strerror.c: $(obj)libfdt_internal.h
@rm -f $(obj)fdt_strerror.c
ln -s $(src)../libfdt/fdt_strerror.c $(obj)fdt_strerror.c
-$(obj)fdt_wip.c: libfdt_internal.h
+$(obj)fdt_wip.c: $(obj)libfdt_internal.h
@rm -f $(obj)fdt_wip.c
ln -s $(src)../libfdt/fdt_wip.c $(obj)fdt_wip.c