FROM cc-base:latest AS cc_rk3576 WORKDIR /opt # RUN wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz \ # && tar -xJf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz \ # && rm /opt/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz COPY rk3576/aarch64-buildroot-linux-gnu_sdk-buildroot.tar.gz /opt/ RUN tar -zxf aarch64-buildroot-linux-gnu_sdk-buildroot.tar.gz \ && rm /opt/aarch64-buildroot-linux-gnu_sdk-buildroot.tar.gz # use python3.11 RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 \ && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 2 \ && update-alternatives --set python3 /usr/bin/python3.11 \ && rm -f /usr/bin/python3-config \ && ln -s /usr/bin/python3.11-config /usr/bin/python3-config COPY rk3576/rk3576.toolchain.cmake /opt/cmake/ ENV CC_TOOLCHAIN_FILE=/opt/cmake/rk3576.toolchain.cmake ENV TARGET_SYSROOT=/opt/rk3576 ENV PATH="${PATH}:/opt/aarch64-buildroot-linux-gnu_sdk-buildroot/bin" ENV PYTHON_PKG_PATH=${TARGET_SYSROOT}/lib/python3.11/site-packages ARG BUILD_JOBS=6 ENV MAKEFLAGS="-j${BUILD_JOBS}"