Skip to content

Commit

Permalink
Adding SRecord (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4deszes authored Jan 31, 2024
1 parent 1bf069d commit fcf4004
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,40 @@ RUN apt-get install -y \
build-essential \
git \
curl \
wget
wget \
libboost-all-dev \
libtool

# Install SRecord
ARG srecord_version="1.65"

WORKDIR /
RUN wget https://downloads.sourceforge.net/project/srecord/srecord/${srecord_version}/srecord-${srecord_version}.0-Linux.deb
RUN apt install -y ./srecord-${srecord_version}.0-Linux.deb

# Install CMake
ARG cmake_version="3.28.1"
ARG cmake_platform="linux-x86_64"

WORKDIR /
RUN mkdir /opt/cmake
RUN wget https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cmake-${cmake_version}-${cmake_platform}.sh
RUN sh cmake-${cmake_version}-${cmake_platform}.sh --prefix=/opt/cmake --skip-license
ENV PATH "$PATH:/opt/cmake/bin"

# Install Python
WORKDIR /
RUN apt-get install -y python3.11
RUN echo 'alias python="python3.11"' >> ~/.bashrc
RUN echo 'alias python3="python3.11"' >> ~/.bashrc

# ARM GCC configuration
# Install ARM GCC
ARG arm_archive="13.2.rel1"
ARG arm_version="13.2.rel1"
ARG arm_folder="13.2.Rel1"
ARG arm_platform="x86_64-arm-none-eabi"

# Install ARM GCC
WORKDIR /
RUN mkdir /opt/armgcc
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu/${arm_archive}/binrel/arm-gnu-toolchain-${arm_version}-${arm_platform}.tar.xz
RUN tar -xf arm-gnu-toolchain-${arm_version}-${arm_platform}.tar.xz --directory /opt/armgcc
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
+ Python 3.11.4
+ GCC 9.0
+ ARM GCC 13.2-rel1
+ SRecord 1.65

---

Expand Down

0 comments on commit fcf4004

Please sign in to comment.