fix(mkimg): clean up before build

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
This commit is contained in:
Celeste Liu 2022-11-24 13:19:23 +08:00
parent 50cc973369
commit e5043640bd
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

4
mkimg
View file

@ -82,8 +82,8 @@ msg "Building u-boot..."
[[ -d u-boot ]] || git clone https://github.com/u-boot/u-boot.git [[ -d u-boot ]] || git clone https://github.com/u-boot/u-boot.git
pushd u-boot pushd u-boot
git checkout master
git checkout master -- ':(top)' git checkout master -- ':(top)'
git checkout master
git pull --rebase git pull --rebase
git checkout v2022.10 git checkout v2022.10
msg2 "Apply binutils 2.38 compitible patch" msg2 "Apply binutils 2.38 compitible patch"
@ -99,8 +99,8 @@ msg "Building OpenSBI..."
[[ -d opensbi ]] || git clone https://github.com/riscv-software-src/opensbi [[ -d opensbi ]] || git clone https://github.com/riscv-software-src/opensbi
pushd opensbi pushd opensbi
git checkout master
git checkout master -- ':(top)' git checkout master -- ':(top)'
git checkout master
git pull --rebase git pull --rebase
git checkout v1.1 git checkout v1.1