summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-10-14 15:26:53 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:21 -0300
commit99d677c91064426fddd7cf0fa49da4188092416f (patch)
tree5983bd631c315177827b5ef1806ee9fcc991e95e /classes
parentff25379b23b75a9204e6e1126543c70f10d2b910 (diff)
downloadmeta-freescale-99d677c91064426fddd7cf0fa49da4188092416f.tar.gz
image_types_fsl.bbclass: Fail if a Device Tree file is missing
When generating the rootfs we need to include all the referenced Device Tree files. The code were gracefully checking if the file existed before building the image however the expected behavior is to fail. As consequence of this change, if someone is using a very old kernel (no Device Tree based) and tries to generate an image, it will fail until the machine definition is changed to not list Device Tree files for installation. Currently all machines supported by meta-fsl-arm BSP are consistent for the default kernel in use however custom BSP may need to be changed accordingly. Change-Id: I548c65c61dfefe24154a455d097032b1598b14d3 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index fc7d438c..77deb742 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -126,6 +126,8 @@ _generate_boot_image() {
126 if [ $kernel_bin = $kernel_bin_for_dtb ]; then 126 if [ $kernel_bin = $kernel_bin_for_dtb ]; then
127 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb ::/${DTS_BASE_NAME}.dtb 127 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb ::/${DTS_BASE_NAME}.dtb
128 fi 128 fi
129 else
130 bbfatal "${DTS_FILE} does not exist."
129 fi 131 fi
130 done 132 done
131 fi 133 fi