* Another story of a non upstream user of poky
@ 2011-07-27 12:47 Holger Hans Peter Freyther
2011-07-27 12:53 ` Koen Kooi
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Holger Hans Peter Freyther @ 2011-07-27 12:47 UTC (permalink / raw)
To: poky
Hi,
todays story is adding a 'interfaces' to netbase.
$ touch sysmocom/recipes-core/netbase/netbase-4.45/alix/interfaces
$ vi sysmocom/recipes-core/netbase/netbase_4.45.bbappend
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
PRINC = "1"
$ bitbake netbase
So does it work? The answer is no. Why doesn't it work? meta-yocto already has
a bbappend file? How to solve it? Use different names? Automatically add
FILESPATH for bbappends?
comments?
holger
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:47 Another story of a non upstream user of poky Holger Hans Peter Freyther
@ 2011-07-27 12:53 ` Koen Kooi
2011-07-27 12:57 ` Holger Hans Peter Freyther
2011-07-27 13:22 ` Richard Purdie
2011-07-27 12:57 ` Paul Eggleton
2011-07-27 13:02 ` Gary Thomas
2 siblings, 2 replies; 13+ messages in thread
From: Koen Kooi @ 2011-07-27 12:53 UTC (permalink / raw)
To: Holger Hans Peter Freyther; +Cc: poky
Op 27 jul. 2011, om 14:47 heeft Holger Hans Peter Freyther het volgende geschreven:
> Hi,
>
> todays story is adding a 'interfaces' to netbase.
>
>
> $ touch sysmocom/recipes-core/netbase/netbase-4.45/alix/interfaces
>
> $ vi sysmocom/recipes-core/netbase/netbase_4.45.bbappend
> FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
> PRINC = "1"
>
> $ bitbake netbase
>
>
> So does it work? The answer is no. Why doesn't it work? meta-yocto already has
> a bbappend file? How to solve it? Use different names? Automatically add
> FILESPATH for bbappends?
touch oe-core/meta/recipes-core/netbase/netbase_4.45.bb to force a reparse. bbappends only get parsed if the main recipe changed.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:47 Another story of a non upstream user of poky Holger Hans Peter Freyther
2011-07-27 12:53 ` Koen Kooi
@ 2011-07-27 12:57 ` Paul Eggleton
2011-07-27 13:13 ` Holger Hans Peter Freyther
2011-07-27 13:02 ` Gary Thomas
2 siblings, 1 reply; 13+ messages in thread
From: Paul Eggleton @ 2011-07-27 12:57 UTC (permalink / raw)
To: Holger Hans Peter Freyther; +Cc: poky
On Wednesday 27 July 2011 13:47:22 Holger Hans Peter Freyther wrote:
> So does it work? The answer is no. Why doesn't it work? meta-yocto already
> has a bbappend file? How to solve it? Use different names? Automatically
> add FILESPATH for bbappends?
I'd be in favour of automatically handling this somehow, but there might be
concerns that make that impractical, I'm not sure.
Anyway, the canonical method for doing this with OE-core/Poky, based on your
example, is:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:53 ` Koen Kooi
@ 2011-07-27 12:57 ` Holger Hans Peter Freyther
2011-07-27 13:01 ` Paul Eggleton
2011-07-27 13:22 ` Richard Purdie
1 sibling, 1 reply; 13+ messages in thread
From: Holger Hans Peter Freyther @ 2011-07-27 12:57 UTC (permalink / raw)
Cc: poky
On 07/27/2011 02:53 PM, Koen Kooi wrote:
>
> touch oe-core/meta/recipes-core/netbase/netbase_4.45.bb to force a reparse. bbappends only get parsed if the main recipe changed.
thanks, the problem is with meta-yocto in this case, there is
netbase_4.45.bbappend in there, so THISDIR is not what I think it is when
using it, or such.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:57 ` Holger Hans Peter Freyther
@ 2011-07-27 13:01 ` Paul Eggleton
2011-07-27 13:08 ` Holger Hans Peter Freyther
0 siblings, 1 reply; 13+ messages in thread
From: Paul Eggleton @ 2011-07-27 13:01 UTC (permalink / raw)
To: Holger Hans Peter Freyther; +Cc: poky
On Wednesday 27 July 2011 13:57:22 Holger Hans Peter Freyther wrote:
> thanks, the problem is with meta-yocto in this case, there is
> netbase_4.45.bbappend in there, so THISDIR is not what I think it is when
> using it, or such.
THISDIR should be correct at parse time; if not, something's wrong. After
that, it won't of course. (Hence my use of := in my example; I suspect your
use of =. is why your example didn't work).
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:47 Another story of a non upstream user of poky Holger Hans Peter Freyther
2011-07-27 12:53 ` Koen Kooi
2011-07-27 12:57 ` Paul Eggleton
@ 2011-07-27 13:02 ` Gary Thomas
2 siblings, 0 replies; 13+ messages in thread
From: Gary Thomas @ 2011-07-27 13:02 UTC (permalink / raw)
To: Holger Hans Peter Freyther; +Cc: poky
On 2011-07-27 06:47, Holger Hans Peter Freyther wrote:
> Hi,
>
> todays story is adding a 'interfaces' to netbase.
>
>
> $ touch sysmocom/recipes-core/netbase/netbase-4.45/alix/interfaces
>
> $ vi sysmocom/recipes-core/netbase/netbase_4.45.bbappend
> FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
> PRINC = "1"
>
> $ bitbake netbase
>
>
> So does it work? The answer is no. Why doesn't it work? meta-yocto already has
> a bbappend file? How to solve it? Use different names? Automatically add
> FILESPATH for bbappends?
>
> comments?
Set the layer priority for sysmocom/ higher than meta-yocto
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 13:01 ` Paul Eggleton
@ 2011-07-27 13:08 ` Holger Hans Peter Freyther
2011-07-27 13:13 ` Paul Eggleton
0 siblings, 1 reply; 13+ messages in thread
From: Holger Hans Peter Freyther @ 2011-07-27 13:08 UTC (permalink / raw)
To: poky
On 07/27/2011 03:01 PM, Paul Eggleton wrote:
> On Wednesday 27 July 2011 13:57:22 Holger Hans Peter Freyther wrote:
>> thanks, the problem is with meta-yocto in this case, there is
>> netbase_4.45.bbappend in there, so THISDIR is not what I think it is when
>> using it, or such.
>
> THISDIR should be correct at parse time; if not, something's wrong. After
> that, it won't of course. (Hence my use of := in my example; I suspect your
> use of =. is why your example didn't work).
For koen I just wanted to day that I know that my bbappend was parsed (PRINC
and bogus stuff has effect on parsing)
THISDIR is set by the netbase_4.45.bbappend of meta-yocto, I assume that this
should not be done and one should use the form you proposed throughout the layers?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:57 ` Paul Eggleton
@ 2011-07-27 13:13 ` Holger Hans Peter Freyther
2011-07-27 13:17 ` Paul Eggleton
0 siblings, 1 reply; 13+ messages in thread
From: Holger Hans Peter Freyther @ 2011-07-27 13:13 UTC (permalink / raw)
To: poky
On 07/27/2011 02:57 PM, Paul Eggleton wrote:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
this works nicely, I think the THISDIR assignment should be removed from
meta-yocto though. Now there appears to be one more bug, PACKAGE_ARCH is not
set to the MACHINE_ARCH even after the right interfaces is used. Is that known?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 13:08 ` Holger Hans Peter Freyther
@ 2011-07-27 13:13 ` Paul Eggleton
2011-07-27 13:15 ` Holger Hans Peter Freyther
0 siblings, 1 reply; 13+ messages in thread
From: Paul Eggleton @ 2011-07-27 13:13 UTC (permalink / raw)
To: Holger Hans Peter Freyther; +Cc: poky
On Wednesday 27 July 2011 14:08:16 Holger Hans Peter Freyther wrote:
> THISDIR is set by the netbase_4.45.bbappend of meta-yocto, I assume that
> this should not be done and one should use the form you proposed
> throughout the layers?
Correct, and this has already been done in master.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 13:13 ` Paul Eggleton
@ 2011-07-27 13:15 ` Holger Hans Peter Freyther
0 siblings, 0 replies; 13+ messages in thread
From: Holger Hans Peter Freyther @ 2011-07-27 13:15 UTC (permalink / raw)
To: Paul Eggleton; +Cc: poky
On 07/27/2011 03:13 PM, Paul Eggleton wrote:
> On Wednesday 27 July 2011 14:08:16 Holger Hans Peter Freyther wrote:
>> THISDIR is set by the netbase_4.45.bbappend of meta-yocto, I assume that
>> this should not be done and one should use the form you proposed
>> throughout the layers?
>
> Correct, and this has already been done in master.
ah sorry, I should rebase my poky base.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 13:13 ` Holger Hans Peter Freyther
@ 2011-07-27 13:17 ` Paul Eggleton
2011-07-27 13:20 ` Koen Kooi
0 siblings, 1 reply; 13+ messages in thread
From: Paul Eggleton @ 2011-07-27 13:17 UTC (permalink / raw)
To: Holger Hans Peter Freyther; +Cc: poky
On Wednesday 27 July 2011 14:13:52 Holger Hans Peter Freyther wrote:
> Now there appears to be one more bug, PACKAGE_ARCH is
> not set to the MACHINE_ARCH even after the right interfaces is used. Is
> that known?
Hmm, you're right, this is an omission. Presumably for meta-yocto this should
be PACKAGE_ARCH_beagleboard = "${MACHINE_ARCH}" ?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 13:17 ` Paul Eggleton
@ 2011-07-27 13:20 ` Koen Kooi
0 siblings, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2011-07-27 13:20 UTC (permalink / raw)
To: Paul Eggleton; +Cc: poky
Op 27 jul. 2011, om 15:17 heeft Paul Eggleton het volgende geschreven:
> On Wednesday 27 July 2011 14:13:52 Holger Hans Peter Freyther wrote:
>> Now there appears to be one more bug, PACKAGE_ARCH is
>> not set to the MACHINE_ARCH even after the right interfaces is used. Is
>> that known?
>
> Hmm, you're right, this is an omission. Presumably for meta-yocto this should
> be PACKAGE_ARCH_beagleboard = "${MACHINE_ARCH}" ?
OE should be doing that automatically since something in SRC_URI is getting pulled from a machine specific dir.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Another story of a non upstream user of poky
2011-07-27 12:53 ` Koen Kooi
2011-07-27 12:57 ` Holger Hans Peter Freyther
@ 2011-07-27 13:22 ` Richard Purdie
1 sibling, 0 replies; 13+ messages in thread
From: Richard Purdie @ 2011-07-27 13:22 UTC (permalink / raw)
To: Koen Kooi; +Cc: poky
On Wed, 2011-07-27 at 14:53 +0200, Koen Kooi wrote:
> Op 27 jul. 2011, om 14:47 heeft Holger Hans Peter Freyther het volgende geschreven:
> > todays story is adding a 'interfaces' to netbase.
> >
> >
> > $ touch sysmocom/recipes-core/netbase/netbase-4.45/alix/interfaces
> >
> > $ vi sysmocom/recipes-core/netbase/netbase_4.45.bbappend
> > FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
> > PRINC = "1"
> >
> > $ bitbake netbase
> >
> >
> > So does it work? The answer is no. Why doesn't it work? meta-yocto already has
> > a bbappend file? How to solve it? Use different names? Automatically add
> > FILESPATH for bbappends?
>
>
> touch oe-core/meta/recipes-core/netbase/netbase_4.45.bb to force a reparse. bbappends only get parsed if the main recipe changed.
Wrong, that bug has been fixed in bitbake! :)
Cheers,
Richard
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-07-27 13:22 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-27 12:47 Another story of a non upstream user of poky Holger Hans Peter Freyther
2011-07-27 12:53 ` Koen Kooi
2011-07-27 12:57 ` Holger Hans Peter Freyther
2011-07-27 13:01 ` Paul Eggleton
2011-07-27 13:08 ` Holger Hans Peter Freyther
2011-07-27 13:13 ` Paul Eggleton
2011-07-27 13:15 ` Holger Hans Peter Freyther
2011-07-27 13:22 ` Richard Purdie
2011-07-27 12:57 ` Paul Eggleton
2011-07-27 13:13 ` Holger Hans Peter Freyther
2011-07-27 13:17 ` Paul Eggleton
2011-07-27 13:20 ` Koen Kooi
2011-07-27 13:02 ` Gary Thomas
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.