* 2 images with single Bitbake recipe
@ 2015-03-09 19:22 Nikolay Dimitrov
2015-03-09 19:31 ` Khem Raj
0 siblings, 1 reply; 8+ messages in thread
From: Nikolay Dimitrov @ 2015-03-09 19:22 UTC (permalink / raw)
To: yocto
Hi guys,
I need an advice for the following Yocto use case.
My system has to boot via minimal initramfs and then must use the full
rootfs. I can use 2 separate recipes to generate the 2 images (minimal
initramfs, complete rootfs), but I prefer to create all my build-
products via single bitbake command.
So, is it possible to build these 2 images with 1 recipe, and if "yes"
then how?
Thanks in advance. Regards,
Nikolay
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
2015-03-09 19:22 2 images with single Bitbake recipe Nikolay Dimitrov
@ 2015-03-09 19:31 ` Khem Raj
2015-03-09 19:56 ` Nikolay Dimitrov
0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2015-03-09 19:31 UTC (permalink / raw)
To: Nikolay Dimitrov; +Cc: yocto
> On Mar 9, 2015, at 12:22 PM, Nikolay Dimitrov <picmaster@mail.bg> wrote:
>
> Hi guys,
>
> I need an advice for the following Yocto use case.
>
> My system has to boot via minimal initramfs and then must use the full
> rootfs. I can use 2 separate recipes to generate the 2 images (minimal
> initramfs, complete rootfs), but I prefer to create all my build-
> products via single bitbake command.
>
> So, is it possible to build these 2 images with 1 recipe, and if "yes"
> then how?
>
Look at how initramfs http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-tasks-bundle_initramfs
and also meta/conf/local.conf.sample.extended
> Thanks in advance. Regards,
> Nikolay
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
2015-03-09 19:31 ` Khem Raj
@ 2015-03-09 19:56 ` Nikolay Dimitrov
2015-03-09 19:58 ` Burton, Ross
2015-03-09 20:00 ` Gary Thomas
0 siblings, 2 replies; 8+ messages in thread
From: Nikolay Dimitrov @ 2015-03-09 19:56 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto
Hi Khem,
On 03/09/2015 09:31 PM, Khem Raj wrote:
>
>> On Mar 9, 2015, at 12:22 PM, Nikolay Dimitrov <picmaster@mail.bg> wrote:
>>
>> Hi guys,
>>
>> I need an advice for the following Yocto use case.
>>
>> My system has to boot via minimal initramfs and then must use the full
>> rootfs. I can use 2 separate recipes to generate the 2 images (minimal
>> initramfs, complete rootfs), but I prefer to create all my build-
>> products via single bitbake command.
>>
>> So, is it possible to build these 2 images with 1 recipe, and if "yes"
>> then how?
>>
>
>
> Look at how initramfs http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-tasks-bundle_initramfs
> and also meta/conf/local.conf.sample.extended
Thanks for answering. INITRAMFS_IMAGE_BUNDLE doesn't achieve what I
need, instead it merges the kernel image and initramfs in a single
file. What I need is, instead of invoking:
bitbake myproduct-image
bitbake myproduct-initrams-image
to invoke:
bitbake myproduct-combined-image
...which should create 2 separate images.
Regards,
Nikolay
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
2015-03-09 19:56 ` Nikolay Dimitrov
@ 2015-03-09 19:58 ` Burton, Ross
2015-03-09 20:05 ` Nikolay Dimitrov
[not found] ` <1425931669.5166.45.camel@concept-embarque.fr>
2015-03-09 20:00 ` Gary Thomas
1 sibling, 2 replies; 8+ messages in thread
From: Burton, Ross @ 2015-03-09 19:58 UTC (permalink / raw)
To: Nikolay Dimitrov; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 346 bytes --]
On 9 March 2015 at 19:56, Nikolay Dimitrov <picmaster@mail.bg> wrote:
> bitbake myproduct-combined-image
>
> ...which should create 2 separate images.
>
If typing both is too much bother, have a recipe that just has
DEPENDS=myproduct-image myproduct-initramfs-image and stub out all the
other tasks so it doesn't do anything.
Ross
[-- Attachment #2: Type: text/html, Size: 741 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
2015-03-09 19:56 ` Nikolay Dimitrov
2015-03-09 19:58 ` Burton, Ross
@ 2015-03-09 20:00 ` Gary Thomas
2015-03-09 20:06 ` Nikolay Dimitrov
1 sibling, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2015-03-09 20:00 UTC (permalink / raw)
To: yocto
On 2015-03-09 13:56, Nikolay Dimitrov wrote:
> Hi Khem,
>
> On 03/09/2015 09:31 PM, Khem Raj wrote:
>>
>>> On Mar 9, 2015, at 12:22 PM, Nikolay Dimitrov <picmaster@mail.bg> wrote:
>>>
>>> Hi guys,
>>>
>>> I need an advice for the following Yocto use case.
>>>
>>> My system has to boot via minimal initramfs and then must use the full
>>> rootfs. I can use 2 separate recipes to generate the 2 images (minimal
>>> initramfs, complete rootfs), but I prefer to create all my build-
>>> products via single bitbake command.
>>>
>>> So, is it possible to build these 2 images with 1 recipe, and if "yes"
>>> then how?
>>>
>>
>>
>> Look at how initramfs http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-tasks-bundle_initramfs
>> and also meta/conf/local.conf.sample.extended
>
> Thanks for answering. INITRAMFS_IMAGE_BUNDLE doesn't achieve what I
> need, instead it merges the kernel image and initramfs in a single
> file. What I need is, instead of invoking:
>
> bitbake myproduct-image
> bitbake myproduct-initrams-image
>
> to invoke:
>
> bitbake myproduct-combined-image
>
> ...which should create 2 separate images.
Just list them both on one command:
bitbake myproduct-image myproduct-initrams-image
If you really want, you could write a recipe myproduct-combined-image
which includes
DEPENDS = "myproduct-image myproduct-initrams-image"
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
2015-03-09 19:58 ` Burton, Ross
@ 2015-03-09 20:05 ` Nikolay Dimitrov
[not found] ` <1425931669.5166.45.camel@concept-embarque.fr>
1 sibling, 0 replies; 8+ messages in thread
From: Nikolay Dimitrov @ 2015-03-09 20:05 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto@yoctoproject.org
Hi Ross,
On 03/09/2015 09:58 PM, Burton, Ross wrote:
>
> On 9 March 2015 at 19:56, Nikolay Dimitrov <picmaster@mail.bg
> <mailto:picmaster@mail.bg>> wrote:
>
> bitbake myproduct-combined-image
>
> ...which should create 2 separate images.
>
>
> If typing both is too much bother, have a recipe that just has
> DEPENDS=myproduct-image myproduct-initramfs-image and stub out all the
> other tasks so it doesn't do anything.
Thanks for the idea, I'll try the add the image as a dependency.
Regards,
Nikolay
PS: It's not just a matter of typing. Other people need to use the
results of my work, and there are already lots of other manual steps
when a software needs to be built and deployed on the target, so adding
one more step doesn't improve our lives.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
2015-03-09 20:00 ` Gary Thomas
@ 2015-03-09 20:06 ` Nikolay Dimitrov
0 siblings, 0 replies; 8+ messages in thread
From: Nikolay Dimitrov @ 2015-03-09 20:06 UTC (permalink / raw)
To: Gary Thomas, yocto
Hi Gary,
On 03/09/2015 10:00 PM, Gary Thomas wrote:
> On 2015-03-09 13:56, Nikolay Dimitrov wrote:
>> Hi Khem,
>>
>> On 03/09/2015 09:31 PM, Khem Raj wrote:
>>>
>>>> On Mar 9, 2015, at 12:22 PM, Nikolay Dimitrov <picmaster@mail.bg>
>>>> wrote:
>>>>
>>>> Hi guys,
>>>>
>>>> I need an advice for the following Yocto use case.
>>>>
>>>> My system has to boot via minimal initramfs and then must use the full
>>>> rootfs. I can use 2 separate recipes to generate the 2 images (minimal
>>>> initramfs, complete rootfs), but I prefer to create all my build-
>>>> products via single bitbake command.
>>>>
>>>> So, is it possible to build these 2 images with 1 recipe, and if "yes"
>>>> then how?
>>>>
>>>
>>>
>>> Look at how initramfs
>>> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-tasks-bundle_initramfs
>>>
>>> and also meta/conf/local.conf.sample.extended
>>
>> Thanks for answering. INITRAMFS_IMAGE_BUNDLE doesn't achieve what I
>> need, instead it merges the kernel image and initramfs in a single
>> file. What I need is, instead of invoking:
>>
>> bitbake myproduct-image
>> bitbake myproduct-initrams-image
>>
>> to invoke:
>>
>> bitbake myproduct-combined-image
>>
>> ...which should create 2 separate images.
>
> Just list them both on one command:
> bitbake myproduct-image myproduct-initrams-image
>
> If you really want, you could write a recipe myproduct-combined-image
> which includes
> DEPENDS = "myproduct-image myproduct-initrams-image"
Thanks. I'll try that and will share what worked for me.
Regards,
Nikolay
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2 images with single Bitbake recipe
[not found] ` <1425931669.5166.45.camel@concept-embarque.fr>
@ 2015-03-10 13:30 ` Nikolay Dimitrov
0 siblings, 0 replies; 8+ messages in thread
From: Nikolay Dimitrov @ 2015-03-10 13:30 UTC (permalink / raw)
To: Francois Muller; +Cc: yocto@yoctoproject.org
Hi Francois,
On 03/09/2015 10:07 PM, Francois Muller wrote:
> Hi,
>
> You may have a look at meta-intel-iot-devkit
> <http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-iot-devkit/> layer
> that does what you expect, I think.
> It produces:
>
> * iot-devkit-image-quark.ext3
> * core-image-minimal-initramfs-quark.cpio.gz
> * bzImage
>
> in the same run.
Thanks, I'll check this out.
Regards,
Nikolay
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-10 13:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-09 19:22 2 images with single Bitbake recipe Nikolay Dimitrov
2015-03-09 19:31 ` Khem Raj
2015-03-09 19:56 ` Nikolay Dimitrov
2015-03-09 19:58 ` Burton, Ross
2015-03-09 20:05 ` Nikolay Dimitrov
[not found] ` <1425931669.5166.45.camel@concept-embarque.fr>
2015-03-10 13:30 ` Nikolay Dimitrov
2015-03-09 20:00 ` Gary Thomas
2015-03-09 20:06 ` Nikolay Dimitrov
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.