diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 16 |
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 |
141 | fi | 141 | fi |
142 | 142 | ||
143 | if [ ! -e $CROSSPATH/cc ]; then | 143 | if [ "$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" |
145 | elif [ "$MACHINE" = "qemux86" ]; then | ||
146 | TARGET_SYS="i586-poky-linux" | ||
147 | fi | ||
148 | |||
149 | if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then | ||
150 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/cc | ||
151 | fi | ||
152 | |||
153 | if [ ! -e $CROSSPATH/$TARGET_SYS/bin/gcc ]; then | ||
154 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc | ||
145 | fi | 155 | fi |
146 | 156 | ||
147 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin | 157 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin |