[oe] Finding out the IMAGE_BASENAME of the image beeing built

Paul Eggleton paul.eggleton at linux.intel.com
Sat Mar 30 14:13:48 UTC 2013


On Saturday 30 March 2013 13:32:51 Ulf Samuelsson wrote:
> Trying create a programming script recipe and need to find out the
> IMAGE_BASENAME of the bitbake target
> so I can get the filename of the image
> 
> ${MACHINE}-${IMAGE_BASENAME}.ubi
> 
> I.E: if I do
> 
> $ MACHINE=beagleboard  bitbake some-image
> 
> and "some-image_1.0.bb" contains
> 
> IMAGE_BASENAME = "renamed-image"
> 
> Then the resulting image will be
> 
>      "beagleboard-renamed-image.ubi"
> 
> How get this info from another recipe?

You can't. The way to handle this is as part of do_rootfs itself (e.g. from a 
script called from ROOTFS_POSTPROCESS_COMMAND or IMAGE_POSTPROCESS_COMMAND).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-devel mailing list