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 <[email protected]>
---

 classes/image_types_fsl.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 91b6c4e5..dadbd734 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -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
-- 
2.14.2

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to