From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Fix out of tree building issue
Date: Wed, 26 Mar 2008 21:05:43 +0100 [thread overview]
Message-ID: <47EAAC97.3020207@denx.de> (raw)
Currently U-Boot building in some external directory
doesn't work. This patch tries to fix the problem.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
tools/Makefile | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/tools/Makefile b/tools/Makefile
index 9f0dedf..8784a6d 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
--
1.5.3.3
next reply other threads:[~2008-03-26 20:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 20:05 Anatolij Gustschin [this message]
2008-03-26 23:19 ` [U-Boot-Users] [PATCH] Fix out of tree building issue Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47EAAC97.3020207@denx.de \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox