All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Chris Tapp <opensource@keylevel.com>
Cc: yocto@yoctoproject.org
Subject: Re: Configuring a layer to support multiple targets
Date: Fri, 12 Aug 2011 16:54:28 -0600	[thread overview]
Message-ID: <4E45AF24.5070804@mlbassoc.com> (raw)
In-Reply-To: <56EF2FAC-D4B5-4EC7-ADC1-6AE0848A51FD@keylevel.com>

On 2011-08-12 16:31, Chris Tapp wrote:
> What is the best way to configure a layer to support multiple targets that share a common base?
>
> For example, a set of targets that use the Vortex86DX SOC share common peripherals and also have per-variant peripherals.
>
> I was thinking:
>
> 1) Have a conf/machine file for each variant;
> 2) Make these use an include for the Vortex86DX SOC.
>
> However, I can't work out how to get a per-machine defconfig file. Is there some way of using the machine name to do this? Can I just use
>
> FILESEXTRAPATHS := "${THISDIR}/${PN}/${MACHINE}"
>
> in a kernel .bbappend file?

That shouldn't even be necessary. Just something like this:
   FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}"
and it will look for files in various directories
   ${THISDIR}/${PN}/${MACHINE}
   ${THISDIR}/${PN}
(and maybe some others)

For example, I have one layer for a project which supports
three different targets (all part of the same platform) using
this technique.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2011-08-12 22:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12 22:31 Configuring a layer to support multiple targets Chris Tapp
2011-08-12 22:54 ` Gary Thomas [this message]
2011-08-24  7:59   ` Missing patch files in SRC_URIs Chris Tapp
2011-08-24 11:11     ` Paul Eggleton
2011-08-24 19:36       ` Chris Tapp
2011-08-13  1:22 ` Configuring a layer to support multiple targets Bruce Ashfield
2011-08-17  7:59   ` Chris Tapp
2011-08-17 15:18     ` Bruce Ashfield
2011-08-17 19:07       ` Chris Tapp
2011-08-17 19:15         ` Bruce Ashfield
2011-08-17 19:38           ` Chris Tapp
     [not found]             ` <4E4C2399.1040505@windriver.com>
2011-08-17 20:42               ` Chris Tapp
2011-08-22 18:52                 ` Bruce Ashfield
2011-08-22 21:21                   ` Chris Tapp

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=4E45AF24.5070804@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=opensource@keylevel.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.