PREFERRED_VERSION uboot

Hi,
How can I fix this error?
I’m trying to integrate mender onto our board and start by adding the meta-mender layers using “bitbake-layers add-layer”. After the meta-mender-core and meta-mender-demo layers are successfully added I then add PREFERRED_VERSION_u-boot-toradex = “2019%” to the local.conf along with mender recommended items. Then when starting “bitbake core-image-minimal” I always get the following error:

ERROR: Multiple versions of u-boot-toradex are due to be built (/home/ubuntu/yocto/build/../layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb /home/ubuntu/yocto/build/../layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2019.07.bb). Only one version of a given PN should be built in any given build. You likely need to set PREFERRED_VERSION_u-boot-toradex to select the correct version or don't depend on multiple version

Hi @avrobot,

I think you are setting a wrong PREFERRED_PROVIDER.

If you take a look at oe-core/layers/meta-freescale-3rdparty/conf/machine/colibri-imx6ull.conf, you can see the correct way to set them:

PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"

Can you check it, please?

Best regards,

Daniel Morais