From ea61aaea69c45a8ad6d447a18e89996ea7470328 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Sun, 23 Sep 2012 02:08:17 -0300 Subject: [PATCH] image_types_fsl.bbclass: Fix 'mxs' handle of Kernels without dtb files The code where failing if used with no dtb files available in deploy directory. Change-Id: Ib08e23f3d7761b0991fcce009fb93290d698f7c3 Reported-by: Tim Michals Signed-off-by: Otavio Salvador --- meta-fsl-arm/classes/image_types_fsl.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 1f4e6d4a..1b58df84 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/classes/image_types_fsl.bbclass @@ -16,7 +16,7 @@ IMAGE_DEPENDS_linux.sb = "elftosb-native imx-bootlets virtual/kernel" IMAGE_LINK_NAME_linux.sb = "" IMAGE_CMD_linux.sb () { kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" - kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb`" + kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb || true`" linux_bd_file=imx-bootlets-linux.bd-${MACHINE} if [ `basename $kernel_bin .bin` = `basename $kernel_dtb .dtb` ]; then # When using device tree we build a zImage with the dtb -- 2.40.1