[meta-freescale] [PATCH] image_types_fsl.bbclass: Add deprecation warning

Otavio Salvador otavio at ossystems.com.br
Thu Oct 5 11:51:42 PDT 2017


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 at ossystems.com.br>
---

 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



More information about the meta-freescale mailing list