sd_fusing.py: Refactor parameters writing
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 21 May 2024 21:57:15 +0000 (23:57 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Oct 2024 11:28:45 +0000 (20:28 +0900)
commitec73de92ba3e09c2bdf83080ea94e694ea4f83ba
treefa6f05f55f90af1220e45f908315f00ef9d809aa
parentbdc1388a123476a09a122e413ebeecfe565261d0
sd_fusing.py: Refactor parameters writing

This commit considerably alters when and which parameters are written
to "inform" partition:

 - Parameters are now updated always, not only when --format has been
   specified (this is compatible with old sd_fusing.sh behaviour)

 - Initial parameters are collected from configuration and from user
   input to reflect actual flashing options, eg. if user chosen to
   update only 'a' partition script won't set the flag that both
   partitions are cloned

   Dynamic parameters generation allowed to drop a lot of duplicated
   params.

Change-Id: I597f104b2b7972728663e2d85555407c721b7bb0
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
scripts/tizen/sd_fusing.py