Skip to contentSkip to conversation

kernel-fitimage: Support ext2.gz filesystems

PATCH In review Chunrong Guo 2 participants 4 messages Jun 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 kernel-fitimage: Support ext2.gz filesystems

---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-fitimage.bbclass +1 -1
index 2630b47..f40fbf3 100644
@@ -369,7 +369,7 @@ fitimage_assemble() {
 	#
 	if [ "x${ramdiskcount}" = "x1" ] ; then
 		# Find and use the first initramfs image archive type we find
-		for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz cpio; do
+		for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz ext2.gz cpio; do
 			initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.${img}"
 			echo "Using $initramfs_path"
 			if [ -e "${initramfs_path}" ]; then
Signature · 1 line
1.9.0
#1 lore raw

PATCH v3 2/3 kernel-fitimage: set replacementtype to vmlinux

---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-fitimage.bbclass +1 -1
index f40fbf3..9fa836f 100644
@@ -10,7 +10,7 @@ python __anonymous () {
         if d.getVar("UBOOT_ARCH") == "x86":
             replacementtype = "bzImage"
         else:
-            replacementtype = "zImage"
+            replacementtype = "vmlinux"
 
 	# Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal
 	# to kernel.bbclass . We have to override it, since we pack zImage
Signature · 1 line
1.9.0
#2 lore raw

PATCH v3 3/3 kernel-fitimage: fix KERNEL_DEVICETREE includes subdirectory issue

In reply to Chunrong Guo

* For example:
KERNEL_DEVICETREE ?= "freescale/fsl-ls1046a-rdb.dtb"

${DTB}= "freescale/fsl-ls1046a-rdb.dtb"

but only fsl-ls1046a-rdb.dtb should be used in fit-image.its

---
 meta/classes/kernel-fitimage.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/kernel-fitimage.bbclass +1 -0
index 9fa836f..08644ea 100644
@@ -347,6 +347,7 @@ fitimage_assemble() {
 				DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'`
 			fi
 			DTB_PATH="arch/${ARCH}/boot/dts/${DTB}"
+                        DTB=`basename ${DTB}`
 			if [ ! -e "${DTB_PATH}" ]; then
 				DTB_PATH="arch/${ARCH}/boot/${DTB}"
 			fi
Signature · 1 line
1.9.0
#3 lore raw
In reply to Chunrong Guo

What has changed in v3 compared to v2 and v1?

Quoted 26 lines · Chunrong Guo
---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-fitimage.bbclass +1 -1
index 2630b47..f40fbf3 100644
@@ -369,7 +369,7 @@ fitimage_assemble() {
 	#
 	if [ "x${ramdiskcount}" = "x1" ] ; then
 		# Find and use the first initramfs image archive type we find
-		for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz cpio; do
+		for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz ext2.gz cpio; do
 			initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.${img}"
 			echo "Using $initramfs_path"
 			if [ -e "${initramfs_path}" ]; then
Signature · 7 lines
1.9.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core