From d7d803fa1cc7770c17bb8c59ff6a7802beefdea5 Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Wed, 18 Aug 2010 11:10:14 -0700 Subject: poky-qemu-internal: fix broken call to poky-qemu-ifup The poky-qemu-ifup script now requires a path to the native sysroot as an argument. This fixes a case where the argument was missing. Also, set up NATIVE_SYSROOT_DIR when running runqemu. Signed-off-by: Scott Garman --- scripts/runqemu | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/runqemu') diff --git a/scripts/runqemu b/scripts/runqemu index 53ef5a5efb..16c2e85856 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -215,4 +215,12 @@ fi CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH +SYSROOT_SETUP_SCRIPT=`which poky-find-native-sysroot` +if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then + echo "Error: Unable to find the poky-find-native-sysroot script" + echo "Did you forget to source your Poky environment script?" + exit 1 +fi +. $SYSROOT_SETUP_SCRIPT + . $INTERNAL_SCRIPT -- cgit v1.2.3-54-g00ecf