refactor(mkimg): update uboot and opensbi, remove unneeded patch

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-28 15:27:52 +08:00
parent fa97890ebe
commit 96621efd80
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -31,11 +31,9 @@ msg "Building u-boot..."
git clone https://github.com/u-boot/u-boot.git git clone https://github.com/u-boot/u-boot.git
pushd u-boot pushd u-boot
git checkout v2022.04 git checkout v2022.07
msg2 "Apply binutils 2.38 compitible patch" msg2 "Apply binutils 2.38 compitible patch"
git apply ../0001-riscv-fix-compitible-with-binutils-2.38.patch git apply ../0001-riscv-fix-compitible-with-binutils-2.38.patch
msg2 "Apply compressed kernel patch"
git cherry-pick -n c544b281cd3e549a4fcbf4ba9a05a5d72c9557dd
make \ make \
CROSS_COMPILE=riscv64-linux-gnu- \ CROSS_COMPILE=riscv64-linux-gnu- \
qemu-riscv64_smode_defconfig qemu-riscv64_smode_defconfig
@ -46,9 +44,7 @@ msg "Building OpenSBI..."
git clone https://github.com/riscv-software-src/opensbi git clone https://github.com/riscv-software-src/opensbi
pushd opensbi pushd opensbi
git checkout v1.0 git checkout v1.1
msg2 "Apply binutils 2.38 compitible patch"
git cherry-pick -n 5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c
make \ make \
CROSS_COMPILE=riscv64-linux-gnu- \ CROSS_COMPILE=riscv64-linux-gnu- \