From 0710a28b5948e4ee8043fd6edc44587a0dec10df Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 10 Oct 2025 12:00:45 -0700 Subject: [PATCH] pm-qa: Do not let find command recurse into .pc folder find, the way it is used will also list c files in special directories like .pc, which is created by quilt for managing patches and is the default PATCHTOOL Ignore this directory during find operation. Signed-off-by: Khem Raj Cc: Ryan Eatmon --- meta-oe/recipes-test/pm-qa/pm-qa_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-test/pm-qa/pm-qa_git.bb b/meta-oe/recipes-test/pm-qa/pm-qa_git.bb index f792415037..3c123f9294 100644 --- a/meta-oe/recipes-test/pm-qa/pm-qa_git.bb +++ b/meta-oe/recipes-test/pm-qa/pm-qa_git.bb @@ -19,8 +19,8 @@ SRC_URI = " \ CFLAGS += "-pthread" do_compile () { - # Find all the .c files in this project and build them. - for x in `find . -name "*.c"` + # Find all the .c files in this project skip any directory named .pc and build them. + for x in `find . -path '*/.pc' -prune -o -type f -name '*.c' -print` do util=`echo ${x} | sed s/.c$//` oe_runmake ${util} @@ -32,7 +32,7 @@ do_install () { install -d ${D}${libdir}/${BPN} # Install the compiled binaries that were built in the previous step - for x in `find . -name "*.c"` + for x in `find . -path '*/.pc' -prune -o -type f -name '*.c' -print` do util=`echo ${x} | sed s/.c$//` util_basename=`basename ${util}`