* changing grub.cfg per image
@ 2014-12-23 17:14 Stuart Weaver
2014-12-24 17:17 ` Khem Raj
2014-12-29 2:36 ` ChenQi
0 siblings, 2 replies; 3+ messages in thread
From: Stuart Weaver @ 2014-12-23 17:14 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 761 bytes --]
Hi All,
I've currently got two yocto images. I would like to have different
grub.cfg files for each image and therefore was wondering what would be the
best way to achieve this?
Currently I am playing with the idea of just changing the APPEND variable
within the machine conf file, however there doesn't seem to be a way of
making this image dependant. Hence, would I have to create two different
machines and change which machine I'm building for everytime I build each
image?
Another idea would be to create my own version of grub-efi.bbclass however
I'm currently unsure of how to choose my custom version within a image file.
If anyone has any suggestions on the best way forward, it would be very
much appreciated!
Regards,
Stuart
[-- Attachment #2: Type: text/html, Size: 909 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: changing grub.cfg per image
2014-12-23 17:14 changing grub.cfg per image Stuart Weaver
@ 2014-12-24 17:17 ` Khem Raj
2014-12-29 2:36 ` ChenQi
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2014-12-24 17:17 UTC (permalink / raw)
To: Stuart Weaver; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
On Dec 24, 2014 9:49 AM, "Stuart Weaver" <smweaver545@gmail.com> wrote:
>
> Hi All,
>
> I've currently got two yocto images. I would like to have different
grub.cfg files for each image and therefore was wondering what would be the
best way to achieve this?
>
> Currently I am playing with the idea of just changing the APPEND variable
within the machine conf file, however there doesn't seem to be a way of
making this image dependant. Hence, would I have to create two different
machines and change which machine I'm building for everytime I build each
image?
>
You could define a IMAGE_FEATURE and then inherit it in image recipe. Then
write image post processing function to edit geub.cfg based on image
feature. There are examples of such cases already
> Another idea would be to create my own version of grub-efi.bbclass
however I'm currently unsure of how to choose my custom version within a
image file.
>
> If anyone has any suggestions on the best way forward, it would be very
much appreciated!
>
> Regards,
> Stuart
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 1568 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: changing grub.cfg per image
2014-12-23 17:14 changing grub.cfg per image Stuart Weaver
2014-12-24 17:17 ` Khem Raj
@ 2014-12-29 2:36 ` ChenQi
1 sibling, 0 replies; 3+ messages in thread
From: ChenQi @ 2014-12-29 2:36 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 985 bytes --]
On 12/24/2014 01:14 AM, Stuart Weaver wrote:
> Hi All,
>
> I've currently got two yocto images. I would like to have different
> grub.cfg files for each image and therefore was wondering what would
> be the best way to achieve this?
>
> Currently I am playing with the idea of just changing the APPEND
> variable within the machine conf file, however there doesn't seem to
> be a way of making this image dependant. Hence, would I have to create
> two different machines and change which machine I'm building for
> everytime I build each image?
>
> Another idea would be to create my own version of grub-efi.bbclass
> however I'm currently unsure of how to choose my custom version within
> a image file.
>
meta/classes/bootimg.bbclass:EFI_PROVIDER ?= "grub-efi"
How about setting the above variable?
Regards,
Chen Qi
> If anyone has any suggestions on the best way forward, it would be
> very much appreciated!
>
> Regards,
> Stuart
>
>
[-- Attachment #2: Type: text/html, Size: 2135 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-29 2:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-23 17:14 changing grub.cfg per image Stuart Weaver
2014-12-24 17:17 ` Khem Raj
2014-12-29 2:36 ` ChenQi
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.