Skip to content

Commit 5b17a9b

Browse files
committed
精简shell脚本,将arm工具链等其他依赖一并安装
1 parent cc24639 commit 5b17a9b

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

install_ubuntu.sh

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,16 @@ $RTT_PYTHON --version 2 > /dev/null || {
1313
exit 1
1414
}
1515

16-
sudo apt update
17-
sudo apt upgrade -y
18-
19-
if ! [ -x "$(command -v gcc)" ]; then
20-
echo "Installing gcc."
21-
sudo apt install gcc
22-
fi
23-
24-
if ! [ -x "$(command -v git)" ]; then
25-
echo "Installing git."
26-
sudo apt install git
27-
fi
28-
29-
if [ $(dpkg-query -W -f='${Status}' libncurses5-dev 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
30-
echo "Installing ncurses."
31-
sudo apt install libncurses5-dev
32-
fi
33-
3416
$RTT_PYTHON -m pip list > /dev/null || {
3517
echo "Installing pip."
36-
sudo apt install $RTT_PYTHON-pip
18+
sudo apt install $RTT_PYTHON-pip -y
3719
}
3820

39-
if ! [ -x "$(command -v scons)" ]; then
40-
echo "Installing scons."
41-
sudo apt install scons
42-
fi
21+
sudo apt update
22+
sudo apt upgrade -y
23+
24+
sudo apt install gcc git libncurses5-dev scons gcc-arm-none-eabi gdb-arm-none-eabi binutils-arm-none-eabi qemu qemu-system-arm -y
4325

26+
wget https://raw.githubusercontent.com/RT-Thread/env/master/touch_env.sh -O touch_env.sh
27+
chmod 777 touch_env.sh
4428
./touch_env.sh

0 commit comments

Comments
 (0)