Skip to contentSkip to conversation

runqemu-ifup: when tunctl can't be found, say what package builds it

PATCH In review Ross Burton 2 participants 2 messages Aug 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqemu-ifup: when tunctl can't be found, say what package builds it

If runqemu is used without actually building any qemu images (i.e. you downloaded the images) it's likely that qemu-helper-native hasn't been built. Instead of just saying what command can't be found, tell the user how to solve their problem.

---
 scripts/runqemu-ifup |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu-ifup +1 -1
index 5f6a437..140dd88 100755
@@ -53,7 +53,7 @@ NATIVE_SYSROOT_DIR=$3
 
 TUNCTL=$NATIVE_SYSROOT_DIR/usr/bin/tunctl
 if [ ! -x "$TUNCTL" ]; then
-	echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin'"
+        echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin', please bitbake qemu-helper-native"
 	exit 1
 fi
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 15 lines · Ross Burton

If runqemu is used without actually building any qemu images (i.e. you downloaded the images) it's likely that qemu-helper-native hasn't been built. Instead of just saying what command can't be found, tell the user how to solve their problem.

---
 scripts/runqemu-ifup |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu-ifup +0 -0
index 5f6a437..140dd88 100755

scripts/runqemu-ifup NATIVE_SYSROOT_DIR=$3 · line 56

Quoted 5 lines
scripts/runqemu-ifup +1 -1
@@ -53,7 +53,7 @@ NATIVE_SYSROOT_DIR=$3
 
 TUNCTL=$NATIVE_SYSROOT_DIR/usr/bin/tunctl
 if [ ! -x "$TUNCTL" ]; then
-	echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin'"
+        echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin', please bitbake qemu-helper-native"

^ inconsistent whitespace

Quoted 10 lines
scripts/runqemu-ifup +0 -0
 	exit 1
 fi
 
Signature · 6 lines
1.7.10.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]