From: Otavio Salvador Date: Sun, 23 Sep 2012 05:08:17 +0000 (-0300) Subject: image_types_fsl.bbclass: Fix 'mxs' handle of Kernels without dtb files X-Git-Tag: 2.1~1699 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ea61aaea69c45a8ad6d447a18e89996ea7470328;p=meta-freescale.git 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 --- 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