]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: Fail if a Device Tree file is missing
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 14 Oct 2015 18:26:53 +0000 (15:26 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:21 +0000 (15:03 -0300)
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>
classes/image_types_fsl.bbclass

index fc7d438c207af8312b3282c6b0e3783bb4e358d5..77deb742fca3180fe412e4f06b4a989711e93aa6 100644 (file)
@@ -126,6 +126,8 @@ _generate_boot_image() {
                                if [ $kernel_bin = $kernel_bin_for_dtb ]; then
                                        mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb ::/${DTS_BASE_NAME}.dtb
                                fi
+                       else
+                               bbfatal "${DTS_FILE} does not exist."
                        fi
                done
        fi