* [PATCH] netbase: Fix file search path for 'interfaces'
@ 2012-12-29 12:36 Gary Thomas
2013-01-14 23:31 ` Denys Dmytriyenko
0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2012-12-29 12:36 UTC (permalink / raw)
To: meta-ti
This .bbappend file is used to override the 'interfaces' file for
certain targets. The current version is broken in that it does not
search the correct path(s). This patch fixes that, as well as marking
the resulting package as target specific.
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
recipes-core/netbase/netbase_5.0.bbappend | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/recipes-core/netbase/netbase_5.0.bbappend b/recipes-core/netbase/netbase_5.0.bbappend
index 4b8d0e6..e5fa909 100644
--- a/recipes-core/netbase/netbase_5.0.bbappend
+++ b/recipes-core/netbase/netbase_5.0.bbappend
@@ -1,3 +1,2 @@
-THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
-FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
-
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
--
1.7.7.6
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] netbase: Fix file search path for 'interfaces'
2012-12-29 12:36 [PATCH] netbase: Fix file search path for 'interfaces' Gary Thomas
@ 2013-01-14 23:31 ` Denys Dmytriyenko
2013-01-16 14:55 ` Gary Thomas
0 siblings, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2013-01-14 23:31 UTC (permalink / raw)
To: Gary Thomas; +Cc: meta-ti
On Sat, Dec 29, 2012 at 05:36:29AM -0700, Gary Thomas wrote:
> This .bbappend file is used to override the 'interfaces' file for
> certain targets. The current version is broken in that it does not
> search the correct path(s). This patch fixes that, as well as marking
> the resulting package as target specific.
Thanks. There was similar patch earlier, but w/o marking resulting package as
machine specific. For that matter, shouldn't the main netbase recipe in
oe-core do it instead? As it comes with bunch of qemu-arch-specific interfaces
files anyway, and we just add one more for beagleboard...
--
Denys
> Signed-off-by: Gary Thomas <gary@mlbassoc.com>
> ---
> recipes-core/netbase/netbase_5.0.bbappend | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-core/netbase/netbase_5.0.bbappend b/recipes-core/netbase/netbase_5.0.bbappend
> index 4b8d0e6..e5fa909 100644
> --- a/recipes-core/netbase/netbase_5.0.bbappend
> +++ b/recipes-core/netbase/netbase_5.0.bbappend
> @@ -1,3 +1,2 @@
> -THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
> -FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
> -
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> --
> 1.7.7.6
>
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] netbase: Fix file search path for 'interfaces'
2013-01-14 23:31 ` Denys Dmytriyenko
@ 2013-01-16 14:55 ` Gary Thomas
2013-01-16 18:10 ` Denys Dmytriyenko
0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2013-01-16 14:55 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-ti
On 2013-01-14 16:31, Denys Dmytriyenko wrote:
> On Sat, Dec 29, 2012 at 05:36:29AM -0700, Gary Thomas wrote:
>> This .bbappend file is used to override the 'interfaces' file for
>> certain targets. The current version is broken in that it does not
>> search the correct path(s). This patch fixes that, as well as marking
>> the resulting package as target specific.
>
> Thanks. There was similar patch earlier, but w/o marking resulting package as
> machine specific. For that matter, shouldn't the main netbase recipe in
> oe-core do it instead? As it comes with bunch of qemu-arch-specific interfaces
> files anyway, and we just add one more for beagleboard...
>
Agreed. When I get two minutes, I'll propose a new patch for meta-ti
for this as well as one for OE-core.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] netbase: Fix file search path for 'interfaces'
2013-01-16 14:55 ` Gary Thomas
@ 2013-01-16 18:10 ` Denys Dmytriyenko
2013-01-16 18:25 ` Gary Thomas
0 siblings, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2013-01-16 18:10 UTC (permalink / raw)
To: Gary Thomas; +Cc: meta-ti
On Wed, Jan 16, 2013 at 07:55:26AM -0700, Gary Thomas wrote:
> On 2013-01-14 16:31, Denys Dmytriyenko wrote:
> >On Sat, Dec 29, 2012 at 05:36:29AM -0700, Gary Thomas wrote:
> >>This .bbappend file is used to override the 'interfaces' file for
> >>certain targets. The current version is broken in that it does not
> >>search the correct path(s). This patch fixes that, as well as marking
> >>the resulting package as target specific.
> >
> >Thanks. There was similar patch earlier, but w/o marking resulting package as
> >machine specific. For that matter, shouldn't the main netbase recipe in
> >oe-core do it instead? As it comes with bunch of qemu-arch-specific interfaces
> >files anyway, and we just add one more for beagleboard...
> >
>
> Agreed. When I get two minutes, I'll propose a new patch for meta-ti
> for this as well as one for OE-core.
Actually, there is no need for an explicit PACKAGE_ARCH = MACHINE_ARCH neither
in bbappend nor in the main recipe in oe-core - bitbake does it automatically
when it detects machine-overriden files being packaged.
--
Denys
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] netbase: Fix file search path for 'interfaces'
2013-01-16 18:10 ` Denys Dmytriyenko
@ 2013-01-16 18:25 ` Gary Thomas
0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2013-01-16 18:25 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-ti
On 2013-01-16 11:10, Denys Dmytriyenko wrote:
> On Wed, Jan 16, 2013 at 07:55:26AM -0700, Gary Thomas wrote:
>> On 2013-01-14 16:31, Denys Dmytriyenko wrote:
>>> On Sat, Dec 29, 2012 at 05:36:29AM -0700, Gary Thomas wrote:
>>>> This .bbappend file is used to override the 'interfaces' file for
>>>> certain targets. The current version is broken in that it does not
>>>> search the correct path(s). This patch fixes that, as well as marking
>>>> the resulting package as target specific.
>>>
>>> Thanks. There was similar patch earlier, but w/o marking resulting package as
>>> machine specific. For that matter, shouldn't the main netbase recipe in
>>> oe-core do it instead? As it comes with bunch of qemu-arch-specific interfaces
>>> files anyway, and we just add one more for beagleboard...
>>>
>>
>> Agreed. When I get two minutes, I'll propose a new patch for meta-ti
>> for this as well as one for OE-core.
>
> Actually, there is no need for an explicit PACKAGE_ARCH = MACHINE_ARCH neither
> in bbappend nor in the main recipe in oe-core - bitbake does it automatically
> when it detects machine-overriden files being packaged.
Cool, I hadn't noticed that.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-16 18:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-29 12:36 [PATCH] netbase: Fix file search path for 'interfaces' Gary Thomas
2013-01-14 23:31 ` Denys Dmytriyenko
2013-01-16 14:55 ` Gary Thomas
2013-01-16 18:10 ` Denys Dmytriyenko
2013-01-16 18:25 ` 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.