summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-09 17:27:23 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-09 17:32:01 +0100
commit2e0e24e849c80a4bfde0e762ed1117a85025c769 (patch)
tree2181b2d49753a07d410a5c220c9d070374a1eadd /scripts
parent61a730184b25b2e3b33578aff06aba4efa77e779 (diff)
downloadpoky-2e0e24e849c80a4bfde0e762ed1117a85025c769.tar.gz
scripts: Fix setting up links to cc and gcc in runqemu
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts')
-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