AnsweredAssumed Answered

How to solve mutliple bb files to be built which each provide the same package in yocto?

Question asked by Maricle Wang on Apr 28, 2015
Latest reply on May 21, 2015 by gusarambula

hello,

     everyone, when i use yocto to build my own image, there happends some problems.Here is the error

 

ERROR: Multiple .bb files are due to be built which each provide virtual/kernel (fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.10.17.bb fsl-release-bsp/sources/meta-sources/my-linux_3.10.17.bb).

This usually means one provides something the other doesn't and should.

 

i know yocto has "PREFERRED_PROVIDER" to choose what  i want  .so i modify my layer's "layer.conf" ,here is what it changed

 

BBFILE_COLLECTIONS += "kernel"

BBFILE_PATTERN_kernel = "^${LAYERDIR}/"

BBFILE_PRIORITY_kernel = "9"

 

PREFERRED_PROVIDER_virtual/kernel = "taflus-linux-2wk"

PREFERRED_VERSION_taflus-linux-2wk_mx6 = "3.10.17"\

 

but there happen new problems :

NOTE: Resolving any missing task queue dependencies

NOTE: multiple providers are available for runtime kernel-base (linux-fslc, linux-imx, linux-boundary)

NOTE: consider defining a PREFERRED_PROVIDER entry to match kernel-base

NOTE: multiple providers are available for runtime kernel-image (linux-fslc, linux-imx, linux-boundary)

NOTE: consider defining a PREFERRED_PROVIDER entry to match kernel-image

 

and then it doesn't compile my kernel . i don't know how to compile my kernel when building my image and how to use "PREFERRED_PROVIDER" correctly .

Please give some inspiration

 

 

Outcomes