Hello! Bitbake documentation states that it is not possible to define a function within .conf file (" r egardless of the type of function, you can only define them in class (.bbclass ) and recipe (.bb or.inc ) files"). However, it turns out that this limitation can be easily circumvented if one puts a definition of function into .inc file and 'requires' it in .conf (bitbake will not emit an error). This trick is extensively used in meta-arm-toolchain and meta-external-toolchain layers (in tcmode-${TCMODE}.inc files) and even once in meta-core (see meta/conf/machine/include/microblaze/feature-microblaze-versions.inc).
Could you please clarify if such "feature" is intentional? Because 1. It is not obvious from bitbake documentation (it is said that functions may be defined within .inc files, but based on word "recipe" I guess that .inc files included in .bb-s were meant) 2. It is kind of counter-intuitive that functions can be intertwined with conf files Thanks in advance, Vladimir
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63589): https://lists.yoctoproject.org/g/yocto/message/63589 Mute This Topic: https://lists.yoctoproject.org/mt/107615041/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-