diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-06-09 17:27:23 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-06-09 17:32:01 +0100 |
commit | 2e0e24e849c80a4bfde0e762ed1117a85025c769 (patch) | |
tree | 2181b2d49753a07d410a5c220c9d070374a1eadd /scripts | |
parent | 61a730184b25b2e3b33578aff06aba4efa77e779 (diff) | |
download | poky-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-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 |