linux - How to give options for "configure" using yocto recipes? -


i want write recipe in yocto build custom component. in enable flags according machine.

eg:

if machine x86

my configure command should :

./configure --enable-x86 

if x64

./configure --enable-x64 

i using auto tools building. please me in writing recipe "configure.ac" achieving this.

ps: new yocto.

you can provide configure options using extra_oeconf. here, can append values based on architecture.

extra_oeconf_append_x86="--enable-x86" extra_oeconf_append_x64="--enable-x64" 

you can if architecture (x86/x64) defined aprt of override value. let see override value is:

the yocto bitbake configuration values defined in poky/meta/conf/bitbake.conf. in file, there variable called override. sample value override in bitbake configuration shown below:

overrides = "${target_os}:${translated_target_arch}:build-${build_os}:pn-${pn}:${machineoverrides}:${distrooverrides}:${classoverride}:forcevariable" 

when run bitbake -e , gather output, value override translates based on configuration.

overrides="linux:i586:build-linux:pn-defaultpkgname:x86:qemuall:qemux86:poky:class-target:forcevariable:libc-glibc" 

in setup, if can see x86/x64 part of override value can define configure options described earlier.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -