All of lore.kernel.org
 help / color / mirror / Atom feed
* Additional layers with class and conf
@ 2016-06-15 14:50 Woronicz, Bartosz ( NSN - PL/Wroclaw)
  2016-06-15 19:21 ` Chris Z.
  2016-06-15 20:29 ` Paul Eggleton
  0 siblings, 2 replies; 5+ messages in thread
From: Woronicz, Bartosz ( NSN - PL/Wroclaw) @ 2016-06-15 14:50 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Additional layers with class and conf
  2016-06-15 14:50 Additional layers with class and conf Woronicz, Bartosz ( NSN - PL/Wroclaw)
@ 2016-06-15 19:21 ` Chris Z.
  2016-06-16 13:03   ` Woronicz, Bartosz (Nokia - PL/Wroclaw)
  2016-06-15 20:29 ` Paul Eggleton
  1 sibling, 1 reply; 5+ messages in thread
From: Chris Z. @ 2016-06-15 19:21 UTC (permalink / raw)
  To: Woronicz, Bartosz ( NSN - PL/Wroclaw); +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

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) <
bartosz.woronicz@nokia.com> 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
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 2331 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Additional layers with class and conf
  2016-06-15 14:50 Additional layers with class and conf Woronicz, Bartosz ( NSN - PL/Wroclaw)
  2016-06-15 19:21 ` Chris Z.
@ 2016-06-15 20:29 ` Paul Eggleton
  2016-06-16 13:00   ` Woronicz, Bartosz (Nokia - PL/Wroclaw)
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2016-06-15 20:29 UTC (permalink / raw)
  To: Woronicz, Bartosz ( NSN - PL/Wroclaw); +Cc: yocto

On Wed, 15 Jun 2016 16:50:57 Woronicz, Bartosz 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"

Do you mean you put local.conf in a conf subdirectory of a layer? If so,
that's not really expected to work.

> 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

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Additional layers with class and conf
  2016-06-15 20:29 ` Paul Eggleton
@ 2016-06-16 13:00   ` Woronicz, Bartosz (Nokia - PL/Wroclaw)
  0 siblings, 0 replies; 5+ messages in thread
From: Woronicz, Bartosz (Nokia - PL/Wroclaw) @ 2016-06-16 13:00 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

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:paul.eggleton@linux.intel.com] 
Sent: Wednesday, June 15, 2016 10:29 PM
To: Woronicz, Bartosz (Nokia - PL/Wroclaw) <bartosz.woronicz@nokia.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Additional layers with class and conf

On Wed, 15 Jun 2016 16:50:57 Woronicz, Bartosz 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"

Do you mean you put local.conf in a conf subdirectory of a layer? If so,
that's not really expected to work.

> 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

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Additional layers with class and conf
  2016-06-15 19:21 ` Chris Z.
@ 2016-06-16 13:03   ` Woronicz, Bartosz (Nokia - PL/Wroclaw)
  0 siblings, 0 replies; 5+ messages in thread
From: Woronicz, Bartosz (Nokia - PL/Wroclaw) @ 2016-06-16 13:03 UTC (permalink / raw)
  To: Chris Z.; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2256 bytes --]

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:winotu.email@gmail.com]
Sent: Wednesday, June 15, 2016 9:21 PM
To: Woronicz, Bartosz (Nokia - PL/Wroclaw) <bartosz.woronicz@nokia.com>
Cc: yocto@yoctoproject.org
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) <bartosz.woronicz@nokia.com<mailto:bartosz.woronicz@nokia.com>> 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
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Type: text/html, Size: 6888 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-16 13:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-15 14:50 Additional layers with class and conf Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-06-15 19:21 ` Chris Z.
2016-06-16 13:03   ` Woronicz, Bartosz (Nokia - PL/Wroclaw)
2016-06-15 20:29 ` Paul Eggleton
2016-06-16 13:00   ` Woronicz, Bartosz (Nokia - PL/Wroclaw)

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.