Yocto MULTICONFIG recipe control

Running tasks using bitbake:

Run task on specific multiconfig:

bitbake mc:<config>:<recipe> -c cleanall

bitbake mc:<config>:<recipe> -c configure

`bitbake mc:: -e | grep ^BB_CURRENT_MC=“

Run task on multiconfig and default config (only one target can be used with the –environment option):

bitbake mc:<config>:<recipe> <recipe> -c cleanall

bitbake mc:<config>:<recipe> <recipe> -c configure

Testing the current multiconfig within a recipe:

Variable assignment:

SRC_URI += “${bb.utils.contains(‘BB_CURRENT_MC’, ‘default’, ‘<value>’, ‘’, d)}”

Bash task conditions:

If [ “${BB_CURRENT_MC}” = “default” ]; then
    # execute default config code
fi

Leave a Reply

Your email address will not be published. Required fields are marked *