All of lore.kernel.org
 help / color / mirror / Atom feed
From: richard.purdie@linuxfoundation.org
To: "Westermann, Oliver" <Oliver.Westermann@cognex.com>,
	William Mills <wmills@ti.com>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>,
	 "Dmytriyenko, Denys" <denys@ti.com>
Subject: Re: [EXTERNAL] Re: Issues adding bare meta toolchain to yocto build
Date: Thu, 24 Oct 2019 16:55:59 +0100	[thread overview]
Message-ID: <65bf32790a18301a58e7d5f515e5e1320bb162f4.camel@linuxfoundation.org> (raw)
In-Reply-To: <BN6PR06MB3138924730BC280E950B0549866A0@BN6PR06MB3138.namprd06.prod.outlook.com>

On Thu, 2019-10-24 at 15:37 +0000, Westermann, Oliver wrote:
> > On Thu, 2019-10-24 at 04:01 +0000, Richard Purdie wrote:
> > If its a native recipe, there are no packages and therefore FILES
> > doesn't make sense.
> 
> Oh, I have to admit I'm pretty new to the concept of the native
> packages.
> Where can I find the list of files that are considered to be
> installed into a "native" packages sysroot?

http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/classes/staging.bbclass

SYSROOT_DIRS_NATIVE vs. just SYSROOT_DIRS
(at the top of the file)

The code which uses these is below in that file and handles which files
get "staged". We stage a different set for native and target.

> An good option for me would be to eg. install the toolchain into the
> native sysroots /opt/ dir for usage by other recipes.

You can probably do that by extending SYSROOT_DIRS in the recipe.

> > Can you confirm that recipe does work?
> 
> For the TI recipe, no, I can't. I found it online and used it as a
> guide for my first steps on the topic.
>
> 
> > If you install the binaries into ${bindir} they will. If you place
> > them
> > somewhere else which the system doesn't know about, they probably
> > won't.
> > 
> > There are ways to make alternative locations work but I don't see
> > any
> > of that in the above recipe.
> 
> Can you point me to these ways? :)

See above, easiest is extending SYSROOT_DIRS.

> > There isn't anything that special about a baremetal compiler except
> > it sets some different default flags and is missing the library
> > support.
> 
> I agree, though using linaro has the benefit that we would use the
> same toolchain in yocto as in "regular development" of the m4
> functionality.

Agreed. If you want a newlib compiler (which is a bit more than
baremetal as I understand the term) you'd need a multiconfig build to
generate one too as discussed in the other part of the thread.

Cheers,

Richard







  reply	other threads:[~2019-10-24 15:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 11:23 Issues adding bare meta toolchain to yocto build Westermann, Oliver
2019-10-23 22:34 ` Richard Purdie
2019-10-24 10:03   ` [EXTERNAL] " Westermann, Oliver
2019-10-24 11:01     ` richard.purdie
2019-10-24 13:43       ` William Mills
2019-10-24 14:02         ` richard.purdie
2019-10-24 14:30           ` William Mills
2019-10-24 15:37             ` Westermann, Oliver
2019-10-24 15:55               ` richard.purdie [this message]
2019-10-25  8:08                 ` Westermann, Oliver
2019-10-24 15:50             ` richard.purdie

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=65bf32790a18301a58e7d5f515e5e1320bb162f4.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=Oliver.Westermann@cognex.com \
    --cc=denys@ti.com \
    --cc=wmills@ti.com \
    --cc=yocto@yoctoproject.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 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.