]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-mfgtool.inc: Fix dynamic packages handling
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 2 Sep 2014 18:54:45 +0000 (15:54 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 2 Sep 2014 19:23:37 +0000 (16:23 -0300)
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 <otavio@ossystems.com.br>
meta-fsl-arm/recipes-kernel/linux/linux-mfgtool.inc

index 5c042ee2261f5f4ab8a00bcfb9f3c9f7f41a96de..106a7d95668de133a2ca4ac831e4d1ce18c28972 100644 (file)
@@ -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