Re: [yocto] conf/machine/ in my custom layer doesn't get parsed
Hi Anuj, On Mon, Jan 15, 2018 at 5:47 PM, Anuj Mittal wrote: > I hope that this machine name, colibri-imx6, isn't being used in some > other included layer as well ... > > meta-freescale-3rdparty/conf/machine/colibri-imx6.conf? Can you try > changing the name? > You are a lifesaver. Bitbake was picking "colibri-imx6.conf" from "meta-freescale-3rdparty" and ignored my conf. I thought conf files can be overridden but apparently just one machine-specific conf can be provided. Thanks Anjug. Here is more info if someone had the same problem: I reordered the included layers in BBLAYERS variable defined in conf/bblayers.conf so that my layer be at the top of the list: BBLAYERS ?= " \ ${BSPDIR}/meta-mylayer \ ${BSPDIR}/meta \ ${BSPDIR}/meta-poky \ ${BSPDIR}/meta-openembedded/meta-oe \ ${BSPDIR}/meta-openembedded/meta-python \ ${BSPDIR}/meta-openembedded/meta-networking \ ${BSPDIR}/meta-openembedded/meta-webserver \ ${BSPDIR}/meta-freescale \ ${BSPDIR}/meta-freescale-3rdparty \ " Apparently the assigned priority for layers is only considered for *.bb/*.bbappend files and does not have any effect for conf files. Placing my layer at the first layer causes bitbake to pick up it's config in very early stage and ignore other machine specific files. As I wasn't sure whether other config files are dependent on MACHINE value and applying any configuration based on machine type colibri-imx6, I decided to keep "colibri-imx6" the same for now. Bests, Isaac -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] conf/machine/ in my custom layer doesn't get parsed
On 01/15/2018 09:13 PM, Isaac Nickaein wrote: > Hi Anuj, > > On Mon, Jan 15, 2018 at 4:00 PM, Mittal, Anuj wrote: >> Have you defined BBPATH in your layer.conf correctly? > > > I guess so. Here is relevant lines in layer.conf for BBPATH: > > # We have a conf and classes directory, add to BBPATH > BBPATH .= ":${LAYERDIR}" > > # We have recipes-* directories, add to BBFILES > BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ > ${LAYERDIR}/recipes-*/*/*.bbappend \ > ${LAYERDIR}/*.bb" > > BBFILE_COLLECTIONS += "samim-saba" > BBFILE_PATTERN_samim-saba = "^${LAYERDIR}/" > BBFILE_PRIORITY_samim-saba = "99" > > > And this is the layout of conf directory of my layer: > > yocto@yocto-server:/opt/yocto/rocko-poky/poky/meta-samim-saba/conf$ find > . > ./layer.conf > ./machine > ./machine/colibri-imx6.conf I hope that this machine name, colibri-imx6, isn't being used in some other included layer as well ... meta-freescale-3rdparty/conf/machine/colibri-imx6.conf? Can you try changing the name? Thanks, Anuj > yocto@yocto-server:/opt/yocto/rocko-poky/poky/meta-smim-saba/conf$ > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] conf/machine/ in my custom layer doesn't get parsed
Hi Anuj, On Mon, Jan 15, 2018 at 4:00 PM, Mittal, Anuj wrote: > Have you defined BBPATH in your layer.conf correctly? I guess so. Here is relevant lines in layer.conf for BBPATH: # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend \ ${LAYERDIR}/*.bb" BBFILE_COLLECTIONS += "samim-saba" BBFILE_PATTERN_samim-saba = "^${LAYERDIR}/" BBFILE_PRIORITY_samim-saba = "99" And this is the layout of conf directory of my layer: yocto@yocto-server:/opt/yocto/rocko-poky/poky/meta-samim-saba/conf$ find . ./layer.conf ./machine ./machine/colibri-imx6.conf yocto@yocto-server:/opt/yocto/rocko-poky/poky/meta-samim-saba/conf$ -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] conf/machine/ in my custom layer doesn't get parsed
On Mon, Jan 15, 2018 at 4:00 PM, Mittal, Anuj wrote: > > Have you defined BBPATH in your layer.conf correctly? Hi Anuj, I guess so. Here is relevant lines in layer.conf for BBPATH: # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend \ ${LAYERDIR}/*.bb" BBFILE_COLLECTIONS += "samim-saba" BBFILE_PATTERN_samim-saba = "^${LAYERDIR}/" BBFILE_PRIORITY_samim-saba = "99" And there the layout of conf directory of my layer: yocto@yocto-server:/opt/yocto/rocko-poky/poky/meta-samim-saba/conf$ find . ./layer.conf ./machine ./machine/colibri-imx6.conf yocto@yocto-server:/opt/yocto/rocko-poky/poky/meta-samim-saba/conf$ -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] conf/machine/ in my custom layer doesn't get parsed
Hi Issac, > I've created a custom meta layer over poky rocko and added it to > bblayer.conf. I've > also set the appropriate MACHINE value in > conf/local.conf: > > MACHINE = "colibri-imx6" > > There is a machine specific conf file in this meta layer, but it doesn't get > parsed. This > file is located at "conf/machine/colibri-imx6.conf" inside the meta layer. > > By checking the output of > > bitbake -e > > it seems that other machine-specific conf files like "meta-freescale- > 3rdparty/conf/machine/colibri-imx6.conf" are referenced and parsed. But there > is not > even a reference to my machine-specific conf file. Have you defined BBPATH in your layer.conf correctly? Thanks, Anuj > > Should I set some variables that hint the bitbake to parse machine specific > files in my > layer? > > Bests, > Isaac > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] conf/machine/ in my custom layer doesn't get parsed
Hi, I've created a custom meta layer over poky rocko and added it to bblayer.conf. I've also set the appropriate MACHINE value in conf/local.conf: MACHINE = "colibri-imx6" There is a machine specific conf file in this meta layer, but it doesn't get parsed. This file is located at "conf/machine/colibri-imx6.conf" inside the meta layer. By checking the output of bitbake -e it seems that other machine-specific conf files like "meta-freescale-3rdparty/conf/machine/colibri-imx6.conf" are referenced and parsed. But there is not even a reference to my machine-specific conf file. Should I set some variables that hint the bitbake to parse machine specific files in my layer? Bests, Isaac -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto