Patchwork eglibc: fix evacuate_scripts for external toolchains

login
register
mail settings
Submitter Marcin Juszkiewicz
Date Jan. 25, 2013, 2:42 p.m.
Message ID <1359124946-3952-1-git-send-email-marcin.juszkiewicz@linaro.org>
Download mbox | patch
Permalink /patch/43377/
State New
Headers show

Comments

Marcin Juszkiewicz - Jan. 25, 2013, 2:42 p.m.
Not every external toolchain has mtrace/sotruss/xtrace scripts so check
their existance first.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
 meta/recipes-core/eglibc/eglibc-package.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 79c43f1..4a4e54a 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -113,7 +113,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
 }