[OE-core] [PATCH v2 1/3] qemu.bbclass: add qemu_run_binary() function

Laurentiu Palcu laurentiu.palcu at intel.com
Thu Dec 20 14:59:20 UTC 2012


On 12/20/2012 04:45 PM, Burton, Ross wrote:
> On 20 December 2012 13:15, Laurentiu Palcu <laurentiu.palcu at intel.com> wrote:
>> dynamic_loader = rootfs_path + '$(readelf -l ' + rootfs_path + \
>>       binary + '| grep "Requesting program interpreter"|sed -e \'s/^.*\[.*: \(.*\)\]/\\1/\')'
> 
> Would it be easier to do the string manipulation in python?  Spawning
> grep and sed when Python can do string manipulation seems excessive.
Ok, I agree. But how do you call python routines from the postinstall
scriptlets which run in do_rootfs context? readelf needs to run at
postinstall time because the binary we run through qemu does not
necessarily belong to the same package. Let's take, for example, the
current patchset. You can have a recipe that provides an input method
module and call gtk-query-modules-2.0 binary to create the cache.

If you know a method to do it, feel free to share.

Thanks,
Laurentiu

> 
> Nice addition to the class though.
> 
> Ross
> 




More information about the Openembedded-core mailing list