This layer adds zlib-intel, which PROVIDES zlib.  If meta-intel is added to a 
build but a meta-intel MACHINE isn't used then bitbake will warn that there are 
multiple candidates for zlib:

NOTE: Multiple providers are available for zlib-native (zlib-native, 
zlib-intel-native)
Consider defining a PREFERRED_PROVIDER entry to match zlib-native
NOTE: Multiple providers are available for zlib (zlib, zlib-intel)
Consider defining a PREFERRED_PROVIDER entry to match zlib

Silence these warnings by adding PREFERRED_PROVIDER defaults in layer.conf.

Signed-off-by: Ross Burton <[email protected]>
---
 conf/layer.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/conf/layer.conf b/conf/layer.conf
index 0db08957..e5bd2189 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -31,3 +31,7 @@ BBFILES_DYNAMIC += " \
 "
 
 require ${LAYERDIR}/conf/include/maintainers.inc
+
+PREFERRED_PROVIDER_zlib ?= "zlib"
+PREFERRED_PROVIDER_zlib-native ?= "zlib-native"
+PREFERRED_PROVIDER_nativesdk-zlib ?= "nativesdk-zlib"
-- 
2.20.1

-- 
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to