From f6319b2f8ff6a1cfe1674ca17b0304ffe85606bd Mon Sep 17 00:00:00 2001 From: David Konsumer Date: Wed, 4 Nov 2026 18:06:59 -0800 Subject: [PATCH 1/2] Add AC79 SDK to toolchain image --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1095607..3f3bc2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # The whole toolchain: JieLi's clang for the FM-1 (x86-64 Linux only), clang/lld for the # WebAssembly emulator, python for the packager, and the formatters. Nothing else is needed. +# It also has JieLi's AC79 SDK, for fm1-base / felucca-bsp builds (foma doesn't use it). FROM --platform=linux/amd64 debian:bookworm-slim RUN apt-get update \ @@ -14,7 +15,22 @@ RUN mkdir -p /opt/jieli \ && ln -s "$(ls -d /opt/jieli/jieli-linux-toolchains-* | sort | tail -1)" /opt/jieli/toolchain \ && /opt/jieli/toolchain/pi32v2/bin/clang --version | head -1 +# JieLi's AC79 SDK (Apache-2.0, its LICENSE kept), pinned to AC79NN_SDK_V1.2.1_2023-12-13 +ARG AC79_SDK_URL=https://github.com/Jieli-Tech/fw-AC79_AIoT_SDK +ARG AC79_SDK_REV=d179b4484759423312073f5fbb232501aa491047 +RUN apt-get update \ + && apt-get install -y --no-install-recommends git \ + && git init -q /opt/jieli/ac79-sdk \ + && cd /opt/jieli/ac79-sdk \ + && git fetch -q --depth 1 --filter=blob:none "$AC79_SDK_URL" "$AC79_SDK_REV" \ + && git sparse-checkout set --no-cone /LICENSE /README.md /cpu/wl82/ /include_lib/ /apps/include_lib/ \ + && git checkout -q FETCH_HEAD \ + && rm -rf .git \ + && test -f cpu/wl82/tools/uboot.boot \ + && apt-get purge -y git && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* + ENV JIELI_TOOLCHAIN=/opt/jieli/toolchain \ + AC79_SDK=/opt/jieli/ac79-sdk \ NPM_CONFIG_CACHE=/tmp/npm \ HOME=/tmp \ PYTHONUNBUFFERED=1 From eafd6588858bd92850a0124c5dbef45df0e6999b Mon Sep 17 00:00:00 2001 From: David Konsumer Date: Wed, 4 Nov 2026 18:08:54 -0800 Subject: [PATCH 2/2] Fetch AC79 SDK from a mirror --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3f3bc2c..a27b2c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,9 @@ RUN mkdir -p /opt/jieli \ && ln -s "$(ls -d /opt/jieli/jieli-linux-toolchains-* | sort | tail -1)" /opt/jieli/toolchain \ && /opt/jieli/toolchain/pi32v2/bin/clang --version | head -1 -# JieLi's AC79 SDK (Apache-2.0, its LICENSE kept), pinned to AC79NN_SDK_V1.2.1_2023-12-13 -ARG AC79_SDK_URL=https://github.com/Jieli-Tech/fw-AC79_AIoT_SDK +# JieLi's AC79 SDK (Apache-2.0, its LICENSE kept), pinned to AC79NN_SDK_V1.2.1_2023-12-13; JieLi took +# their repo down, so it comes from a mirror (the commit pins the content) +ARG AC79_SDK_URL=https://github.com/amitv87/fw-AC79_AIoT_SDK ARG AC79_SDK_REV=d179b4484759423312073f5fbb232501aa491047 RUN apt-get update \ && apt-get install -y --no-install-recommends git \