Add your command to the same help file here you see the existing qemuarm target
 
You can now run 'bitbake <target>'
Common targets are:
     obmc-phosphor-image
You can also run generated qemu images with a command like:
     runqemu qemuarm <<<<<---------WHERE EVER THAT COMES FROM
 
 
 
I hit a build failure, but it went away the 2nd time I tried.  Probably just ignore unless that is an interesting data point.
 
| ERROR: Function failed: Fetcher failure for URL: 'git://git.qemu.org/qemu.git;protocol=git'. Unable to fetch URL from any source.
ERROR: Task 71 (virtual:native:/home/causten/openbmc-barreleye/meta/recipes-devtools/qemu/qemu_git.bb, do_fetch) failed with exit code '1'
 
No network yet :(   Makes things hard to use.  Can you add an ethernet device?
 
 

Chris Austen
POWER Systems Enablement Manager
(512) 286-5184 (T/L: 363-5184)
 
 
----- Original message -----
From: Joel Stanley <joel@jms.id.au>
Sent by: "openbmc" <openbmc-bounces+austenc=us.ibm.com@lists.ozlabs.org>
To: Andrew Jeffery <andrew@aj.id.au>
Cc: OpenBMC <openbmc@lists.ozlabs.org>
Subject: Re: [PATCH] runqemu: Add palmetto target
Date: Thu, Mar 17, 2016 12:20 AM
 
On Thu, Mar 17, 2016 at 3:22 PM, Andrew Jeffery <andrew@aj.id.au> wrote:
> The patch does a few things, but is more for inciting feedback than for
> merging:
>
> * Adds qemu_git.bb in favour of qemu_2.4.0.bb
> * Configured to build from master, at the commit merging the AST2400 support
> * Adds a runqemu target 'palmetto'

This is a good idea. Fix up the commit message so we can merge it :)

>
> diff --git a/yocto-poky/meta/recipes-devtools/qemu/qemu.inc b/yocto-poky/meta/recipes-devtools/qemu/qemu.inc
> index f6c0ae3..80ba2ca 100644
> --- a/yocto-poky/meta/recipes-devtools/qemu/qemu.inc
> +++ b/yocto-poky/meta/recipes-devtools/qemu/qemu.inc

yocto-poky is supposed to be the upstream repository, and shouldn't be
patched by us.

I don't know how poky lets us override built in recipies with those
from other meta- packages. Can we carry your qemu-git.bb in
meta-whatever instead?

Patrick, do you have any suggestions here?


> diff --git a/yocto-poky/scripts/runqemu b/yocto-poky/scripts/runqemu
> index 23cf5be..f09da50 100755
> --- a/yocto-poky/scripts/runqemu
> +++ b/yocto-poky/scripts/runqemu

The changes to this script look like a good start.

> @@ -110,7 +110,7 @@ while true; do
>      arg=${1}
>      case "$arg" in
>          "qemux86" | "qemux86-64" | "qemuarm" | "qemuarm64" | "qemumips" | "qemumipsel" | \
> -        "qemumips64" | "qemush4"  | "qemuppc" | "qemumicroblaze" | "qemuzynq")
> +        "qemumips64" | "qemush4"  | "qemuppc" | "qemumicroblaze" | "qemuzynq" | "palmetto")

Perhaps call it qemupalmetto? qemupalmbmc? to match the existing ones.

>              [ -z "$MACHINE" ] && MACHINE=$arg || \
>                  error "conflicting MACHINE types [$MACHINE] and [$arg]"
>              ;;
> @@ -236,13 +236,13 @@ fi
>
_______________________________________________
openbmc mailing list
openbmc@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/openbmc