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>
This commit is contained in:
Martin Roth 2017-09-26 09:53:30 -06:00
parent f6aa7d94c8
commit 8a02727f50
1 changed files with 2 additions and 2 deletions

View File

@ -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