runqemu/mips: adjust runqemu script to support mipsel machine
PATCH v2 1/1 runqemu/mips: adjust runqemu script to support mipsel machine
Signed-off-by Dennis Lan <[email protected]>
--- scripts/runqemu | 5 ++++- scripts/runqemu-internal | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-)
scripts/runqemu +4 -1
@@ -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
scripts/runqemu-internal +7 -6
@@ -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
Signature · 1 line
1.7.9.rc2
Saul Wold
AppliedQuoted 51 lines · Dennis Lan
Signed-off-by Dennis Lan <[email protected]>--- scripts/runqemu | 5 ++++- scripts/runqemu-internal | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-)scripts/runqemu +4
-1@@ -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=ext3scripts/runqemu-internal +1
-5@@ -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
scripts/runqemu-internal if [ "$MACHINE" = "spitz" ]; then · line 387
Quoted 10 lines
scripts/runqemu-internal +6
-1- 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
Merged into OE-Core
Thanks
Sau!
hi saul:
thanks for taking this
Dennis
Quoted 71 lines · Saul Wold
Quoted 57 lines · Dennis Lan
Signed-off-by Dennis Lan <[email protected]>--- scripts/runqemu | 5 ++++- scripts/runqemu-internal | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-)scripts/runqemu +1
-1@@ -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]"
;;scripts/runqemu +3
-0@@ -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=ext3scripts/runqemu-internal +2
-6@@ -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
scripts/runqemu-internal if [ "$MACHINE" = "spitz" ]; then · line 387
Quoted 8 lines
scripts/runqemu-internal +5
-0+ 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" ]; thenMerged into OE-Core
Thanks
Sau!