From 8a02727f508826ef8f1e8bbe7581eedc2e0c1198 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 26 Sep 2017 09:53:30 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/21698 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3