Hi Ulf,

$ MACHINE=beagleboard  bitbake -e some-image

shows all variables including $IMAGE_BASENAME without actually
building the image.
Using grep you can take the value of IMAGE_BASENAME, like as:

$ MACHINE=beagleboard  bitbake -e some-image | grep ^IMAGE_BASENAME

Does it help you?

If possible, consider to use hooks, for example, IMAGE_POSTPROCESS_COMMAND .
Refer image.bbclass for details. It might make things straiter.

Regards,
-- 
Takeshi Hamasaki

2013/3/30 Ulf Samuelsson <openembed...@emagii.com>:
> 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?
>
> BR
> Ulf Samuelsson
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to