sd_fusing.py: Refactor parameters writing
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 21 May 2024 21:57:15 +0000 (23:57 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 4 Dec 2024 11:00:01 +0000 (12:00 +0100)
commit7650272954bb2595ccce0b6de4b55a75b83d7a51
treef82f02367cfac1b33e41f958bc4acb13103da608
parent04291cfcd50034f843a4ff0e721eaf094b486e8a
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>
sd_fusing.py