path: root/
diff options
authorSimon Glass <>2011-10-18 05:50:42 +0000
committerWolfgang Denk <>2011-10-18 22:31:33 +0200
commiteaeecde7bc67b473786d4adc4d923a4798f50d0e (patch)
tree1bae5cb760449181465206c314c649b5871c3890 /
parentefb2172ece93ef48f34fb8bdf963d3b72880cc7d (diff)
Correct dependency rule to fix SPL build
Commit 4750884 introduced a change in the dependency generation which breaks SPL, because the source files being built are not initially present and are symlinked as part of the build. The .depend file must depend not only on the files in the DEPS list but also on the sources which did not contribute files to the DEPS list, since these sources will otherwise not get a dependency and will not be built. Signed-off-by: Simon Glass <> Tested-by: Wolfgang Denk <>
Diffstat (limited to '')
1 files changed, 2 insertions, 1 deletions
diff --git a/ b/
index 22562f33da..fa929f9f50 100644
--- a/
+++ b/
@@ -38,7 +38,8 @@ DEPS := $(basename $(patsubst %,$(obj).depend.%,$(PWD_SRCS)))
# 1 .Concatenate all the generated depend files together
# 2. Add in the deps from OTHER_SRCS which we couldn't process
# 3. Add in the HOSTSRCS
-$(obj).depend: $(src)Makefile $(TOPDIR)/ $(DEPS) $(HOSTSRCS)
+$(obj).depend: $(src)Makefile $(TOPDIR)/ $(DEPS) $(OTHER_SRCS) \
cat /dev/null $(DEPS) >$@
@for f in $(OTHER_SRCS); do \
g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \
OpenPOWER on IntegriCloud