* conf/machine/<machine.conf> in my custom layer doesn't get parsed
@ 2018-01-15 11:18 Isaac Nickaein
2018-01-15 12:30 ` Mittal, Anuj
0 siblings, 1 reply; 6+ messages in thread
From: Isaac Nickaein @ 2018-01-15 11:18 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: conf/machine/<machine.conf> in my custom layer doesn't get parsed
2018-01-15 11:18 conf/machine/<machine.conf> in my custom layer doesn't get parsed Isaac Nickaein
@ 2018-01-15 12:30 ` Mittal, Anuj
2018-01-15 13:13 ` Isaac Nickaein
0 siblings, 1 reply; 6+ messages in thread
From: Mittal, Anuj @ 2018-01-15 12:30 UTC (permalink / raw)
To: Isaac Nickaein, yocto@yoctoproject.org
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: conf/machine/<machine.conf> in my custom layer doesn't get parsed
@ 2018-01-15 12:50 Isaac Nickaein
0 siblings, 0 replies; 6+ messages in thread
From: Isaac Nickaein @ 2018-01-15 12:50 UTC (permalink / raw)
To: Mittal, Anuj; +Cc: yocto@yoctoproject.org
On Mon, Jan 15, 2018 at 4:00 PM, Mittal, Anuj <anuj.mittal@intel.com> 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$
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: conf/machine/<machine.conf> in my custom layer doesn't get parsed
2018-01-15 12:30 ` Mittal, Anuj
@ 2018-01-15 13:13 ` Isaac Nickaein
2018-01-15 14:17 ` Anuj Mittal
0 siblings, 1 reply; 6+ messages in thread
From: Isaac Nickaein @ 2018-01-15 13:13 UTC (permalink / raw)
To: Mittal, Anuj; +Cc: yocto@yoctoproject.org
Hi Anuj,
On Mon, Jan 15, 2018 at 4:00 PM, Mittal, Anuj <anuj.mittal@intel.com> 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$
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: conf/machine/<machine.conf> in my custom layer doesn't get parsed
2018-01-15 13:13 ` Isaac Nickaein
@ 2018-01-15 14:17 ` Anuj Mittal
2018-01-15 15:23 ` Isaac Nickaein
0 siblings, 1 reply; 6+ messages in thread
From: Anuj Mittal @ 2018-01-15 14:17 UTC (permalink / raw)
To: Isaac Nickaein; +Cc: yocto@yoctoproject.org
On 01/15/2018 09:13 PM, Isaac Nickaein wrote:
> Hi Anuj,
>
> On Mon, Jan 15, 2018 at 4:00 PM, Mittal, Anuj <anuj.mittal@intel.com> 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$
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: conf/machine/<machine.conf> in my custom layer doesn't get parsed
2018-01-15 14:17 ` Anuj Mittal
@ 2018-01-15 15:23 ` Isaac Nickaein
0 siblings, 0 replies; 6+ messages in thread
From: Isaac Nickaein @ 2018-01-15 15:23 UTC (permalink / raw)
To: Anuj Mittal; +Cc: yocto@yoctoproject.org
Hi Anuj,
On Mon, Jan 15, 2018 at 5:47 PM, Anuj Mittal <anuj.mittal@intel.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-01-15 15:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 11:18 conf/machine/<machine.conf> in my custom layer doesn't get parsed Isaac Nickaein
2018-01-15 12:30 ` Mittal, Anuj
2018-01-15 13:13 ` Isaac Nickaein
2018-01-15 14:17 ` Anuj Mittal
2018-01-15 15:23 ` Isaac Nickaein
-- strict thread matches above, loose matches on Subject: below --
2018-01-15 12:50 Isaac Nickaein
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.