base-files: split ubi attaching out of nand_upgrade_prepare_ubi
authorChuanhong Guo <gch981213@gmail.com>
Sun, 11 Dec 2022 10:25:42 +0000 (18:25 +0800)
committerChen Minqiang <ptpt52@gmail.com>
Sat, 17 Dec 2022 06:08:58 +0000 (14:08 +0800)
commitc48e511fef37c42820c02119dab68c2b6cde3374
tree47dcfd7049971a62cf007dba0dc50420d7537ddd
parentd7876daf6552a9f39bd5e0bf50b554e9406ec275
base-files: split ubi attaching out of nand_upgrade_prepare_ubi

split ubi reformat/attach into nand_attach_ubi in preparation
for reusing this code in other functions.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
package/base-files/files/lib/upgrade/nand.sh