From 2e0e24e849c80a4bfde0e762ed1117a85025c769 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 9 Jun 2010 17:27:23 +0100 Subject: scripts: Fix setting up links to cc and gcc in runqemu Signed-off-by: Joshua Lock --- scripts/runqemu | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'scripts/runqemu') diff --git a/scripts/runqemu b/scripts/runqemu index 2ab01d925..5b4440257 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -137,11 +137,21 @@ if [ "$MACHINE" = "qemux86" ]; then findimage $T qemux86 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal" fi fi - CROSSPATH=$BUILDDIR/sysroots/$BUILD_SYS/i586-poky-linux/bin + CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr fi -if [ ! -e $CROSSPATH/cc ]; then - ln -s $CROSSPATH/gcc $CROSSPATH/cc +if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then + TARGET_SYS="arm-poky-linux" +elif [ "$MACHINE" = "qemux86" ]; then + TARGET_SYS="i586-poky-linux" +fi + +if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then + ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/cc +fi + +if [ ! -e $CROSSPATH/$TARGET_SYS/bin/gcc ]; then + ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc fi CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin -- cgit v1.2.3