Skip to content

Commit

Permalink
Add binutils-gdb
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jan 29, 2022
0 parents commit 75a1881
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "binutils-gdb"]
path = binutils-gdb
url = https://mirrors.tuna.tsinghua.edu.cn/git/binutils-gdb.git
1 change: 1 addition & 0 deletions binutils-gdb
Submodule binutils-gdb added at 7c4643
2 changes: 2 additions & 0 deletions build-binutils-gdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker run -it --rm -v $PWD:/work jiegec/riscv-toolchain-builder /work/scripts/build-binutils-gdb.sh
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM debian:bullseye
RUN sed -i 's/deb.debian.org/mirrors.bfsu.edu.cn/g' /etc/apt/sources.list
RUN sed -i 's/security.debian.org/mirrors.bfsu.edu.cn/g' /etc/apt/sources.list
RUN apt update
RUN apt install -y build-essential texinfo bison flex
3 changes: 3 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
IMAGE_NAME=jiegec/riscv-toolchain-builder
sudo docker build --no-cache -t $IMAGE_NAME .
8 changes: 8 additions & 0 deletions scripts/build-binutils-gdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
cd /work/binutils-gdb
autoconf
mkdir build
cd build
../configure --target=riscv64-unknown-elf --prefix=/work/build --disable-gdb --disable-sim --disable-libdecnumber --disable-readline
make -j8
make install

0 comments on commit 75a1881

Please sign in to comment.