[meta-freescale] virtual/bootloader is not set incorrectly

Leon Woestenberg leon.woestenberg at gmail.com
Thu May 21 07:28:12 PDT 2015


Hello all,

I was expecting the right boot loader to be built when I build
virtual/bootloader, but it seems the PREFERRED_PROVIDER is wrongly set.

fsl-community-bsp/build$ MACHINE='cgtqmx6' bitbake -n -v virtual/bootloader
| grep boot

NOTE: selecting u-boot-fslc to satisfy virtual/bootloader due to
PREFERRED_PROVIDERS
NOTE: selecting u-boot-fslc to satisfy runtime u-boot-fslc-dev due to
PREFERRED_PROVIDER_virtual/bootloader = u-boot-fslc
NOTE: selecting u-boot-fslc to satisfy runtime u-boot-fslc due to
PREFERRED_PROVIDER_virtual/bootloader = u-boot-fslc
NOTE: selecting u-boot-congatec to satisfy runtime u-boot-congatec-dev due
to PREFERRED_PROVIDER_u-boot = u-boot-congatec
NOTE: selecting u-boot-congatec to satisfy runtime u-boot-congatec due to
PREFERRED_PROVIDER_u-boot = u-boot-congatec

The machine config sets PREFERRED_PROVIDER_u-boot:

grep -rne PREFER ../sources/meta-fsl-arm-extra/conf/machine/cgtqmx6.conf
13:PREFERRED_PROVIDER_u-boot = "u-boot-congatec"
45:PREFERRED_PROVIDER_virtual/kernel ??= "linux-congatec"


Shouldn't it set PREFERRED_PROVIDER_virtual/bootloader instead?

Or else, should PREFERRED_PROVIDER_virtual/bootloader be set to u-boot
instead of u-boot-fslc? (Although then u-boot will be a virtual target
itself??)


I think the config and classes priority is determined by the layer ordering
in bblayers.conf, this is mine:

LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) +
'/../..')}"

BBFILES ?= ""
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-yocto \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  \
  ${BSPDIR}/sources/meta-fsl-arm \
  ${BSPDIR}/sources/meta-fsl-arm-extra \
  ${BSPDIR}/sources/meta-fsl-demos \
"

What is the proper fix for this?


Regards,
-- 
Leon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150521/9eedc724/attachment.html>


More information about the meta-freescale mailing list