scrptis: fit: fix cp same file

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4356da41e54211e6e9a2ae85603c2d26214ffe9e
This commit is contained in:
Joseph Chen 2020-04-13 18:22:47 +08:00
parent 0dcd90fbf2
commit c3a9bbca4b
1 changed files with 3 additions and 1 deletions

View File

@ -350,7 +350,9 @@ function fit_boot_make_img()
ITB_FILE=$FIT_ITB_BOOT
fi
cp $ITB_FILE $FIT_IMG_BOOT
if [ "$ITB_FILE" != "$FIT_IMG_BOOT" ]; then
cp $ITB_FILE $FIT_IMG_BOOT -f
fi
}
function fit_resign()