[PATCH -v2] meta: Deprecate imx6-sabrelite target

1 view
Skip to first unread message

Anton Mikanovich

unread,
Apr 16, 2025, 4:18:58 AM4/16/25
to isar-...@googlegroups.com, Anton Mikanovich
SABRE Lite i.MX6 Development Board was originally added to demonstrate
UBI/UBIFS support, which is currently covered by phyBOARD-Mira target.

Also mark custom ubi-ubifs-img.bbclass as deprecated because it was
only a compatibility hack for imx6-sabrelite.

Signed-off-by: Anton Mikanovich <ami...@ilbers.de>
---
Changes since v1:
- Make it prefunc and remove dependency on machine variable.

meta-isar/classes/ubi-ubifs-img.bbclass | 5 +++++
meta/classes/base.bbclass | 9 +++++++++
2 files changed, 14 insertions(+)

diff --git a/meta-isar/classes/ubi-ubifs-img.bbclass b/meta-isar/classes/ubi-ubifs-img.bbclass
index 2b412f93..7e286e79 100644
--- a/meta-isar/classes/ubi-ubifs-img.bbclass
+++ b/meta-isar/classes/ubi-ubifs-img.bbclass
@@ -12,4 +12,9 @@ IMAGE_CMD:ubi_ubifs() {
# we need to produce output (with extension .ubi-ubifs),
# so just create a symlink
ln -sf ${IMAGE_FULLNAME}.ubi ${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.ubi-ubifs
+
+ bbwarn "ubi-ubifs-img image type is deprecated, please use built-in image"\
+ "classes instead:\n"\
+ "IMAGE_TYPEDEP:ubi += \"ubifs fit\"\n"\
+ "IMAGE_FSTYPES ?= \"ubi ubifs\""
}
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index c730eec9..90fd570c 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -350,3 +350,12 @@ def deb_list_beautify(d, varname):
if stripped:
var_list.append(stripped)
return ', '.join(var_list)
+
+# Deprecation checking
+python deprecation_checking() {
+ if d.getVar('MACHINE') == 'imx6-sabrelite':
+ bb.warn("Target imx6-sabrelite is deprecated and will be removed soon")
+}
+
+deprecation_checking[vardepsexclude] += "MACHINE"
+do_unpack[prefuncs] += "deprecation_checking"
--
2.34.1

Anton Mikanovich

unread,
Apr 29, 2025, 5:43:20 AM4/29/25
to isar-...@googlegroups.com
16/04/2025 11:18, Anton Mikanovich wrote:
> SABRE Lite i.MX6 Development Board was originally added to demonstrate
> UBI/UBIFS support, which is currently covered by phyBOARD-Mira target.
>
> Also mark custom ubi-ubifs-img.bbclass as deprecated because it was
> only a compatibility hack for imx6-sabrelite.
>
> Signed-off-by: Anton Mikanovich <ami...@ilbers.de>

Applied to next.

Reply all
Reply to author
Forward
0 new messages