[OE-core] Parsing error when adding a python function in .inc file

Khem Raj raj.khem at gmail.com
Thu Mar 24 03:45:37 UTC 2011


Hi

I am facing a strange problem. I am trying to add a small python function to qemu.inc and bitbake keeps telling me this

NOTE: Out of date cache found, rebuilding...
ERROR: Error parsing
/home/kraj/work/newoe/sources/openembedded-core/meta/recipes-devtools/qemu/qemu_git.bb:
Failure expanding variable EXTRA_OECONF, expression was
${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls
--enable-kvm --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370
which triggered exception NameError: name 'get_qemu_target_list' is not
defined
ERROR: Command execution failed: Exited with 1


Now if I move this function into a separate file say qemu-targets.inc
and require qemu-targets.inc inside qemu.inc then it works correctly

There is similar kind of code in gcc-common.inc which is used in
different inc files in gcc. I tried to use the python function defined
in gcc-common.inc in same gcc-common.inc file and it worked so I dont
know why qemu.inc case is special.

Any insights ?

I have attached the patch which I am using

-- 
-Khem


More information about the Openembedded-core mailing list