[OE-core] Changing variable value between tasks

Daniel Lazzari dlazzari at leapfrog.com
Tue Nov 1 18:22:56 UTC 2011


I was wondering if there's a way to override a variable's value specifically for a single task.

My use case for this is that I'm working on a split-image class that splits the rootfs up after install but before image creation, then creates 2 separate images (this helps us keep the rootfs separate from assets and user data). The split works fine, but when it comes time to create an image from the second, non-root file system (which I do in a new task, after do_rootfs), the get_imagecmds(d) call has filled in all of the variables with the values from the rootfs. I need to override variables like IMAGE_ROOTFS, but only for this one task. (I have an ugly work around involving copying the contents of the image_types.bbclass file into my new class and changing variable names, but would prefer not to do it that way)

Thanks,

Dan Lazzari Jr.
Firmware Engineer
dlazzari at leapfrog.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20111101/a9abc310/attachment-0002.html>


More information about the Openembedded-core mailing list