feat(mkimg): check before git and update git every time
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
parent
e0ff416204
commit
5a7a0c6c96
1 changed files with 6 additions and 2 deletions
8
mkimg.sh
8
mkimg.sh
|
@ -29,8 +29,10 @@ use-fixed-password() {
|
|||
|
||||
msg "Building 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
|
||||
git checkout master --
|
||||
git pull --rebase
|
||||
git checkout v2022.07
|
||||
msg2 "Apply binutils 2.38 compitible patch"
|
||||
git apply ../0001-riscv-fix-compitible-with-binutils-2.38.patch
|
||||
|
@ -42,8 +44,10 @@ popd
|
|||
|
||||
msg "Building OpenSBI..."
|
||||
|
||||
git clone https://github.com/riscv-software-src/opensbi
|
||||
[[ -d opensbi ]] || git clone https://github.com/riscv-software-src/opensbi
|
||||
pushd opensbi
|
||||
git pull --rebase
|
||||
git checkout master --
|
||||
git checkout v1.0
|
||||
msg2 "Apply binutils 2.38 compitible patch"
|
||||
git cherry-pick -n 5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c
|
||||
|
|
Loading…
Add table
Reference in a new issue