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

Tom Rini trini at embeddedalley.com
Wed May 6 23:40:11 UTC 2009


On Wed, May 06, 2009 at 06:38:38PM -0400, Denys Dmytriyenko wrote:
> On Wed, May 06, 2009 at 03:55:57PM -0400, Michael Smith wrote:
> > If GRUB_CONFIG_PACKAGE is set, don't ship menu.lst with grub. Instead,
> > RRECOMMEND the config package. This allows overlays to override menu.lst
> > in a separate package, rather than copying the whole grub package into
> > the overlay.
> 
> It was discussed many times here - no USE flags in OE. You'll end up with 2 
> grub packages of the same name but with different contents - with menu.lst 
> and without.
> One of the recent discussions on this topic:
> http://thread.gmane.org/gmane.comp.handhelds.openembedded/22715/focus=22731

I need to find time to argue for USE flags sometime.  In short 'tho, you
only end up with 2 grub packages that differ if, well, you want them to.
Distros (Angstrom) that let people install stuff on the system from
feeds should do something like:
### DO NOT CHANGE ANY OF THE FOLLOWING IF YOU INTEND TO PUBLISH YOUR
### PACKAGES.  DOING SO WILL BREAK PEOPLE.
USE_FLAG_1 := ...
USE_FLAG_2 := ...

And distros that really want to USE (or not USE) something can set them
differently, and we don't end up with N permutations of recipes that
people have to mind when fixing things nor forking for their own use the
recipes and stripping things out.  It's really two sides of the same
coin.

> One way to solve it would be to always have menu.lst as a separate package and 
> then replace it with your own from the overlay.
> 
> >  SRC_URI = "ftp://alpha.gnu.org/gnu/grub/grub-${PV}.tar.gz \

Unrelated, this should be ${GNU_MIRROR}/grub/grub-${PV}.tar.gz

-- 
Tom Rini




More information about the Openembedded-devel mailing list