summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 2ab01d9257..5b44402579 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -137,11 +137,21 @@ if [ "$MACHINE" = "qemux86" ]; then
137 findimage $T qemux86 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal" 137 findimage $T qemux86 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal"
138 fi 138 fi
139 fi 139 fi
140 CROSSPATH=$BUILDDIR/sysroots/$BUILD_SYS/i586-poky-linux/bin 140 CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr
141fi 141fi
142 142
143if [ ! -e $CROSSPATH/cc ]; then 143if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then
144 ln -s $CROSSPATH/gcc $CROSSPATH/cc 144 TARGET_SYS="arm-poky-linux"
145elif [ "$MACHINE" = "qemux86" ]; then
146 TARGET_SYS="i586-poky-linux"
147fi
148
149if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then
150 ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/cc
151fi
152
153if [ ! -e $CROSSPATH/$TARGET_SYS/bin/gcc ]; then
154 ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc
145fi 155fi
146 156
147CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin 157CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin