All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] image_types_fsl.bbclass: make sdcard compatible with fitImage
@ 2017-10-27  9:03 S. Lockwood-Childs
  2017-10-27 12:06 ` Otavio Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: S. Lockwood-Childs @ 2017-10-27  9:03 UTC (permalink / raw)
  To: meta-freescale

Fixes error along the lines of
  ERROR: imx-blah.dtb does not exist.

The sdcard image format was assuming all applicable devicetree files
would be available in the deploy area. This is not the case for
fitImage kernel format, which packs both the kernel and all enabled
devicetree files into a single file.

Treat fitImage as an exception, skipping separate install of dtb files
since they get installed as part of the kernel file instead.

Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
---
 classes/image_types_fsl.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 4709af9..cde1af7 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -97,7 +97,7 @@ _generate_boot_image() {
 	done
 
 	# Copy device tree file
-	if test -n "${KERNEL_DEVICETREE}"; then
+	if [ -n "${KERNEL_DEVICETREE}" -a ${KERNEL_IMAGETYPE} != fitImage ]; then
 		for DTS_FILE in ${KERNEL_DEVICETREE}; do
 			DTS_BASE_NAME=`basename ${DTS_FILE} .dtb`
 			if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then
-- 
1.9.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-27 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-27  9:03 [PATCH] image_types_fsl.bbclass: make sdcard compatible with fitImage S. Lockwood-Childs
2017-10-27 12:06 ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.