Skip to contentSkip to conversation

kernel-fitimage: Support ext2.gz filesystems

PATCH Superseded Chunrong Guo 2 participants 4 messages May 17, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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

From: Chunrong Guo <[email protected]>

---
 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 v2 2/3 kernel-fitimage: set replacementtype to vmlinux

From: Chunrong Guo <[email protected]>

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

Re: [[PATCH v2 2/3] kernel-fitimage: set replacementtype to vmlinux

Quoted 12 lines · Chunrong Guo

From: Chunrong Guo <[email protected]>

---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-fitimage.bbclass +0 -0
index f40fbf3..9fa836f 100644

meta/classes/kernel-fitimage.bbclass python __anonymous () { · line 13

Quoted 5 lines
meta/classes/kernel-fitimage.bbclass +1 -1
@@ -10,7 +10,7 @@ python __anonymous () {
         if d.getVar("UBOOT_ARCH") == "x86":
             replacementtype = "bzImage"
         else:
-            replacementtype = "zImage"
+            replacementtype = "vmlinux"

Why?

Quoted 10 lines
meta/classes/kernel-fitimage.bbclass +0 -0
 	# Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal
 	# to kernel.bbclass . We have to override it, since we pack zImage
Signature · 7 lines
1.9.0

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

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

In reply to Chunrong Guo

From: Chunrong Guo <[email protected]>

* 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