]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: Add deprecation warning
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 5 Oct 2017 18:43:34 +0000 (15:43 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 6 Oct 2017 20:40:22 +0000 (17:40 -0300)
This adds a deprecation warning when using the 'sdcard' image format.

We are supporting 'wic' for all SoCs and the conversion is
straightforward. This 'sdcard' image format will be removed for next
release.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
classes/image_types_fsl.bbclass

index 91b6c4e5b2a41476ccec62a4332b618bcb630c55..dadbd734adcc544f05af19303334055ee7607a6c 100644 (file)
@@ -311,6 +311,8 @@ generate_mxs_sdcard () {
 }
 
 IMAGE_CMD_sdcard () {
+       bbwarn "The '${MACHINE}' is using the i.MX 'sdcard' image format which is deprecated. This image type is going to be removed in next release so please convert this machine to use the wic tool"
+
        if [ -z "${SDCARD_ROOTFS}" ]; then
                bberror "SDCARD_ROOTFS is undefined. To use sdcard image from Freescale's BSP it needs to be defined."
                exit 1