[bitbake-devel] Making a noexec task executable again

Chris Larson clarson at kergoth.com
Wed Aug 8 21:52:19 UTC 2012


On Wed, Aug 8, 2012 at 2:19 PM, Daniel Lazzari <dlazzari at leapfrog.com> wrote:
> Good suggestion but it didn't seem to work. I added this to my image:
> addtask fetch2
> do_fetch2[dirs] = "${DL_DIR}"
> python do_fetch2() {
>         base_do_fetch()
> }
>
> And I get an error saying:
> NameError: global name 'base_do_fetch' is not defined

base_do_fetch is a metadata function, not a def'd python function. Use
bb.build.exec_func() instead.
-- 
Christopher Larson




More information about the bitbake-devel mailing list