summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-09-26 09:53:30 -0600
committerMartin Roth <martinroth@google.com>2017-10-13 14:29:35 +0000
commit8a02727f508826ef8f1e8bbe7581eedc2e0c1198 (patch)
tree8f0b897c53d0976cd7fee7dc873f274617d536fd /Makefile
parentf6aa7d94c8ce003383008c366248faebd1f31e9f (diff)
Makefile: Exclude util directory from project_filelist
This list should be about files included in the ROM output, not related files. Change-Id: I390d58ef9ab76ff05062b5fbc1e031b7c6d2f388 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/21698 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 329eaeb2c9..dedf6885b6 100644
--- a/Makefile
+++ b/Makefile
@@ -380,8 +380,8 @@ $(obj)/project_filelist.txt:
echo "*** Error: Project must be built before generating file list ***"; \
exit 1; \
fi
- find $(obj) -name "*.d" -exec cat {} \; | \
- sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
+ find $(obj) -path "$(obj)/util" -prune -o -name "*.d" -exec cat {} \; | \
+ sed "s|$(top)/||" | sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
grep -v '\.o$$' > $(obj)/project_filelist.txt
filelist: $(obj)/project_filelist.txt