summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2022-12-26 00:29:49 +0100
committerLean Sheng Tan <sheng.tan@9elements.com>2023-02-20 10:23:53 +0000
commitc36b70caa7864e49ebc587e6e19c4b5165253d4d (patch)
tree3f358d1f861b1f2c42fd956a823e00e3e5c0ff18 /Makefile
parent6bfca1b689e48be4f72e8fa401f3558d845fc282 (diff)
downloadcoreboot-c36b70caa7864e49ebc587e6e19c4b5165253d4d.tar.gz
coreboot-c36b70caa7864e49ebc587e6e19c4b5165253d4d.tar.bz2
coreboot-c36b70caa7864e49ebc587e6e19c4b5165253d4d.zip
Makefile: Fix project_filelist.txt generation
The ctags tool (called by ctags-project target) currently complains about not finding certain files. The project_filelist.txt generation includes the compiler generated "*.d" files, except for files found in build/util. Most file paths in these "*.d" files are file paths relative to the root directory of coreboot. Some projects though are compiled separately from coreboot (e.g. payload, vboot, util). Some of these (e.g. util, vboot) are also put into the build directory of coreboot and relative file paths are relative to these projects instead of coreboot. This has the uncanning side effect that the ctags Makefile target can't find these files, since they are not relative to the coreboot root directory. This patch also excludes the build/external directory from those files, since they contain 'separately' compiled projects like 3rdparty/vboot. That fixes the ctags-project Makefile target. Change-Id: I16294171c29a0d5fd25a31018846f1013e130ee0 Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71517 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 49597e020f43..e8e7b57fb514 100644
--- a/Makefile
+++ b/Makefile
@@ -442,7 +442,7 @@ $(obj)/project_filelist.txt:
echo "*** Error: Project must be built before generating file list ***"; \
exit 1; \
fi
- find $(obj) -path "$(obj)/util" -prune -o -name "*.d" -exec cat {} \; | \
+ find $(obj) -path "$(obj)/util" -prune -o -path "$(obj)/external" -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