* [PATCH] runqemu: don't complain about conflicting machines if they are equal
@ 2015-09-24 16:10 Pascal Bach
2015-09-26 21:58 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Pascal Bach @ 2015-09-24 16:10 UTC (permalink / raw)
To: openembedded-core
When the MACHINE variable was set as an environment variable, via
"export MACHINE=qemuarm" and runqemu was executed as "runqemu qemuarm"
The confusing error message appears:
Error: conflicting MACHINE types [qemuarm] and [qemuarm]
This checks if the two values are equal, in that case there is no problem
and execution can continue.
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
---
scripts/runqemu | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100755 => 100644 scripts/runqemu
diff --git a/scripts/runqemu b/scripts/runqemu
old mode 100755
new mode 100644
index 23cf5be..5989507
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -111,7 +111,7 @@ while true; do
case "$arg" in
"qemux86" | "qemux86-64" | "qemuarm" | "qemuarm64" | "qemumips" | "qemumipsel" | \
"qemumips64" | "qemush4" | "qemuppc" | "qemumicroblaze" | "qemuzynq")
- [ -z "$MACHINE" ] && MACHINE=$arg || \
+ [ -z "$MACHINE" -o "$MACHINE" = "$arg" ] && MACHINE=$arg || \
error "conflicting MACHINE types [$MACHINE] and [$arg]"
;;
"ext2" | "ext3" | "ext4" | "jffs2" | "nfs" | "btrfs" | "hddimg" | "hdddirect" )
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] runqemu: don't complain about conflicting machines if they are equal
2015-09-24 16:10 [PATCH] runqemu: don't complain about conflicting machines if they are equal Pascal Bach
@ 2015-09-26 21:58 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2015-09-26 21:58 UTC (permalink / raw)
To: Pascal Bach; +Cc: openembedded-core
On Thu, 2015-09-24 at 18:10 +0200, Pascal Bach wrote:
> When the MACHINE variable was set as an environment variable, via
> "export MACHINE=qemuarm" and runqemu was executed as "runqemu qemuarm"
>
> The confusing error message appears:
> Error: conflicting MACHINE types [qemuarm] and [qemuarm]
>
> This checks if the two values are equal, in that case there is no problem
> and execution can continue.
>
> Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
> ---
> scripts/runqemu | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> mode change 100755 => 100644 scripts/runqemu
I appreciate the patch but we didn't spot the above mode change which
just cost us a bit of time on the autobuilder :(.
I've removed it from the patch.
Cheers,
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-26 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24 16:10 [PATCH] runqemu: don't complain about conflicting machines if they are equal Pascal Bach
2015-09-26 21:58 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox