From: Łukasz Stelmach Date: Thu, 4 Apr 2024 10:50:07 +0000 (+0200) Subject: tizen: sd_fusing.py: Exit if A/B update is requested on unsupported target X-Git-Tag: accepted/tizen/unified/x/20240422.211538~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9ff22773cde89556b8afd35be4bdc8a006c2a0f;p=platform%2Fkernel%2Fu-boot.git tizen: sd_fusing.py: Exit if A/B update is requested on unsupported target This error occurs if the target class improperly inherits from SdFusingTarget instead of SdFusingTargetAB. Change-Id: I83379fff92566d0036a868837e613a9a9cd94f7e Signed-off-by: Łukasz Stelmach --- diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index a3aea309af..a34c203b30 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -163,6 +163,11 @@ class SdFusingTarget: return binaries def get_partition_index(self, binary): + if hasattr(self, 'update'): + logging.error("You have requested to update the {} partition set. " + "This target does not support A/B partition sets." + .format(self.update.upper())) + sys.exit(1) return self.binaries.get(binary, None) params = ()