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

Denys Dmytriyenko denis at denix.org
Wed May 6 22:38:38 UTC 2009


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

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 \
> -           file://automake-1.10.patch;patch=1 \
> -           file://menu.lst"
> +           file://automake-1.10.patch;patch=1"
> +
> +# Set to the name of a package containing menu.lst to override the one
> +# shipped with this package.
> +GRUB_CONFIG_PACKAGE ?= ""
> +
> +SRC_URI += "${@base_conditional('GRUB_CONFIG_PACKAGE', '', \
> +				'file://menu.lst', '', d)}"
> +
> +RRECOMMENDS += "${GRUB_CONFIG_PACKAGE}"

-- 
Denys




More information about the Openembedded-devel mailing list