diff options
author | Dennis Lan <dennis.yxun@gmail.com> | 2012-07-11 07:05:02 +0000 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-07-16 08:36:56 -0700 |
commit | a12e2409af246d4c1d0e0c9a2457fb9c850bd8ca (patch) | |
tree | 34c9ae9661c53f2dd4dc517aab32ea7ebc12f90e /scripts | |
parent | 0a1d842e2db63265a6a6708b1101e1f52f223fc9 (diff) | |
download | openembedded-core-a12e2409af246d4c1d0e0c9a2457fb9c850bd8ca.tar.gz openembedded-core-a12e2409af246d4c1d0e0c9a2457fb9c850bd8ca.tar.bz2 openembedded-core-a12e2409af246d4c1d0e0c9a2457fb9c850bd8ca.zip |
runqemu/mips: adjust runqemu script to support mipsel machine
Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 5 | ||||
-rwxr-xr-x | scripts/runqemu-internal | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 8d149a2f3c..650d1df806 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -94,7 +94,7 @@ KVM_ENABLED="no" while true; do arg=${1} case "$arg" in - "qemux86" | "qemux86-64" | "qemuarm" | "qemumips" | "qemumips64" | "qemush4" | "qemuppc") + "qemux86" | "qemux86-64" | "qemuarm" | "qemumips" | "qemumipsel" | "qemumips64" | "qemush4" | "qemuppc") [ -z "$MACHINE" ] && MACHINE=$arg || \ error "conflicting MACHINE types [$MACHINE] and [$arg]" ;; @@ -245,6 +245,9 @@ QEMUARM_DEFAULT_FSTYPE=ext3 QEMUMIPS_DEFAULT_KERNEL=vmlinux-qemumips.bin QEMUMIPS_DEFAULT_FSTYPE=ext3 +QEMUMIPSEL_DEFAULT_KERNEL=vmlinux-qemumipsel.bin +QEMUMIPSEL_DEFAULT_FSTYPE=ext3 + QEMUMIPS64_DEFAULT_KERNEL=vmlinux-qemumips64.bin QEMUMIPS64_DEFAULT_FSTYPE=ext3 diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 041464dd7c..a21ea93c9b 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -236,6 +236,7 @@ fi case "$MACHINE" in "qemuarm") ;; "qemumips") ;; + "qemumipsel") ;; "qemumips64") ;; "qemush4") ;; "qemuppc") ;; @@ -375,12 +376,12 @@ if [ "$MACHINE" = "spitz" ]; then fi fi -if [ "$MACHINE" = "qemumips" -o "$MACHINE" = "qemumips64" ]; then - if [ "$MACHINE" = "qemumips64" ]; then - QEMU=qemu-system-mips64 - else - QEMU=qemu-system-mips - fi +if [ "$MACHINE" = "qemumips" -o "$MACHINE" = "qemumipsel" -o "$MACHINE" = "qemumips64" ]; then + case "$MACHINE" in + qemumips) QEMU=qemu-system-mips ;; + qemumipsel) QEMU=qemu-system-mipsel ;; + qemumips64) QEMU=qemu-system-mips64 ;; + esac MACHINE_SUBTYPE=malta QEMU_UI_OPTIONS="-vga cirrus $QEMU_UI_OPTIONS" if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then |