Openembedded Core Discussions
 help / color / mirror / Atom feed
* Changing variable value between tasks
@ 2011-11-01 18:22 Daniel Lazzari
  2011-11-01 18:36 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Lazzari @ 2011-11-01 18:22 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

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@leapfrog.com


[-- Attachment #2: Type: text/html, Size: 5433 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Changing variable value between tasks
  2011-11-01 18:22 Changing variable value between tasks Daniel Lazzari
@ 2011-11-01 18:36 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2011-11-01 18:36 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2011-11-01 at 18:22 +0000, Daniel Lazzari wrote:
> I was wondering if there’s a way to override a variable’s value
> specifically for a single task.

There is indeed. As an example:

$ cat meta/conf/bitbake.conf | grep PARALLEL
EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "

which overrides EXTRA_OEMAKE for the compile task.

Cheers,

RIchard




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-01 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 18:22 Changing variable value between tasks Daniel Lazzari
2011-11-01 18:36 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox