Skip to content

Commit

Permalink
修复bootstrap在安装riscv gcc依赖时出现冲突的问题 (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
fslongjin authored Dec 25, 2023
1 parent 4060997 commit f110d33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ install_ubuntu_debian_pkg()
lsb-release \
llvm-dev libclang-dev clang gcc-multilib \
gcc build-essential fdisk dosfstools dnsmasq bridge-utils iptables libssl-dev pkg-config \
sphinx gcc-riscv64-unknown-elf gcc-riscv64-linux-gnu gdb-multiarch
sphinx
# 必须分开安装,否则会出现错误
sudo "$1" install -y \
gcc-riscv64-unknown-elf gcc-riscv64-linux-gnu gdb-multiarch

# 如果python3没有安装
if [ -z "$(which python3)" ]; then
Expand All @@ -60,7 +63,7 @@ install_ubuntu_debian_pkg()
sudo apt install -y docker.io docker-compose
sudo usermod -aG docker $USER
sudo newgrp docker
sudo systemctl restart docker
# sudo systemctl restart docker
elif [ -z ${dockerInstall} ]; then
echo "您传入--no-docker参数生效, 安装docker步骤被跳过."
elif [ -n "$(which docker)" ]; then
Expand Down

0 comments on commit f110d33

Please sign in to comment.