From: Martin Mohring Date: Mon, 15 Aug 2011 02:25:25 +0000 (+0200) Subject: [build] copy qemus from server not for local build X-Git-Tag: upstream/20120927~176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00f4b5c3d0d78a0730a810ec2ed4ac8e3f449d2e;p=platform%2Fupstream%2Fbuild.git [build] copy qemus from server not for local build --- diff --git a/init_buildsystem b/init_buildsystem index b215791..fab0af2 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -355,6 +355,19 @@ validate_cache_file() # fall back to initscript_qemu_vm shell script with corresponding static # bash and mount programs. # + +check_copy_qemu() +{ + local arch + + for arch in $EMULATOR_DEVS; do + if test -e $BUILD_DIR/qemu-$arch; then + return 0 + fi + done + return 1 +} + copy_qemu() { local path dest @@ -363,7 +376,7 @@ copy_qemu() mkdir -p $BUILD_ROOT/usr/bin - if [ -e $BUILD_DIR/qemu-reg -a -x $BUILD_DIR/initvm ]; then + if check_copy_qemu; then for path in $BUILD_DIR/qemu-*; do if file $path | grep -q static; then