Re: [meta-freescale] FSL Community BSP bblayer.conf invalid for 'bitbake-layers layerindex-fetch'

2017-05-08 Thread Tim Harvey
On Sat, May 6, 2017 at 7:34 PM, Trevor Woerner  wrote:
>> 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.
>
> The layerindex-fetch tool makes assumptions that turn out to not be
> true if you start off (as you did) by using the fsl community repo.
> Two assumptions have, simply, collided :-)
>

Trevor,

Right - I realize this is an issue or invalid assumption about the fsl
community repo. I'm thinking that repo should be perhaps reworked to
move its layers within the poky dir to avoid this and allow using
'bitbake-layers layerindex-fetch' as its such a useful tool.

> You can override the definition of BBLAYERS_FETCH_DIR in your
> conf/local.conf (using an '='). If you set it to the full base
> location of where the fsl community repo has put your layers,
> layerindex-fetch should then work as expected?

Setting BBLAYERS_FETCH_DIR to my sources dir still ends up with
duplicates after a 'bitbake-layers layerindex-fetch meta-networking'
yet now there are no duplicate repos (just duplicate dirs in BBLAYERS)

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 \
  /tmp/yocto/sources/meta-openembedded/meta-oe \
 this one shouldn't be here and creates 'Duplicate inclusion'
warnings if it is
  /tmp/yocto/sources/meta-openembedded/meta-python \
  /tmp/yocto/sources/meta-openembedded/meta-networking \
  "

Perhaps bitbake-layers could be made smarter about avoiding duplicate
dirs in this case.

Regards,

Tim
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] FSL Community BSP bblayer.conf invalid for 'bitbake-layers layerindex-fetch'

2017-05-06 Thread Trevor Woerner
> 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.

The layerindex-fetch tool makes assumptions that turn out to not be
true if you start off (as you did) by using the fsl community repo.
Two assumptions have, simply, collided :-)

You can override the definition of BBLAYERS_FETCH_DIR in your
conf/local.conf (using an '='). If you set it to the full base
location of where the fsl community repo has put your layers,
layerindex-fetch should then work as expected?
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] FSL Community BSP bblayer.conf invalid for 'bitbake-layers layerindex-fetch'

2017-05-05 Thread 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.
LayerRequired by  Git repository
   Subdirectory
===
meta-networking  -
git://git.openembedded.org/meta-openembedded
meta-networking
openembedded-coremeta-networking
git://git.openembedded.org/openembedded-coremeta
meta-oe  meta-networking
git://git.openembedded.org/meta-openembeddedmeta-oe
meta-python  meta-networking
git://git.openembedded.org/meta-openembeddedmeta-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
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale