public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH] meta: Deprecate imx6-sabrelite target
Date: Thu,  3 Apr 2025 15:54:31 +0300	[thread overview]
Message-ID: <20250403125431.894686-1-amikan@ilbers.de> (raw)

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 <amikan@ilbers.de>
---
 meta-isar/classes/ubi-ubifs-img.bbclass | 5 +++++
 meta/classes/base.bbclass               | 6 ++++++
 2 files changed, 11 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..01dc38d4 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -350,3 +350,9 @@ def deb_list_beautify(d, varname):
         if stripped:
             var_list.append(stripped)
     return ', '.join(var_list)
+
+# Deprecation checking
+python do_unpack:prepend:imx6-sabrelite() {
+    if d.getVar('MACHINE') == 'imx6-sabrelite':
+        bb.warn("Target imx6-sabrelite is deprecated and will be removed soon")
+}
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250403125431.894686-1-amikan%40ilbers.de.

                 reply	other threads:[~2025-04-03 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250403125431.894686-1-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox