From: Gary Thomas <gary@mlbassoc.com>
To: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: inc files in recipes
Date: Fri, 19 Nov 2010 01:55:28 -0700 [thread overview]
Message-ID: <4CE63B80.30802@mlbassoc.com> (raw)
In-Reply-To: <AANLkTim9rqmdOZf2bHwuqbkJRMAnWP4sFj11S1LPtUbG@mail.gmail.com>
On 11/19/2010 01:44 AM, Frans Meulenbroeks wrote:
> Dear all,
>
> Peeking at flex I was wondering whether we should try to avoid using
> .inc files in recipes especially if there is only one recipe.
>
> flex has:
> frans@frans-desktop:~/yocto/poky-laverne-4.0$ ls meta/recipes-devtools/flex
> flex_2.5.35.bb flex.inc
>
> Here the inc file could be merged into the bb file.
> This has the advantage of having only a single file, so it is slightly
> easier if you want to read or maintain the recipe.
>
> For recipes with multiple versions (e.g. tar) it might be useful to
> have inc files. It is really a tradeoff between easy access/reading
> and maintainability here.
>
> (and I think for some packages (e.g. gcc) the inc file is actually very useful!)
The fact that there is only one recipe using a particular .inc is (I believe)
a Poky/Yocto design practice. Once a given recipe is known to work and cause
no other dependencies or regressions, older versions are purged. This is how
Poky can build a very useful embedded system with only ~1000 recipes, whereas
OE has terrible bloat (IMO) of nearly 8000!
The practice of using a well-crafted .inc file should make it easier to keep
up with the upstream changes. Often, moving to a new version is as simple as
creating a new recipe with the appropriate PN and you're done. Very little
duplication of effort, code or rules.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2010-11-19 8:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 8:44 inc files in recipes Frans Meulenbroeks
2010-11-19 8:55 ` Gary Thomas [this message]
2010-11-19 9:24 ` Frans Meulenbroeks
2010-11-19 9:20 ` Tian, Kevin
2010-11-19 9:42 ` Frans Meulenbroeks
2010-11-19 9:47 ` Tian, Kevin
2010-11-19 12:02 ` Richard Purdie
2010-11-19 12:05 ` Richard Purdie
2010-11-19 12:25 ` Frans Meulenbroeks
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=4CE63B80.30802@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=fransmeulenbroeks@gmail.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.