fix(mkimg): fix git environment clean

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-08-29 18:53:51 +08:00
parent d47be0c0e8
commit b4bc366b43
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -31,7 +31,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
git checkout master -- ':(top)'
git pull --rebase git pull --rebase
git checkout v2022.07 git checkout v2022.07
msg2 "Apply binutils 2.38 compitible patch" msg2 "Apply binutils 2.38 compitible patch"
@ -48,8 +49,9 @@ 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 pull --rebase git pull --rebase
git checkout master --
git checkout v1.0 git checkout v1.0
msg2 "Apply binutils 2.38 compitible patch" msg2 "Apply binutils 2.38 compitible patch"
git cherry-pick -n 5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c git cherry-pick -n 5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c