From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Laurentiu Palcu <laurentiu.palcu@intel.com>
Cc: openembedded-core@lists.openembedded.org,
Martin Jansa <martin.jansa@gmail.com>,
openembedded-commits@lists.openembedded.org
Subject: Re: [oe-commits] Laurentiu Palcu : qemu: add wrapper for qemu-mips binary
Date: Mon, 08 Oct 2012 10:14:46 +0100 [thread overview]
Message-ID: <1349687686.15658.98.camel@ted> (raw)
In-Reply-To: <5072904F.8060007@intel.com>
On Mon, 2012-10-08 at 11:35 +0300, Laurentiu Palcu wrote:
>
> On 10/06/2012 09:13 PM, Khem Raj wrote:
> > On Sat, Oct 6, 2012 at 9:21 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> >>
> >>> +# IMPORTANT: This piece needs to be removed once the root cause is fixed!
> >>> +do_install_append() {
> >>> + create_wrapper ${D}/${bindir}/qemu-mips \
> >>> + QEMU_RESERVED_VA=0x0
> >>> +}
> >>> +# END of qemu-mips workaround
> >>
> >> What about checking if mips is in QEMU_TARGETS before doing this?
> >>
> >
> > or simply for check for existence of qemu-mips before creating the wrapper
> >
> >> Right now this breaks all distros without mips in QEMU_TARGETS.
> Sorry, I totally missed this. :| What about adding a simple check in the
> create_wrapper script itself? We create the wrapper only if the target
> binary exists. It sounds better this way and the user does not
> necessarily have to remember to check for the binary existence before
> creating the wrapper.
>
> I'll prepare a patch.
In general I think we expect the target to exist. qemu is a little
special since the user can configure it different ways. I therefore see
qemu as being the exception in this case rather than the rule and think
the default behaviour for create_wrapper should be to fail if it doesn't
exist as there is likely some other issue.
Cheers.
Richard
prev parent reply other threads:[~2012-10-08 9:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20121003114821.8D16410375@opal>
2012-10-06 16:21 ` [oe-commits] Laurentiu Palcu : qemu: add wrapper for qemu-mips binary Martin Jansa
2012-10-06 18:13 ` Khem Raj
2012-10-08 8:26 ` Richard Purdie
2012-10-08 8:35 ` Laurentiu Palcu
2012-10-08 9:14 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349687686.15658.98.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=laurentiu.palcu@intel.com \
--cc=martin.jansa@gmail.com \
--cc=openembedded-commits@lists.openembedded.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox