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 | ea61aaea69c45a8ad6d447a18e89996ea7470328 (patch) | |
| tree | ba80627ec66d973873e8fe7fc5ff6131ab07242a | |
| parent | ca8637bffe7502252f0c1107276b2cc231a228fa (diff) | |
| download | meta-freescale-ea61aaea69c45a8ad6d447a18e89996ea7470328.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>
| -rw-r--r-- | meta-fsl-arm/classes/image_types_fsl.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 1f4e6d4a7..1b58df849 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" | |||
| 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 |
