Skip to content

Commit

Permalink
Merge pull request #21 from P-Miranda/ruben
Browse files Browse the repository at this point in the history
fix(CI): fix CI flow for latest ubuntu
  • Loading branch information
jjts committed Jun 7, 2024
2 parents b7d1dd0 + 3db6571 commit 803a486
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ WORKDIR /iob_linux

# Update the package index and install dependencies
RUN apt-get update && \
apt-get install -y device-tree-compiler autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build bash binutils bzip2 cpio g++ gcc git gzip make patch perl rsync sed tar unzip wget file sudo locales mercurial libncurses5-dev libfdt-dev libglib2.0-dev libpixman-1-dev
apt-get install -y device-tree-compiler autoconf automake autotools-dev curl python3 python3-setuptools libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build bash binutils bzip2 cpio g++ gcc git gzip make patch perl rsync sed tar unzip wget file sudo locales mercurial libncurses5-dev libfdt-dev libglib2.0-dev libpixman-1-dev

RUN git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git && \
cd riscv-gnu-toolchain && git checkout 2023.02.25 && \
./configure --prefix=/opt/riscv --enable-multilib && make linux -j`nproc` && \
rm -rf /iob_linux/riscv-gnu-toolchain

RUN wget https://download.qemu.org/qemu-7.2.0.tar.xz && tar xvJf qemu-7.2.0.tar.xz && rm qemu-7.2.0.tar.xz && \
cd qemu-7.2.0 && ./configure --target-list=riscv32-softmmu,riscv32-linux-user && \
make -j`nproc` && make install && rm -r /iob_linux/qemu-7.2.0
RUN wget https://download.qemu.org/qemu-7.2.9.tar.xz && tar xvJf qemu-7.2.9.tar.xz && rm qemu-7.2.9.tar.xz && \
cd qemu-7.2.9 && ./configure --target-list=riscv32-softmmu,riscv32-linux-user && \
make -j`nproc` && make install && rm -r /iob_linux/qemu-7.2.9

RUN apt-get install -y gcc-12 g++-12 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 20 && \
update-alternatives --config gcc && \
update-alternatives --config g++

# riscv-gnu-toolchain dependencies: apt-get install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build
# QEMU dependencies: apt-get install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build
Expand All @@ -29,4 +35,4 @@ RUN wget https://download.qemu.org/qemu-7.2.0.tar.xz && tar xvJf qemu-7.2.0.tar.
RUN locale-gen en_US.utf8

# Copy the application files
COPY . .
COPY . .

0 comments on commit 803a486

Please sign in to comment.