Skip to contentSkip to conversation

Makefile: prune quilt source files for cscope

PATCH In review Cédric Le Goater 1 participant 3 messages Jun 30, 2025 – Jul 3, 2025 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: prune quilt source files for cscope

Both quilt, to apply patches, and cscope, to navigate in the code, are useful tools. Make sure source files that quilt saves when applying patches are not taken into account when building the cscope database.

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index c92a3cf7857a..74c2da203720 100644
@@ -227,6 +227,7 @@ distclean: clean recurse-distclean
 	rm -Rf .sdk qemu-bundle
 
 find-src-path = find "$(SRC_PATH)" -path "$(SRC_PATH)/meson" -prune -o \
+	-path "$(SRC_PATH)/.pc" -prune -o \
 	-type l -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
 
 .PHONY: ctags
Signature · 1 line
2.50.0
#1 lore raw
Quoted 14 lines · Cédric Le Goater

Both quilt, to apply patches, and cscope, to navigate in the code, are useful tools. Make sure source files that quilt saves when applying patches are not taken into account when building the cscope database.

---
  Makefile | 1 +
  1 file changed, 1 insertion(+)
Makefile +0 -0
index c92a3cf7857a..74c2da203720 100644

Makefile distclean: clean recurse-distclean · line 233

Quoted 7 lines
Makefile +1 -0
@@ -227,6 +227,7 @@ distclean: clean recurse-distclean
  	rm -Rf .sdk qemu-bundle
 
  find-src-path = find "$(SRC_PATH)" -path "$(SRC_PATH)/meson" -prune -o \
+	-path "$(SRC_PATH)/.pc" -prune -o \
  	-type l -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
 
  .PHONY: ctags

if no one objects, I will add it to the vfio queue.

Thanks,

C.

author Applied
#2 lore raw
Quoted 23 lines · Cédric Le Goater
Quoted 14 lines · Cédric Le Goater

Both quilt, to apply patches, and cscope, to navigate in the code, are useful tools. Make sure source files that quilt saves when applying patches are not taken into account when building the cscope database.

---
  Makefile | 1 +

  1 file changed, 1 insertion(+)
Makefile +0 -0
index c92a3cf7857a..74c2da203720 100644
@@ -227,6 +227,7 @@ distclean: clean recurse-distclean
Quoted 5 lines

      rm -Rf .sdk qemu-bundle
  find-src-path = find "$(SRC_PATH)" -path "$(SRC_PATH)/meson" -prune -o \
+    -path "$(SRC_PATH)/.pc" -prune -o \
      -type l -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \) .PHONY: ctags

if no one objects, I will add it to the vfio queue.

Quoted 5 lines

Thanks,

C.

Applied to vfio-next.

Thanks,

C.