summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2013-01-25 15:42:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-27 13:51:52 +0000
commit06ea50973a4446053d1ecac5b8e4cf425c8df5b1 (patch)
tree424577becd0fa3a6be2e0782fe4d8c6c21acc95a
parenta3599db48576043d7c335aff677471fc1afed8ab (diff)
downloadopenembedded-core-06ea50973a4446053d1ecac5b8e4cf425c8df5b1.tar.gz
openembedded-core-06ea50973a4446053d1ecac5b8e4cf425c8df5b1.tar.bz2
openembedded-core-06ea50973a4446053d1ecac5b8e4cf425c8df5b1.zip
eglibc: fix evacuate_scripts for external toolchains
Not every external toolchain has mtrace/sotruss/xtrace scripts so check their existance first. Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/eglibc/eglibc-package.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index dae5d4f015..72ff6b85c0 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -117,7 +117,9 @@ do_evacuate_scripts () {
target=${D}${includedir}/eglibc-scripts-internal-${MULTIMACH_TARGET_SYS}
mkdir -p $target
for i in ${bashscripts}; do
- cp ${D}${bindir}/$i $target/
+ if [ -f ${D}${bindir}/$i ]; then
+ cp ${D}${bindir}/$i $target/
+ fi
done
}