From: Gary Thomas <gary@mlbassoc.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Can a .bbappend introduce a different PACKAGE_ARCH ?
Date: Sat, 06 Apr 2013 05:28:42 -0600 [thread overview]
Message-ID: <516006EA.2010609@mlbassoc.com> (raw)
In-Reply-To: <515FFDE5.2020303@pseudoterminal.org>
On 2013-04-06 04:50, Carlos Rafael Giani wrote:
> Hello,
>
> assume there is package foo, which is normally not dependent on a specific machine. It is built with default, machine independent configuration options.
> But then I want to add a .bbappend to it, which add some configuration options that make it machine dependent (imagine something like --device=beagleboard).
> I then add PACKAGE_ARCH=${MACHINE_ARCH} to the .bbappend file. Is this actually okay to do? Or does it break something?
You can do this and it will work fine.
However, if your .bbappend file forces the use of any override
directories/files, I believe it will happen automatically. For
example, my BSP layers have their own network configuration files
which I do like this:
gthomas@zeus:/local/poky-multi$ tree -S meta-cobra4430p82/recipes-core/netbase/
meta-cobra4430p82/recipes-core/netbase/
netbase-5.0
cobra4430p82
interfaces
modem.py
netbase_5.0.bbappend
2 directories, 4 files
gthomas@zeus:/local/poky-multi$ cat meta-cobra4430p82/packages/netbase/netbase_5.0.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:${THISDIR}/${PN}:"
SRC_URI_append = " file://modem.py"
do_install_append() {
install -m 0755 ${WORKDIR}/modem.py ${D}/etc
}
This setup generates a machine dependent package.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
prev parent reply other threads:[~2013-04-06 11:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-06 10:50 Can a .bbappend introduce a different PACKAGE_ARCH ? Carlos Rafael Giani
2013-04-06 11:28 ` Gary Thomas [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=516006EA.2010609@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=openembedded-devel@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 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.