Skip to contentSkip to conversation

netbase: Fix file search path for 'interfaces'

PATCH In review Gary Thomas 2 participants 5 messages Dec 29, 2012 – Jan 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netbase: Fix file search path for 'interfaces'

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.

---
 recipes-core/netbase/netbase_5.0.bbappend |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
recipes-core/netbase/netbase_5.0.bbappend +2 -3
index 4b8d0e6..e5fa909 100644
@@ -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}"
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 4 lines · Gary Thomas

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...

Signature · 1 line
Denys
Quoted 23 lines
---
 recipes-core/netbase/netbase_5.0.bbappend |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
recipes-core/netbase/netbase_5.0.bbappend +2 -3
index 4b8d0e6..e5fa909 100644
@@ -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}"
Signature · 6 lines
1.7.7.6

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 11 lines · Denys Dmytriyenko
Quoted 4 lines · Gary Thomas

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.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 7 lines · Gary Thomas
Quoted 6 lines · Denys Dmytriyenko
Quoted 4 lines · Gary Thomas

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.

Quoted 8 lines
Quoted 5 lines

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.

Signature · 1 line
Denys
#4 lore raw
Quoted 14 lines · Denys Dmytriyenko
Quoted 13 lines · Gary Thomas
Quoted 11 lines · Denys Dmytriyenko
Quoted 4 lines · Gary Thomas

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...

Quoted 6 lines
Quoted 2 lines

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.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------