From: Otavio Salvador Date: Tue, 2 Sep 2014 18:54:45 +0000 (-0300) Subject: linux-mfgtool.inc: Fix dynamic packages handling X-Git-Tag: 2.1~856 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9378ffa7c49ce71c1089f1987a980cbcc919a279;p=meta-freescale.git linux-mfgtool.inc: Fix dynamic packages handling In case we have kernel modules, a runtime dependency or recommendation can break the dependency resolution algorithm of BitBake resulting on a conflict like: ,----[ Provider conflict error ] | ERROR: Trying to resolve runtime dependency kernel-module-nfs resulted | in conflicting PREFERRED_PROVIDER entries being found. | The providers found were: | ['.../meta-customer/recipes-kernel/linux/linux-customer-mfgtool_3.10.17.bb', | '.../meta-customer/recipes-kernel/linux/linux-customer_3.10.17.bb'] | The PREFERRED_PROVIDER entries resulting in this conflict were: | ['PREFERRED_PROVIDER_linux-mfgtool = mfgtool-linux-customer', | 'PREFERRED_PROVIDER_virtual/kernel = linux-customer'] `---- To fix this, we need to rename the dynamic packages and hence change the built binaries, solving the conflict. Change-Id: I8becb8a4a839494720711f60f51515aba0140c68 Signed-off-by: Otavio Salvador --- diff --git a/meta-fsl-arm/recipes-kernel/linux/linux-mfgtool.inc b/meta-fsl-arm/recipes-kernel/linux/linux-mfgtool.inc index 5c042ee2..106a7d95 100644 --- a/meta-fsl-arm/recipes-kernel/linux/linux-mfgtool.inc +++ b/meta-fsl-arm/recipes-kernel/linux/linux-mfgtool.inc @@ -59,6 +59,7 @@ python () { clsextend.rename_package_variables((d.getVar("PACKAGEVARS", True) or "").split()) clsextend.map_packagevars() + clsextend.map_regexp_variable("PACKAGES_DYNAMIC") } addhandler mfgtool_recipe_handler