diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-08-02 17:54:03 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-08-02 17:54:20 +0100 |
commit | fa8c028fd005b87ad2e64c5b93221412355d94a6 (patch) | |
tree | 97f09c65778ed912ac6f119b5c9bbb81d5a26bf1 /scripts | |
parent | d9b1d4312cf1f981c5201b027b18594e9ad5a861 (diff) | |
download | poky-fa8c028fd005b87ad2e64c5b93221412355d94a6.tar.gz |
scripts: add qemux86-64 support to the qemu scripts
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/poky-qemu-internal | 35 | ||||
-rwxr-xr-x | scripts/runqemu | 27 |
2 files changed, 53 insertions, 9 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 6c49ddeaf9..62c64727c0 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -35,6 +35,9 @@ if [ -z "$QEMU_MEMORY" ]; then | |||
35 | "qemux86") | 35 | "qemux86") |
36 | QEMU_MEMORY="128M" | 36 | QEMU_MEMORY="128M" |
37 | ;; | 37 | ;; |
38 | "qemux86-64") | ||
39 | QEMU_MEMORY="128M" | ||
40 | ;; | ||
38 | "qemumips") | 41 | "qemumips") |
39 | QEMU_MEMORY="128M" | 42 | QEMU_MEMORY="128M" |
40 | ;; | 43 | ;; |
@@ -68,6 +71,7 @@ case "$MACHINE" in | |||
68 | "qemuarmv6") ;; | 71 | "qemuarmv6") ;; |
69 | "qemuarmv7") ;; | 72 | "qemuarmv7") ;; |
70 | "qemux86") ;; | 73 | "qemux86") ;; |
74 | "qemux86-64") ;; | ||
71 | "akita") ;; | 75 | "akita") ;; |
72 | "spitz") ;; | 76 | "spitz") ;; |
73 | "nokia800") ;; | 77 | "nokia800") ;; |
@@ -136,6 +140,26 @@ if [ "$MACHINE" = "qemux86" ]; then | |||
136 | fi | 140 | fi |
137 | fi | 141 | fi |
138 | 142 | ||
143 | if [ "$MACHINE" = "qemux86-64" ]; then | ||
144 | QEMU=qemu-system-x86_64 | ||
145 | QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware -enable-gl" | ||
146 | if [ "$TYPE" = "ext3" ]; then | ||
147 | KERNCMDLINE="vga=0 root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD" | ||
148 | QEMUOPTIONS="$QEMU_NETWORK_CMD -hda $HDIMAGE $QEMU_UI_OPTIONS" | ||
149 | fi | ||
150 | if [ "$TYPE" = "nfs" ]; then | ||
151 | if [ "x$HDIMAGE" = "x" ]; then | ||
152 | HDIMAGE=/srv/nfs/qemux86-64 | ||
153 | fi | ||
154 | if [ ! -d "$HDIMAGE" ]; then | ||
155 | echo "Error: NFS mount point $HDIMAGE doesn't exist." | ||
156 | return | ||
157 | fi | ||
158 | KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | ||
159 | QEMUOPTIONS="$QEMU_NETWORK_CMD $QEMU_UI_OPTIONS" | ||
160 | fi | ||
161 | fi | ||
162 | |||
139 | if [ "$MACHINE" = "spitz" ]; then | 163 | if [ "$MACHINE" = "spitz" ]; then |
140 | QEMU=qemu-system-arm | 164 | QEMU=qemu-system-arm |
141 | if [ "$TYPE" = "ext3" ]; then | 165 | if [ "$TYPE" = "ext3" ]; then |
@@ -231,14 +255,19 @@ if [ "x$QEMUOPTIONS" = "x" ]; then | |||
231 | return | 255 | return |
232 | fi | 256 | fi |
233 | 257 | ||
234 | SDKDIR="/usr/local/poky/eabi-glibc" | 258 | SDKDIR="/opt/poky/sysroots" |
235 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then | 259 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then |
236 | SDKPATH="$SDKDIR/arm/arm-poky-linux-gnueabi/bin:$SDKDIR/arm/bin" | 260 | SDKPATH="$SDKDIR/arm-poky-linux-gnueabi/bin" |
237 | fi | 261 | fi |
238 | 262 | ||
239 | if [ "$MACHINE" = "qemux86" ]; then | 263 | if [ "$MACHINE" = "qemux86" ]; then |
240 | SDKPATH="$SDKDIR/i586/i586-poky-linux/bin:$SDKDIR/i586/bin" | 264 | SDKPATH="$SDKDIR/i586-poky-linux/bin" |
241 | fi | 265 | fi |
266 | |||
267 | if [ "$MACHINE" = "qemux86-64" ]; then | ||
268 | SDKPATH="$SDKDIR/x86_64-poky-linux/bin" | ||
269 | fi | ||
270 | |||
242 | PATH=$CROSSPATH:$SDKPATH:$PATH | 271 | PATH=$CROSSPATH:$SDKPATH:$PATH |
243 | 272 | ||
244 | QEMUBIN=`which $QEMU` | 273 | QEMUBIN=`which $QEMU` |
diff --git a/scripts/runqemu b/scripts/runqemu index c45b2a1c86..53ef5a5efb 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -85,7 +85,7 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o | |||
85 | if [ "x$ZIMAGE" = "x" ]; then | 85 | if [ "x$ZIMAGE" = "x" ]; then |
86 | ZIMAGE=$TMPDIR/deploy/images/zImage-$MACHINE.bin | 86 | ZIMAGE=$TMPDIR/deploy/images/zImage-$MACHINE.bin |
87 | fi | 87 | fi |
88 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/arm-poky-linux-gnueabi/bin | 88 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/bin |
89 | fi | 89 | fi |
90 | 90 | ||
91 | function findimage { | 91 | function findimage { |
@@ -182,22 +182,37 @@ if [ "$MACHINE" = "qemux86" ]; then | |||
182 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr | 182 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr |
183 | fi | 183 | fi |
184 | 184 | ||
185 | if [ "$MACHINE" = "qemux86-64" ]; then | ||
186 | if [ "x$ZIMAGE" = "x" ]; then | ||
187 | ZIMAGE=$TMPDIR/deploy/images/bzImage-$MACHINE.bin | ||
188 | fi | ||
189 | if [ "$TYPE" = "ext3" ]; then | ||
190 | if [ "x$HDIMAGE" = "x" ]; then | ||
191 | T=$TMPDIR/deploy/images | ||
192 | findimage $T qemux86-64 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal" | ||
193 | fi | ||
194 | fi | ||
195 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr | ||
196 | fi | ||
197 | |||
185 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then | 198 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then |
186 | TARGET_SYS="arm-poky-linux" | 199 | TARGET_SYS="arm-poky-linux" |
187 | elif [ "$MACHINE" = "qemux86" ]; then | 200 | elif [ "$MACHINE" = "qemux86" ]; then |
188 | TARGET_SYS="i586-poky-linux" | 201 | TARGET_SYS="i586-poky-linux" |
202 | elif [ "$MACHINE" = "qemux86-64" ]; then | ||
203 | TARGET_SYS="x86_64-poky-linux" | ||
189 | elif [ "$MACHINE" = "qemumips" ]; then | 204 | elif [ "$MACHINE" = "qemumips" ]; then |
190 | TARGET_SYS="mips-poky-linux" | 205 | TARGET_SYS="mips-poky-linux" |
191 | fi | 206 | fi |
192 | 207 | ||
193 | if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then | 208 | if [ ! -e $CROSSPATH/bin/cc ]; then |
194 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/cc | 209 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/bin/cc |
195 | fi | 210 | fi |
196 | 211 | ||
197 | if [ ! -e $CROSSPATH/$TARGET_SYS/bin/gcc ]; then | 212 | if [ ! -e $CROSSPATH/bin/gcc ]; then |
198 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc | 213 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/bin/gcc |
199 | fi | 214 | fi |
200 | 215 | ||
201 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$TMPDIR/cross/bin | 216 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH |
202 | 217 | ||
203 | . $INTERNAL_SCRIPT | 218 | . $INTERNAL_SCRIPT |