Skip to contentSkip to conversation

poky-tiny fix

PATCH In review Tom Zanussi 3 participants 4 messages Nov 4, 2013

lore
Share & tools
lore
#0 lore raw

cover poky-tiny fix

This fixes a boot problem I had with poky-tiny.

The following changes since commit 9160f376065752e2e92c8b37ee9a80d0eb86b53b:

bitbake: toaster: enable required classes in the toaster startup script (2013-11-04 09:36:22 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib.git tzanussi/tiny-busybox-defconfig-fix
http://git.yoctoproject.org/cgit.cgi//log/?h=tzanussi/tiny-busybox-defconfig-fix

Tom Zanussi (1):
busybox.bbappend: add override for poky-tiny defconfig

 meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 busybox.bbappend: add override for poky-tiny defconfig

The defconfig for poky-tiny resides in {$P}/poky-tiny, so that needs to be added to FILESEXTRAPATHS if the distro is poky-tiny.

This fixes boot problems such as below, where init doesn't work because setsid isn't found, because setsid isn't configured into busybox, because the defconfig adding it isn't found:

/init: line 26: setsid: not found
Console sh exited with 127, respawning...

---
 meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend | 1 +
 1 file changed, 1 insertion(+)
meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend +1 -0
index ffe8631..e15f2b6 100644
@@ -1,2 +1,3 @@
 FILESEXTRAPATHS_prepend_poky := "${THISDIR}/${P}:"
+FILESEXTRAPATHS_prepend_poky-tiny := "${THISDIR}/${P}/${DISTRO}:"
 
Signature · 1 line
1.8.3.1
#2 lore raw

Re: [PATCH 1/1] busybox.bbappend: add override for poky-tiny defconfig

Quoted 9 lines · Tom Zanussi

The defconfig for poky-tiny resides in {$P}/poky-tiny, so that needs to be added to FILESEXTRAPATHS if the distro is poky-tiny.

This fixes boot problems such as below, where init doesn't work because setsid isn't found, because setsid isn't configured into busybox, because the defconfig adding it isn't found:

/init: line 26: setsid: not found
Console sh exited with 127, respawning...

Have you checked FILESPATH variable in bitbake-e? IIRC all FILESOVERRIDES are used for FILESEXTRAPATHS dirs, so all you need is to add
FILESEXTRAPATHS_prepend_poky-tiny := "${THISDIR}/${P}:"

otherwise FILESPATH will list also entries like meta-yocto/recipes-core/busybox/busybox/poky-tiny/poky-tiny meta-yocto/recipes-core/busybox/busybox/poky-tiny/qemux86
...

Quoted 21 lines
---
 meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend | 1 +
 1 file changed, 1 insertion(+)
meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend +1 -0
index ffe8631..e15f2b6 100644
@@ -1,2 +1,3 @@
 FILESEXTRAPATHS_prepend_poky := "${THISDIR}/${P}:"
+FILESEXTRAPATHS_prepend_poky-tiny := "${THISDIR}/${P}/${DISTRO}:"
 
Signature · 6 lines
1.8.3.1

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

Re: [PATCH 1/1] busybox.bbappend: add override for poky-tiny defconfig

In reply to Tom Zanussi
Quoted 20 lines · Tom Zanussi

The defconfig for poky-tiny resides in {$P}/poky-tiny, so that needs to be added to FILESEXTRAPATHS if the distro is poky-tiny.

This fixes boot problems such as below, where init doesn't work because setsid isn't found, because setsid isn't configured into busybox, because the defconfig adding it isn't found:

/init: line 26: setsid: not found
Console sh exited with 127, respawning...

---
 meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend | 1 +
 1 file changed, 1 insertion(+)
meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend +0 -0
index ffe8631..e15f2b6 100644

meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend line 2

Quoted 2 lines
meta-yocto/recipes-core/busybox/busybox_1.21.1.bbappend +1 -0
@@ -1,2 +1,3 @@
 FILESEXTRAPATHS_prepend_poky := "${THISDIR}/${P}:"
+FILESEXTRAPATHS_prepend_poky-tiny := "${THISDIR}/${P}/${DISTRO}:"

In addition to Martin's comment, why isn't tiny using the standard poky overrides?

poky-lsb and poky-bleeding do:

DISTROOVERRIDES = "poky"

or variants thereof. Shouldn't tiny be doing "poky-tiny:poky" or something like that (I forget the right order)?

The above line suggests that poky-tiny was using the poky override but stopped for some reason, otherwise the file would never have worked?

Cheers,

Richard