summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-export-rootfs
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-01 22:04:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 14:21:30 +0100
commitd1a84c9f3d387bfeaeaa0007dda8d90164633255 (patch)
treef51c9af343a5ab6f3a0990aefeee94d432d1ceea /scripts/runqemu-export-rootfs
parentc0df2ab7ebac5650e52089ada97e8657f8af3979 (diff)
downloadpoky-d1a84c9f3d387bfeaeaa0007dda8d90164633255.tar.gz
scripts: Show sensible warning messages if expected binaries don't exist
[YOCTO #1438] (From OE-Core rev: 6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-export-rootfs')
-rwxr-xr-xscripts/runqemu-export-rootfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs
index 6f4604d9a6..3ee311235d 100755
--- a/scripts/runqemu-export-rootfs
+++ b/scripts/runqemu-export-rootfs
@@ -38,7 +38,7 @@ fi
38# Ensure the nfs-export-dir is an absolute path 38# Ensure the nfs-export-dir is an absolute path
39NFS_EXPORT_DIR=$(cd "$2" && pwd) 39NFS_EXPORT_DIR=$(cd "$2" && pwd)
40 40
41SYSROOT_SETUP_SCRIPT=`which oe-find-native-sysroot` 41SYSROOT_SETUP_SCRIPT=`which oe-find-native-sysroot 2> /dev/null`
42if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then 42if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then
43 echo "Error: Unable to find the oe-find-native-sysroot script" 43 echo "Error: Unable to find the oe-find-native-sysroot script"
44 echo "Did you forget to source your build environment setup script?" 44 echo "Did you forget to source your build environment setup script?"