diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-09-23 02:08:17 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-09-24 15:11:43 -0300 |
commit | 48a7101fdc50ba479e1493b674b425e55d19cdf0 (patch) | |
tree | 2d39f6e91112a06cfeb5cdb0231884e4c750d295 /classes | |
parent | 965b256193c51b4a5b8fed09b042cbec052b7b73 (diff) | |
download | meta-fsl-arm-48a7101fdc50ba479e1493b674b425e55d19cdf0.tar.gz |
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 <tcmichals@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_fsl.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 1f4e6d4..1b58df8 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass | |||
@@ -16,7 +16,7 @@ IMAGE_DEPENDS_linux.sb = "elftosb-native imx-bootlets virtual/kernel" | |||
16 | IMAGE_LINK_NAME_linux.sb = "" | 16 | IMAGE_LINK_NAME_linux.sb = "" |
17 | IMAGE_CMD_linux.sb () { | 17 | IMAGE_CMD_linux.sb () { |
18 | kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" | 18 | kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" |
19 | kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb`" | 19 | kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb || true`" |
20 | linux_bd_file=imx-bootlets-linux.bd-${MACHINE} | 20 | linux_bd_file=imx-bootlets-linux.bd-${MACHINE} |
21 | if [ `basename $kernel_bin .bin` = `basename $kernel_dtb .dtb` ]; then | 21 | if [ `basename $kernel_bin .bin` = `basename $kernel_dtb .dtb` ]; then |
22 | # When using device tree we build a zImage with the dtb | 22 | # When using device tree we build a zImage with the dtb |