Docker-Build mit gcc-arm-none-eabi 4.9-2014q4 (statt Homebrew-Cask) verwendet, Dockerfile/tools/docker.sh dafür aus Task 13 vorgezogen. cmake/sdk.cmake schont gcc 4.9 (kennt -fcommon/-Wno-error=... nicht). Zwei zusätzliche SDK-Stubs (EarlyInit, pre_gpio_config) in src/sys/sdk_stubs.c ergänzt, siehe sdk/PATCHES.md.
13 lines
857 B
Docker
13 lines
857 B
Docker
# Build image: Ubuntu 20.04 (x86_64) with gcc-arm-none-eabi 4.9-2014q4, the toolchain the
|
|
# old Klyqa firmware (and libwlan.a) was built with. On Apple Silicon it runs emulated.
|
|
FROM ubuntu:20.04
|
|
ARG ARM_TOOLCHAIN=https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN dpkg --add-architecture i386 && apt-get update && apt-get -y --no-install-recommends install \
|
|
ca-certificates build-essential libc6:i386 bzip2 git cmake ninja-build wget python3 && \
|
|
wget -q $ARM_TOOLCHAIN -O /tmp/tc.tar.bz2 && tar -xf /tmp/tc.tar.bz2 -C /usr/local/ && rm /tmp/tc.tar.bz2 && \
|
|
git config --system --add safe.directory /work && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
ENV PATH=$PATH:/usr/local/gcc-arm-none-eabi-4_9-2014q4/bin
|
|
WORKDIR /work
|