Skip to content

Instantly share code, notes, and snippets.

@badcf00d
badcf00d / gist:1aa250e6ca591220e200fd8bc500f731
Last active August 11, 2023 13:51
Dockerfile to build arm-none-eabi-gcc cross-compiler
FROM debian:bullseye-20230725
RUN apt-get -y update
RUN apt-get -y install build-essential python3 git
RUN apt-get -y install libgmp-dev libmpfr-dev libmpc-dev libexpat-dev liblzma-dev libsource-highlight-dev libpython3-dev libbabeltrace-dev libipt-dev libncurses5-dev libdebuginfod-dev meson ninja-build texinfo pkg-config python-is-python3 flex diffutils
RUN apt-get -y install --install-suggests gcc
# Setup build directory
RUN mkdir -p /root/gcc-cross-compiler/build
WORKDIR /root/gcc-cross-compiler/
@badcf00d
badcf00d / build.sh
Last active May 8, 2024 10:30
Build arm-none-eabi-gcc cross-compiler
#!/bin/bash
set -e
set -v
# Install prerequisites
sudo apt-get -y install gcc \
libgmp-dev \
libmpfr-dev \
libmpc-dev \