mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
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>
This commit is contained in:
@@ -19,8 +19,8 @@ SRC_URI = " \
|
|||||||
CFLAGS += "-pthread"
|
CFLAGS += "-pthread"
|
||||||
|
|
||||||
do_compile () {
|
do_compile () {
|
||||||
# Find all the .c files in this project and build them.
|
# Find all the .c files in this project skip any directory named .pc and build them.
|
||||||
for x in `find . -name "*.c"`
|
for x in `find . -path '*/.pc' -prune -o -type f -name '*.c' -print`
|
||||||
do
|
do
|
||||||
util=`echo ${x} | sed s/.c$//`
|
util=`echo ${x} | sed s/.c$//`
|
||||||
oe_runmake ${util}
|
oe_runmake ${util}
|
||||||
@@ -32,7 +32,7 @@ do_install () {
|
|||||||
install -d ${D}${libdir}/${BPN}
|
install -d ${D}${libdir}/${BPN}
|
||||||
|
|
||||||
# Install the compiled binaries that were built in the previous step
|
# 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
|
do
|
||||||
util=`echo ${x} | sed s/.c$//`
|
util=`echo ${x} | sed s/.c$//`
|
||||||
util_basename=`basename ${util}`
|
util_basename=`basename ${util}`
|
||||||
|
|||||||
Reference in New Issue
Block a user