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

Graham Gower graham.gower at gmail.com
Thu Mar 24 23:04:01 UTC 2011


On 25 March 2011 03:04, Khem Raj <raj.khem at gmail.com> wrote:
> On (23/03/11 20:45), Khem Raj wrote:
>> 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 ?
>
> Forgot to attach the patch. Here it is this time
>

Still ENOPATCH.

Is the mailing list stripping it?




More information about the Openembedded-core mailing list