Skip to content

Commit

Permalink
helpers: Clear kramflash payload before copying new files
Browse files Browse the repository at this point in the history
Just in case there are residual payload files after a kramflash update.

Signed-off-by: Danny Lin <[email protected]>
  • Loading branch information
kdrag0n committed Dec 4, 2020
1 parent 2e575be commit b4588df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function mkimg() {
local version="$(buildnum)"
fi

rm -f "$kroot/flasher/rd/payload/"*
cp "$kroot/out/arch/$arch/boot/Image.lz4" "$kroot/flasher/rd/payload/"
cat "$kroot/out/arch/$arch/boot/dts/google/"*.dtb > "$kroot/flasher/rd/payload/dtb"

Expand Down

0 comments on commit b4588df

Please sign in to comment.