Skip to contentSkip to conversation

kernel-devicetree.bbclass: replace KERNEL_IMAGETYPE_FOR_MAKE with KERNEL_IMAGETYPES

PATCH New [email protected] 1 participant 1 message May 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kernel-devicetree.bbclass: replace KERNEL_IMAGETYPE_FOR_MAKE with KERNEL_IMAGETYPES

From: Ming Liu <[email protected]>

It should be KERNEL_IMAGETYPES rather than KERNEL_IMAGETYPE_FOR_MAKE to be handled in do_install and do_deploy tasks, since we are having some special logic in kernel-uimage.bbclass and kernel-fitimage.bbclass to replace the real kernel image types during do_compile, like:
in kernel-uimage.bbclass: uImage -> vmlinux
in kernel-fitimage.bbclass: fitImage -> Image/bzImage/zImage...

but the final images to be installed/deployed should still be uImage or fitImage.

---
 meta/classes/kernel-devicetree.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/kernel-devicetree.bbclass +2 -2
index 4f80cc6..b593320 100644
@@ -63,7 +63,7 @@ do_install_append() {
 		DTB_PATH=`get_real_dtb_path_in_kernel "${DTB}"`
 		DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
 		install -m 0644 ${DTB_PATH} ${D}/${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT}
-		for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do
+		for type in ${KERNEL_IMAGETYPES}; do
 			symlink_name=${type}"-"${KERNEL_IMAGE_SYMLINK_NAME}
 			DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
 			ln -sf ${DTB_BASE_NAME}.${DTB_EXT} ${D}/${KERNEL_IMAGEDEST}/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT}
@@ -82,7 +82,7 @@ do_deploy_append() {
 		DTB=`normalize_dtb "${DTB}"`
 		DTB_EXT=${DTB##*.}
 		DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
-		for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do
+		for type in ${KERNEL_IMAGETYPES}; do
 			base_name=${type}"-"${KERNEL_IMAGE_BASE_NAME}
 			symlink_name=${type}"-"${KERNEL_IMAGE_SYMLINK_NAME}
 			DTB_NAME=`echo ${base_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
Signature · 1 line
2.7.4