Dear Diane
I found the problem.
All the meta layers included in sources/fsl-bsp-release (meta-fsl-qt5, meta-fsl-bluez,
meta-fsl-arm, meta-fsl-demos) have a layer conf like this:
BBFILE_COLLECTIONS += "fsl-bsp-release"
BBFILE_PATTERN_fsl-bsp-release := "^${LAYERDIR}"
BBFILE_PRIORITY_fsl-bsp-release = "8"
so the COLLECTION key used is the same for all the layers.
So bitbake is not able to evaluate the priority of layer.
This is why when you issue the command
#>bitbake-layers show-layers
the result is:
meta-fsl-arm ...../sources/meta-fsl-bsp-release/imx/meta-fsl-arm 0
and not
meta-fsl-arm ...../sources/meta-fsl-bsp-release/imx/meta-fsl-arm 8
After I changed the layer.conf of each layer directory with a unique name the problem disappeared.
Attention this is not only a "visualization" problem of bitbake-layers command.
I verified that the real priority evaluated by bitbake for the layer meta-fsl-bsp-release/imx/meta-fsl-arm was 0.
I made this test.
I copy the recipe poky/meta/recipes-connectivity/telepathy/libtelepathy_0.3.3.bb (this layer has priority 5) inside the meta-fsl-bsp-release/imx/meta-fsl-arm/ (layer that should have priority 8).
I compiled the package after having refreshed the bitbake cache. The recipe chosen by bitbake was the one in poky/meta/recipes-connectivity and not the one in meta-fsl-bsp-release/imx/meta-fsl-arm.
Then I changed the COLLECTIONS key in order that every layer.conf has a unique key.
I made the test again.
The recipe chosen was the one inside meta-fsl-bsp-release/imx/meta-fsl-arm/.
I hope you can understand my explanation.
Kind Regards
Andrea