Skip to contentSkip to conversation

sdcard_image-rpi.bbclass: Fix sdimg generation

PATCH In review Gary Thomas 3 participants 5 messages Sep 21, 2016 – Sep 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sdcard_image-rpi.bbclass: Fix sdimg generation

Track changes in OE-core variable names - needed to be able to build an rpi-sdimg image file.

---
 classes/sdcard_image-rpi.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/sdcard_image-rpi.bbclass +2 -2
index 388398b..ad245f3 100644
@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
 
 # Use an uncompressed ext3 by default as rootfs
 SDIMG_ROOTFS_TYPE ?= "ext3"
-SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
+SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
 
 IMAGE_DEPENDS_rpi-sdimg = " \
 			parted-native \
@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \
 			"
 
 # SD card image name
-SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
+SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
 
 # Compression method to apply to SDIMG after it has been created. Supported
 # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
Signature · 1 line
2.7.4
#1 lore raw
Quoted 31 lines · Gary Thomas

Track changes in OE-core variable names - needed to be able to build an rpi-sdimg image file.

---
 classes/sdcard_image-rpi.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/sdcard_image-rpi.bbclass +2 -3
index 388398b..ad245f3 100644
@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
 
 # Use an uncompressed ext3 by default as rootfs
 SDIMG_ROOTFS_TYPE ?= "ext3"
-SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
+SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
 
 IMAGE_DEPENDS_rpi-sdimg = " \
                        parted-native \
@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \
                        "
 
 # SD card image name
-SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
+SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
 
 # Compression method to apply to SDIMG after it has been created. Supported
 # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
--
Quoted 2 lines

2.7.4

Isn't that the same as [1]?

[1] https://lists.yoctoproject.org/pipermail/yocto/2016-September/031961.html

Andreas

#2 lore raw
Quoted 29 lines · Andreas Müller
Quoted 28 lines · Gary Thomas

Track changes in OE-core variable names - needed to be able to build an rpi-sdimg image file.

---
 classes/sdcard_image-rpi.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/sdcard_image-rpi.bbclass +2 -2
index 388398b..ad245f3 100644
@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
 
 # Use an uncompressed ext3 by default as rootfs
 SDIMG_ROOTFS_TYPE ?= "ext3"
-SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
+SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
 
 IMAGE_DEPENDS_rpi-sdimg = " \
                        parted-native \
@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \
                        "
 
 # SD card image name
-SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
+SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
 
Quoted 8 lines
Quoted 5 lines
classes/sdcard_image-rpi.bbclass +0 -1
 # Compression method to apply to SDIMG after it has been created. Supported
 # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
--

2.7.4

Isn't that the same as [1]?

[1] https://lists.yoctoproject.org/pipermail/yocto/2016-September/031961.html

Yes, it looks like it is, but that one is still not in master :-( so I thought I'd give it a nudge!

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 44 lines · Gary Thomas
Quoted 43 lines · Andreas Müller
Quoted 34 lines · Gary Thomas

Track changes in OE-core variable names - needed to be able to build an rpi-sdimg image file.

---
 classes/sdcard_image-rpi.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/sdcard_image-rpi.bbclass +0 -1
index 388398b..ad245f3 100644
@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
 
 # Use an uncompressed ext3 by default as rootfs
 SDIMG_ROOTFS_TYPE ?= "ext3"
-SDIMG_ROOTFS =

"${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" +SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"

 IMAGE_DEPENDS_rpi-sdimg = " \
                        parted-native \
classes/sdcard_image-rpi.bbclass +1 -1
@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \
                        "
 
 # SD card image name
-SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
+SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
 
 # Compression method to apply to SDIMG after it has been created.

Supported

Quoted 5 lines
 # compression formats are "gzip", "bzip2" or "xz". The original
.rpi-sdimg file
--
2.7.4

Isn't that the same as [1]?

Quoted 7 lines
Quoted 2 lines

[1]
https://lists.yoctoproject.org/pipermail/yocto/2016-September/031961.html

Yes, it looks like it is, but that one is still not in master :-( so I thought I'd give it a nudge!

Yes - there are many things missing in master e.g VC4...

Andreas

#4 lore raw
In reply to Gary Thomas

Hi,

Quoted 37 lines · On Wed, 21 Sep 2016, 08:35 Gary Thomas, <[email protected]> wrote:

Track changes in OE-core variable names - needed to be able to build an rpi-sdimg image file.

---
 classes/sdcard_image-rpi.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/sdcard_image-rpi.bbclass +0 -1
index 388398b..ad245f3 100644
@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
 
 # Use an uncompressed ext3 by default as rootfs
 SDIMG_ROOTFS_TYPE ?= "ext3"
-SDIMG_ROOTFS =

"${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"

classes/sdcard_image-rpi.bbclass +2 -1
+SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
 
 IMAGE_DEPENDS_rpi-sdimg = " \
                        parted-native \
@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \
                        "
 
 # SD card image name
-SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
+SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
 
 # Compression method to apply to SDIMG after it has been created.

Supported

 # compression formats are "gzip", "bzip2" or "xz". The original
.rpi-sdimg file
--
2.7.4
Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

A similar patch was merged to master. Thanks.

Quoted 2 lines