Skip to content

Commit

Permalink
Update github_ci_prepare.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
franzflasch committed Jun 25, 2023
1 parent 3dde409 commit 2e78b66
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions github_ci_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ cd qemu
make -j $(nproc)
sudo make install

TOOLCHAIN_BASE_DIR=/opt/local

############################# RV32 #############################

TOOLCHAIN_DIR32=${ROOT_DIR}/toolchain32
mkdir -p ${TOOLCHAIN_DIR32} && cd ${TOOLCHAIN_DIR32}
TOOLCHAIN_DIR32=${TOOLCHAIN_BASE_DIR}/cross-tool-riscv32-baremetal/
mkdir -p ${TOOLCHAIN_BASE_DIR} && cd ${TOOLCHAIN_BASE_DIR}
wget -q https://nightly.link/franzflasch/gcc-build-tools/workflows/riscv32-baremetal/main/toolchain_built_from_tar.zip
unzip -q toolchain_built_from_tar.zip && rm toolchain_built_from_tar.zip
tar xf *.tar.xz && rm -rf *.tar.xz

cd ${TOOLCHAIN_DIR32}/toolchain/bin && export PATH=${PWD}:${PATH}
cd ${TOOLCHAIN_DIR32}/bin && export PATH=${PWD}:${PATH}

riscv32-none-elf-gcc --version

Expand All @@ -39,13 +41,13 @@ make

############################# RV64 #############################

TOOLCHAIN_DIR64=${ROOT_DIR}/toolchain64
mkdir -p ${TOOLCHAIN_DIR64} && cd ${TOOLCHAIN_DIR64}
TOOLCHAIN_DIR64=${TOOLCHAIN_BASE_DIR}/cross-tool-riscv64-baremetal/
mkdir -p ${TOOLCHAIN_BASE_DIR} && cd ${TOOLCHAIN_BASE_DIR}
wget -q https://nightly.link/franzflasch/gcc-build-tools/workflows/riscv64-baremetal/main/toolchain_built_from_tar.zip
unzip -q toolchain_built_from_tar.zip && rm toolchain_built_from_tar.zip
tar xf *.tar.xz && rm -rf *.tar.xz

cd ${TOOLCHAIN_DIR64}/toolchain/bin && export PATH=${PWD}:${PATH}
cd ${TOOLCHAIN_DIR64}/bin && export PATH=${PWD}:${PATH}

riscv64-none-elf-gcc --version

Expand Down

0 comments on commit 2e78b66

Please sign in to comment.