Additional layers with class and conf
I got two layers, meta-x and meta-y , meta-x got meta-y in bblayers.conf. in meta-y contains conf/layer.conf with BBPATH .= ":${LAYERDIR}", plus classes/my.bbclass plus local.conf containing INHERIT += "my"
when I ran bitbake -e my-image, the INHERIT doesn't seem to contain "my"
When I put it directly in layer.conf it works, but what to add to layer.conf to make bitbake to look for other *.conf files in meta-y/conf/ ??
My bblayers.conf.sample is modified in meta-x (the project meta), which is copied over to $BUILDDIR when i run oe-init-build-env , here is meta-y/conf/layer.conf : http://pastebin.com/mhxe9K5C
when I ran
bitbake -e my-image
i see BBPATH="/var/fpwork/mastier/myproject/poky/meta-yocto:/var/fpwork/mastier/myproject/mymachine:/var/fpwork/mastier/myproject/poky/meta:/var/fpwork/mastier/myproject/poky/meta-yocto-bsp:/var/fpwork/mastier/myproject/meta-x:/var/fpwork/mastier/myproject/meta-y"
where "mymachine" is my BUILDDIR
Signature · 4 lines
Kind regards, Bartosz Woronicz Engineer, Software Configuration (SCM) Nokia Networks - PL/Wroclaw
HI,
Have you checked full output of -e bitbake run ? Were INHERIT variable is resolved ? To check if *.conf file was checked ? Maybe some confs change INHERIT variables during parsing.
Br,
KZ
Quoted 32 lines · Bartosz ( NSN - PL/Wroclaw)
I got two layers, meta-x and meta-y , meta-x got meta-y in bblayers.conf.
in meta-y containsconf/layer.confwith BBPATH .= ":${LAYERDIR}", plus
classes/my.bbclass plus local.conf containing INHERIT += "my" when I ran bitbake -e my-image, the INHERIT doesn't seem to contain "my"When I put it directly in layer.conf it works, but what to add to layer.conf to make bitbake to look for other *.conf files in meta-y/conf/ ??
My bblayers.conf.sample is modified in meta-x (the project meta), which is copied over to $BUILDDIR when i run oe-init-build-env ,
here ismeta-y/conf/layer.conf: http://pastebin.com/mhxe9K5Cwhen I ran
bitbake -e my-image
i seeBBPATH="/var/fpwork/mastier/myproject/poky/meta-yocto:/var/fpwork/mastier/myproject/mymachine:/var/fpwork/mastier/myproject/poky/meta:/var/fpwork/mastier/myproject/poky/meta-yocto-bsp:/var/fpwork/mastier/myproject/meta-x:/var/fpwork/mastier/myproject/meta-y"
where "mymachine" is my BUILDDIR
--
Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
Nokia Networks - PL/Wroclaw--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 4 lines · Bartosz
I got two layers, meta-x and meta-y , meta-x got meta-y in
bblayers.conf. in meta-y containsconf/layer.confwith BBPATH .=
":${LAYERDIR}", plus classes/my.bbclass plus local.conf containing INHERIT += "my"
Do you mean you put local.conf in a conf subdirectory of a layer? If so, that's not really expected to work.
Quoted 4 lines
when I ran bitbake -e my-image, the INHERIT doesn't seem to contain "my"
When I put it directly in layer.conf it works, but what to add to layer.conf to make bitbake to look for other *.conf files in meta-y/conf/ ??
You don't, at least not in that way. The correct way to do things like this is to create a custom distro and then set DISTRO to point to it. Your distro conf file can then set these kinds of things.
http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#creating-your-own-distribution
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
That's a good point, I took a look at it. But for now I rather rely on poky distro. Later, possibly I will put my classes in INHERIT to mydistro.conf.
Thanks!
Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
Nokia Networks - PL/Wroclaw
-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: Wednesday, June 15, 2016 10:29 PM
To: Woronicz, Bartosz (Nokia - PL/Wroclaw) <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Additional layers with class and conf
Quoted 4 lines · Bartosz
I got two layers, meta-x and meta-y , meta-x got meta-y in
bblayers.conf. in meta-y containsconf/layer.confwith BBPATH .=
":${LAYERDIR}", plus classes/my.bbclass plus local.conf containing INHERIT += "my"
Do you mean you put local.conf in a conf subdirectory of a layer? If so, that's not really expected to work.
Quoted 4 lines
when I ran bitbake -e my-image, the INHERIT doesn't seem to contain "my"
When I put it directly in layer.conf it works, but what to add to layer.conf to make bitbake to look for other *.conf files in meta-y/conf/ ??
You don't, at least not in that way. The correct way to do things like this is to create a custom distro and then set DISTRO to point to it. Your distro conf file can then set these kinds of things.
http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#creating-your-own-distribution
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Hi,
I thought local.conf is automatically read, but I was wrong. For time being I put ‘ INHERIT += “my” ’ in layer.conf. Later on I will think of my own distro meta.
Maybe I am wrong, but yocto is missing ability to have kind of utility meta layer. But maybe it is just unnecessary bloat.
Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
Nokia Networks - PL/Wroclaw
From: Chris Z. [mailto:[email protected]]
Sent: Wednesday, June 15, 2016 9:21 PM
To: Woronicz, Bartosz (Nokia - PL/Wroclaw) <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Additional layers with class and conf
HI,
Have you checked full output of -e bitbake run ? Were INHERIT variable is resolved ? To check if *.conf file was checked ? Maybe some confs change INHERIT variables during parsing. Br,
KZ
On Wed, Jun 15, 2016 at 4:50 PM, Woronicz, Bartosz ( NSN - PL/Wroclaw) <[email protected]<mailto:[email protected]>> wrote:
I got two layers, meta-x and meta-y , meta-x got meta-y in bblayers.conf. in meta-y contains conf/layer.conf with BBPATH .= ":${LAYERDIR}", plus classes/my.bbclass plus local.conf containing INHERIT += "my"
when I ran bitbake -e my-image, the INHERIT doesn't seem to contain "my"
When I put it directly in layer.conf it works, but what to add to layer.conf to make bitbake to look for other *.conf files in meta-y/conf/ ??
My bblayers.conf.sample is modified in meta-x (the project meta), which is copied over to $BUILDDIR when i run oe-init-build-env , here is meta-y/conf/layer.conf : http://pastebin.com/mhxe9K5C
when I ran
bitbake -e my-image
i see BBPATH="/var/fpwork/mastier/myproject/poky/meta-yocto:/var/fpwork/mastier/myproject/mymachine:/var/fpwork/mastier/myproject/poky/meta:/var/fpwork/mastier/myproject/poky/meta-yocto-bsp:/var/fpwork/mastier/myproject/meta-x:/var/fpwork/mastier/myproject/meta-y"
where "mymachine" is my BUILDDIR
--
Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
Nokia Networks - PL/Wroclaw
--
_______________________________________________
yocto mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/yocto