summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-xscripts/poky-qemu-internal9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index 01486ccff6..aac51b5888 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -71,7 +71,12 @@ done
71if [ "$TAP" = "" ]; then 71if [ "$TAP" = "" ]; then
72 GROUPID=`id -g` 72 GROUPID=`id -g`
73 echo 'Setting up tap interface under sudo' 73 echo 'Setting up tap interface under sudo'
74 TAP=`sudo $QEMUIFUP $GROUPID` 74 TAP=`sudo $QEMUIFUP $GROUPID $NATIVE_SYSROOT_DIR`
75 if [ $? -ne 0 ]; then
76 # Re-run standalone to see verbose errors
77 sudo $QEMUIFUP $GROUPID $NATIVE_SYSROOT_DIR
78 return
79 fi
75 LOCKFILE="" 80 LOCKFILE=""
76else 81else
77 echo "Using preconfigured tap device '$TAP'" 82 echo "Using preconfigured tap device '$TAP'"
@@ -79,7 +84,7 @@ fi
79 84
80release_lock() { 85release_lock() {
81 if [ "$LOCKFILE" = "" ]; then 86 if [ "$LOCKFILE" = "" ]; then
82 $QEMUIFDOWN $TAP 87 $QEMUIFDOWN $TAP $NATIVE_SYSROOT_DIR
83 else 88 else
84 echo "Releasing lockfile of preconfigured tap device '$TAP'" 89 echo "Releasing lockfile of preconfigured tap device '$TAP'"
85 rm -f $LOCKFILE 90 rm -f $LOCKFILE