[yocto] How to pass compilation options from local.conf?

Simon Chamlian simon.chamlian at mpbc.ca
Tue Aug 7 14:17:16 PDT 2018


Hi,

The manual is quite confusing:

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-PACKAGECONFIG

There are several methods to pass compilation options to a package from
*local.conf*:

PACKAGECONFIG[f1]

or

PACKAGECONFIG_append_pn-*recipename*

or
PACKAGECONFIG_CONFARGS

or
COMMON_EXTRA_OECONF_append_pn-*recipename*



*Which one to use?*

Say for extra compilation options for php from  *local.conf* , do I use*?*

PACKAGECONFIG[php]="--enable-ftp --enable-sysvshm --enable-sysvmsg
--enable-sysvsem --enable-debug"
or
PACKAGECONFIG_append_pn-php = "--enable-ftp --enable-sysvshm
--enable-sysvmsg --enable-sysvsem --enable-debug"
or
COMMON_EXTRA_OECONF_append_pn-php = "--enable-ftp --enable-sysvshm
--enable-sysvmsg --enable-sysvsem --enable-debug"


Thanks,
S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180807/91a6a147/attachment.html>


More information about the yocto mailing list