From: Denys Dmytriyenko <denys@ti.com>
To: "Saran, Sajesh Kumar" <sajesh@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: compiling a native (x86) application using Yocto
Date: Wed, 31 Jul 2013 18:21:56 -0400 [thread overview]
Message-ID: <20130731222156.GB13691@edge> (raw)
In-Reply-To: <8EAE6244CE843044A42356038645C8551573D779@DFLE12.ent.ti.com>
Sajesh,
It appears your Makefile directly calls native gcc to produce x86 binary.
Now, BBCLASSEXTEND allows you to "extend" a regular target recipe that
produces an ARM binary to also produce a native x86 binary. Naming your recipe
as something-native.bb doesn't change the procedure.
So, it first builds and strips an ARM binary and then would have done the same
for x86 binary. But since you set GCC=gcc in your Makefile, it chokes on the
ARM-stripping step.
Now, if you only want a native recipe, instead of BBCLASSEXTEND, you should
just do "inherit native" and that class would short-circuit all the target
build and strip tasks.
--
Denys
On Thu, Jul 25, 2013 at 04:30:07PM -0400, Saran, Sajesh Kumar wrote:
> Recipe is attached with the mail.
>
> Regards,
> Sajesh
>
> -----Original Message-----
> From: Dmytriyenko, Denys
> Sent: Thursday, July 25, 2013 4:25 PM
> To: Saran, Sajesh Kumar
> Cc: meta-arago@arago-project.org
> Subject: Re: [meta-arago] compiling a native (x86) application using Yocto
>
> On Wed, Jul 24, 2013 at 06:26:48PM +0000, Saran, Sajesh Kumar wrote:
> > Hi,
> >
> > I am trying to compile a native tool/application using Yocto.
> >
> > I have added BBCLASSEXTEND = "native" to the recipe. The compilation
> > goes thru fine. But, in do_package_qa it is running a strip command
> > using arm-linux-gnueabihf-strip, which is failing because the
> > application is compiled using gcc. Do I have to anything else to fix of this issue?
>
> Strange, that should be enough... Care to share the recipe?
>
> --
> Denys
prev parent reply other threads:[~2013-07-31 22:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 18:26 compiling a native (x86) application using Yocto Saran, Sajesh Kumar
2013-07-25 20:24 ` Denys Dmytriyenko
2013-07-25 20:30 ` Saran, Sajesh Kumar
2013-07-31 22:21 ` Denys Dmytriyenko [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=20130731222156.GB13691@edge \
--to=denys@ti.com \
--cc=meta-arago@arago-project.org \
--cc=sajesh@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.