1
0
forked from me/IronOS
Files
IronOS/setup.sh
2020-10-13 22:31:46 +11:00

16 lines
650 B
Bash

#!/bin/bash
set -e
# Setup shell file to setup the environment on an ubuntu machine
sudo apt-get update
sudo apt-get install -y make bzip2 git python3 wget
sudo mkdir /build
cd /build
sudo wget -qO- https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 | sudo tar -xj
sudo wget -qO- https://github.com/Ralim/nuclei-compiler/releases/download/2020.08/nuclei_riscv_newlibc_prebuilt_linux64_2020.08.tar.bz2 | sudo tar -xj
# Add compiler to the path
sudo ln -s /build/gcc-arm-none-eabi-9-2020-q2-update/bin/* /usr/local/bin
sudo ln -s /build/gcc/bin/* /usr/local/bin