summaryrefslogtreecommitdiff
path: root/scripts/poky-qemu-ifup
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2010-12-07 20:59:06 -0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-09 15:00:45 +0000
commitba5e0b9531b9a967aa3d408a13024590d96b8391 (patch)
tree47b7536aa4da6efc78106a1a57c6ebe9a13e91d2 /scripts/poky-qemu-ifup
parent7581654a030961eda03b07de0e0f6d62a7f4055e (diff)
downloadopenembedded-core-ba5e0b9531b9a967aa3d408a13024590d96b8391.tar.gz
openembedded-core-ba5e0b9531b9a967aa3d408a13024590d96b8391.tar.bz2
openembedded-core-ba5e0b9531b9a967aa3d408a13024590d96b8391.tar.xz
openembedded-core-ba5e0b9531b9a967aa3d408a13024590d96b8391.zip
Make poky-qemu and related scripts work with arbitrary SDK locations
* No longer assume SDK toolchains are installed in /opt/poky * [BUGFIX #568] where specifying paths to both the kernel and fs image caused an error due to POKY_NATIVE_SYSROOT never being set, triggering failure of poky-qemu-ifup/ifdown * Cosmetic improvements to usage() functions by using basename Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'scripts/poky-qemu-ifup')
-rwxr-xr-xscripts/poky-qemu-ifup9
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/poky-qemu-ifup b/scripts/poky-qemu-ifup
index 8685c83cc..f82848ccc 100755
--- a/scripts/poky-qemu-ifup
+++ b/scripts/poky-qemu-ifup
@@ -34,7 +34,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
usage() {
- echo "sudo $0 <gid> <native-sysroot-basedir>"
+ echo "sudo $(basename $0) <gid> <native-sysroot-basedir>"
}
if [ $EUID -ne 0 ]; then
@@ -53,13 +53,6 @@ NATIVE_SYSROOT_DIR=$2
TUNCTL=$NATIVE_SYSROOT_DIR/usr/bin/tunctl
if [ ! -x "$TUNCTL" ]; then
echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin'"
-
- if [[ "$NATIVE_SYSROOT_DIR" =~ ^\/opt\/poky ]]; then
- echo "This shouldn't happen - something is wrong with your toolchain installation"
- else
- echo "Have you run 'bitbake meta-ide-support'?"
- fi
-
exit 1
fi