diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-10-10 12:00:45 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-10-10 19:24:38 -0700 |
commit | 0710a28b5948e4ee8043fd6edc44587a0dec10df (patch) | |
tree | 0fb2cc9d60d5c13d88102b61bc6af3b8f3c072b8 | |
parent | 3fd372d79b400569ed09c68735c25c87bd476135 (diff) | |
download | meta-openembedded-0710a28b5948e4ee8043fd6edc44587a0dec10df.tar.gz |
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 <raj.khem@gmail.com>
Cc: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-oe/recipes-test/pm-qa/pm-qa_git.bb | 6 |
1 files 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 = " \ | |||
19 | CFLAGS += "-pthread" | 19 | CFLAGS += "-pthread" |
20 | 20 | ||
21 | do_compile () { | 21 | do_compile () { |
22 | # Find all the .c files in this project and build them. | 22 | # Find all the .c files in this project skip any directory named .pc and build them. |
23 | for x in `find . -name "*.c"` | 23 | for x in `find . -path '*/.pc' -prune -o -type f -name '*.c' -print` |
24 | do | 24 | do |
25 | util=`echo ${x} | sed s/.c$//` | 25 | util=`echo ${x} | sed s/.c$//` |
26 | oe_runmake ${util} | 26 | oe_runmake ${util} |
@@ -32,7 +32,7 @@ do_install () { | |||
32 | install -d ${D}${libdir}/${BPN} | 32 | install -d ${D}${libdir}/${BPN} |
33 | 33 | ||
34 | # Install the compiled binaries that were built in the previous step | 34 | # Install the compiled binaries that were built in the previous step |
35 | for x in `find . -name "*.c"` | 35 | for x in `find . -path '*/.pc' -prune -o -type f -name '*.c' -print` |
36 | do | 36 | do |
37 | util=`echo ${x} | sed s/.c$//` | 37 | util=`echo ${x} | sed s/.c$//` |
38 | util_basename=`basename ${util}` | 38 | util_basename=`basename ${util}` |