[oe] [PATCH 2/2] grub: allow menu.lst to be overridden using GRUB_CONFIG_PACKAGE.

Denys Dmytriyenko denis at denix.org
Sat May 16 19:03:59 UTC 2009


On Fri, May 15, 2009 at 03:21:03PM -0700, Chris Larson wrote:
> On Thu, May 7, 2009 at 12:03 PM, Michael Smith <msmith at cbnco.com> wrote:
> [snip]
> > My grub_0.97.bb could reference file://some.patch in its SRC_URI and bitbake
> > could look in the next COLLECTION after failing to find it in the local one.
> > In fact, I wouldn't even really need a bbfile in the overlay; just having
> > files/menu.lst in the overlay could be enough to replace it. I guess this
> > might just require some fudging to how FILESPATH is set up in base.bbclass.
> 
> This piece is covered relatively easily by manipulating FILESPATHBASE.
> 
> > Second, if a recipe could include a recipe of the same name and let bitbake
> > search for it in the next COLLECTION, overlay packages could get a lot
> > smaller. Say I need to add a private patch to grub -- my overlay
> > grub_0.97.bb, if I had one, could just look like this:
> 
> This piece I believe I have a solution for.  I just wrote a 15 line
> .inc file that when loaded in a .conf, automatically searches any
> recipe's FILESPATH for an amend.inc, and if it exists, parses that in
> after the recipe itself is parsed, so you can amend the recipe with
> tweaks and things at the end of the parse.  So this coupled with the
> aforementioned FILESPATHBASE alterations and you should be able to
> supply overlay specific changes to a recipe without having to copy the
> recipe itself into the overlay.

Chris,

You are on the roll! This is another very welcomed feature for anyone who 
manages overlays. Thanks!

-- 
Denys




More information about the Openembedded-devel mailing list