tools: give explicit libfdt paths
authorMike Frysinger <vapier@gentoo.org>
Fri, 22 Jan 2010 00:59:04 +0000 (19:59 -0500)
committerWolfgang Denk <wd@denx.de>
Mon, 25 Jan 2010 23:05:42 +0000 (00:05 +0100)
The current libfdt object rules hard depend implicitly on the .depend file
being correct.  If it isn't, then it is unable to properly compile the
objects.  Give it a full path like all the other implicit rules here so it
will always work in face of .depend issues.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tools/Makefile

index f8b69de63e57d0a87fbd6158eea43dffe1a34a55..266306e9bacec8f2e3aea555953313720e524605 100644 (file)
@@ -196,7 +196,7 @@ $(obj)%.o: $(SRCTREE)/common/%.c
 $(obj)%.o: $(SRCTREE)/lib_generic/%.c
        $(HOSTCC) -g $(HOSTCFLAGS) -c -o $@ $<
 
-$(LIBFDT_OBJS):
+$(obj)%.o: $(SRCTREE)/libfdt/%.c
        $(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
 
 subdirs: