FSL Community BSP bblayer.conf invalid for 'bitbake-layers layerindex-fetch'
Tim Harvey
Greetings,
I've found that bitbake-layers has a nice subcommand 'layerindex-fetch' that will fetch layers from https://layers.openembedded.org/ pulling in their dependencies and adding them into your bblayers.conf. This is a really nice tool but I find that the layout of the FSL Community BSP doesn't work properly with it because of where meta-oenemebedded gets placed. For this to work layers need to be placed in BBLAYERS_FETCH_DIR which is set to COREBASE (sources/poky) otherwise meta-openembedded gets duplicated. Here's an example of what I'm talking about: $ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master $ repo sync $ MACHINE=imx6qsabrelite DISTRO=poky source setup-environment build $ bitbake-layers layerindex-fetch meta-networking # add meta-networking layer Loading cache: 100% |############################################| Time: 0:00:00 Loaded 2320 entries from dependency cache. Layer Required by Git repository Subdirectory =================================================================================================================== meta-networking - git://git.openembedded.org/meta-openembedded meta-networking openembedded-core meta-networking git://git.openembedded.org/openembedded-core meta meta-oe meta-networking git://git.openembedded.org/meta-openembedded meta-oe meta-python meta-networking git://git.openembedded.org/meta-openembedded meta-python Cloning into '/usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded'... remote: Counting objects: 75951, done. remote: Compressing objects: 100% (25800/25800), done. remote: Total 75951 (delta 46633), reused 75600 (delta 46386) Receiving objects: 100% (75951/75951), 26.05 MiB | 10.20 MiB/s, done. Resolving deltas: 100% (46633/46633), done. Checking connectivity... done. Adding layer "meta-oe" to conf/bblayers.conf Adding layer "meta-python" to conf/bblayers.conf Adding layer "meta-networking" to conf/bblayers.conf $ cat conf/bblayers.conf POKY_BBLAYERS_CONF_VERSION = "2" BBPATH = "${TOPDIR}" BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" BBFILES ?= "" BBLAYERS = " \ ${BSPDIR}/sources/poky/meta \ ${BSPDIR}/sources/poky/meta-poky \ ${BSPDIR}/sources/meta-openembedded/meta-oe \ ${BSPDIR}/sources/meta-openembedded/meta-multimedia \ ${BSPDIR}/sources/meta-freescale \ ${BSPDIR}/sources/meta-freescale-3rdparty \ ${BSPDIR}/sources/meta-freescale-distro \ /usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded/meta-oe \ /usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded/meta-python \ /usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded/meta-networking \ " ^^^^ note we now have two copies of meta-openembedded which causes duplicate recipes/includes etc $ bitbake core-image-console WARNING: Duplicate inclusion for /usr/src/ventana/yocto/pyro-2.3/sources/meta-openembedded/meta-oe/conf/distro/include/meta_oe_security_flags.inc in /usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded/meta-oe/conf/layer.conf WARNING: Duplicate inclusion for /usr/src/ventana/yocto/pyro-2.3/sources/meta-openembedded/meta-oe/conf/distro/include/meta_oe_security_flags.inc in /usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded/meta-oe/conf/layer.conf WARNING: Duplicate inclusion for /usr/src/ventana/yocto/pyro-2.3/sources/meta-openembedded/meta-oe/conf/distro/include/meta_oe_security_flags.inc in /usr/src/ventana/yocto/pyro-2.3/sources/poky/meta-openembedded/meta-oe/conf/layer.conf ^^^^ caused by multiple copies of meta-openembedded I'm not sure when the layerindex-fetch got added but I notice it also doesn't work on morty for other reasons (python exceptions raised). Any desire to fix this and anyone know the proper way to do so? Regards, Tim
|
|