[yocto] Initramfs image name (INITRAMFS_IMAGE)

Paul Eggleton paul.eggleton at linux.intel.com
Wed Apr 22 02:18:11 PDT 2015


On Wednesday 22 April 2015 11:07:43 Marcin Krzemiński wrote:
> 2015-04-21 15:20 GMT+02:00 Paul Eggleton <paul.eggleton at linux.intel.com>:
> > On Tuesday 21 April 2015 08:54:49 Marcin Krzemiński wrote:
> > > I want to set my initramfs image name in my image recipe.
> > > In local.conf I've set:
> > > 
> > > INITRAMFS_IMAGE_BUNDLE="1"
> > > 
> > > In my image recipe I am setting image name:
> > > 
> > > INITRAMFS_IMAGE = "myimage-image-minimal"
> > > 
> > > Unfortunately when kernel recipe is parsed INITRAMFS_IMAGE variable i
> > 
> > empty.
> > 
> > > running bitbake -e tells that this variable is properly set.
> > > I think because image recipe is parsed at the very end kernel recipe can
> > > not see it.
> > > I tried to use export INITRAMFS_IMAGE (like in example) but this also
> > > not
> > > working.
> > > Is the any way that I can do this?
> > 
> > In general, one recipe cannot set a variable such that it is seen from
> > another recipe, our system doesn't work that way. You need to set it at
> > the configuration level - local.conf, or more appropriately a custom distro
> > config file.
>
> In such below sentence from local.conf.sample is wrong or I missing
> something here?
> 
> *# NOTE: You can set INITRAMFS_IMAGE in an image recipe, but*
> *#       INITRAMFS_IMAGE_BUNDLE can only be set in a conf file.*

It would seem that this is no longer correct - perhaps it was true in an older 
version. kernel.bbclass (which is inherited by all kernel recipes) reads both 
of these variables, so they do both need to be set at the configuration level. 
We should update the comment.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list