Skip to contentSkip to conversation

image.bbclass: add check for live and convert to ext3

PATCH Applied Saul Wold 2 participants 3 messages May 4, 2012 – May 6, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/2 image.bbclass: add check for live and convert to ext3

The live image type depends on ext3 which has it's own dependencies, while the live type has none, this is a backport change to fix [YOCTO #2246]

---
 meta/classes/image.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
meta/classes/image.bbclass +2 -0
index b8ca370..e9a3aa6 100644
@@ -76,6 +76,8 @@ inherit image-${IMAGE_TYPE}
 python () {
     deps = bb.data.getVarFlag('do_rootfs', 'depends', d) or ""
     for type in (bb.data.getVar('IMAGE_FSTYPES', d, True) or "").split():
+        if type == "live":
+            type = "ext3"
         for dep in ((bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or "").split() or []):
             deps += " %s:do_populate_sysroot" % dep
     for dep in (bb.data.getVar('EXTRA_IMAGEDEPENDS', d, True) or "").split():
Signature · 1 line
1.7.7.6
author
#1 lore raw

PATCH 2/2 grub: Add SRC_URI Checksums for sanity

---
 meta/recipes-bsp/grub/grub_1.99.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-bsp/grub/grub_1.99.bb +3 -0
index ba41e8f..0c8648e 100644
@@ -19,6 +19,9 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
           file://grub-install.in.patch;apply=yes \
           file://40_custom"
 
+SRC_URI[md5sum] = "ca9f2a2d571b57fc5c53212d1d22e2b5"
+SRC_URI[sha256sum] = "b91f420f2c51f6155e088e34ff99bea09cc1fb89585cf7c0179644e57abd28ff"
+
 inherit autotools
 inherit gettext
 
Signature · 1 line
1.7.7.6
#2 lore raw
In reply to Saul Wold
Quoted 14 lines · Saul Wold

The live image type depends on ext3 which has it's own dependencies, while the live type has none, this is a backport change to fix [YOCTO #2246]

---
 meta/classes/image.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
meta/classes/image.bbclass +0 -0
index b8ca370..e9a3aa6 100644

meta/classes/image.bbclass inherit image-${IMAGE_TYPE} · line 83

Quoted 8 lines
meta/classes/image.bbclass +2 -0
@@ -76,6 +76,8 @@ inherit image-${IMAGE_TYPE}
 python () {
     deps = bb.data.getVarFlag('do_rootfs', 'depends', d) or ""
     for type in (bb.data.getVar('IMAGE_FSTYPES', d, True) or "").split():
+        if type == "live":
+            type = "ext3"
         for dep in ((bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or "").split() or []):
             deps += " %s:do_populate_sysroot" % dep
     for dep in (bb.data.getVar('EXTRA_IMAGEDEPENDS', d, True) or "").split():

Merged to 2011-1 and master, thanks.

Richard