From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: wrapping bb and updating base bb environments
Date: Tue, 15 Nov 2011 18:52:41 -0500 [thread overview]
Message-ID: <20111115235241.GC15557@denix.org> (raw)
In-Reply-To: <CAObi9r-fY1M+5PbW=ZXxfPigrT_yrOabWv9C1_2VL-OBg037Xg@mail.gmail.com>
On Tue, Nov 15, 2011 at 09:43:04PM +0200, mgundes wrote:
> Hi,
>
> I wonder if there is a way to wrap a bb file. For example, I use
> dropbear with oe classic but I need to make some update in dropbear init
> script. I copied oe/openembedded/recipes/dropbear/ to another bb path which
> has higher bbfile priority. In this case bitbake find bb and files
> in workarea/recipes/dropbear/ and I update init script in
> path workarea/recipes/dropbear/dropbear/init. It is ok and work fine
> however I duplicate whole recipe files for my little update. Is there a
> better way do same thing without duplicating whole files such as simple bb
> wrapping original dropbear bb file?
>
> Since oe is so modular and talented I though there would already be a
> way to do that :)
There are at least 2 ways - first is the old amend class[1], which allows you
to alter recipes with simple amend.inc placed in your overlay, that gets
parsed after the corresponding recipe, letting you overwrite any variables
from the original recipe, like we often do in Arago, for example[2][3].
Another way is to use bbappend feature of the newer bitbake. It's used quite a
lot with the "new" layered structure of oe-core and meta-oe. You just place a
file, named like your recipe, but instead of .bb extension, it's .bbappend[4][5]
[1] http://cgit.openembedded.org/openembedded/tree/classes/amend.bbclass?h=org.openembedded.dev
[2] http://arago-project.org/git/?p=arago.git;a=blob;f=recipes/openobex/openobex/amend.inc;hb=HEAD
[3] http://arago-project.org/git/?p=arago.git;a=blob;f=recipes/qt4/qt4-embedded-4.7.2/amend.inc;hb=HEAD
[4] http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/gcc/gcc-cross_4.6.bbappend
[5] http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.4.bbappend
--
Denys
prev parent reply other threads:[~2011-11-15 23:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-15 19:43 wrapping bb and updating base bb environments mgundes
2011-11-15 23:52 ` 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=20111115235241.GC15557@denix.org \
--to=denis@denix.org \
--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.