From f302969e2e7cea3809081bc2ee3b91c643312e6d Mon Sep 17 00:00:00 2001 From: GaryHuang-ASUS Date: Thu, 18 Sep 2025 10:44:33 +0800 Subject: [PATCH] [Update] Remove unuse script - install_deps.sh has already been executing in deps download stage - Dockerfile.toolchain is for testing to extract runtime libraries from Synaptics toolchain --- docker/synap1680/Dockerfile.toolchain | 34 --------------------------- docker/synap1680/install_deps.sh | 15 ------------ 2 files changed, 49 deletions(-) delete mode 100644 docker/synap1680/Dockerfile.toolchain delete mode 100755 docker/synap1680/install_deps.sh diff --git a/docker/synap1680/Dockerfile.toolchain b/docker/synap1680/Dockerfile.toolchain deleted file mode 100644 index 18e74ad4d..000000000 --- a/docker/synap1680/Dockerfile.toolchain +++ /dev/null @@ -1,34 +0,0 @@ -# syntax=docker/dockerfile:1.4 - -ARG DEBIAN_FRONTEND=noninteractive - -FROM --platform=linux/amd64 debian:12-slim AS poky-toolchain -ARG DEBIAN_FRONTEND -RUN apt-get update \ - && apt-get install -y wget xz-utils \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /tmp - -RUN wget -O /tmp/toolchain.sh.000 https://github.com/synaptics-astra/sdk/releases/download/v1.5.0/sl1680_oobe-poky-glibc-x86_64-astra-media-oobe-cortexa73-sl1680-toolchain-4.0.17.sh.000 \ - && wget -O /tmp/toolchain.sh.001 https://github.com/synaptics-astra/sdk/releases/download/v1.5.0/sl1680_oobe-poky-glibc-x86_64-astra-media-oobe-cortexa73-sl1680-toolchain-4.0.17.sh.001 \ - && cat /tmp/toolchain.sh.* > /tmp/toolchain.sh \ - && chmod +x /tmp/toolchain.sh \ - && /tmp/toolchain.sh -y -d /opt/poky/4.0.17 - -FROM deps AS synap1680-deps -ARG TARGETARCH - -# Install dependencies -RUN --mount=type=bind,source=docker/synap1680/install_deps.sh,target=/deps/install_deps.sh \ - /deps/install_deps.sh - -WORKDIR /opt/frigate/ -COPY --from=rootfs / / -COPY --from=poky-toolchain /opt/poky/4.0.17/sysroots/cortexa73-poky-linux/usr/lib/libtim-vx.so /rootfs/usr/lib/ -COPY --from=poky-toolchain /opt/poky/4.0.17/sysroots/cortexa73-poky-linux/usr/lib/libtensorflow-lite.so /rootfs/usr/lib/ -COPY --from=poky-toolchain /opt/poky/4.0.17/sysroots/cortexa73-poky-linux/usr/lib/libvx_delegate.so /rootfs/usr/lib/ -COPY --from=poky-toolchain /opt/poky/4.0.17/sysroots/cortexa73-poky-linux/usr/lib/libsynapnb.so /rootfs/usr/lib/ -COPY --from=poky-toolchain /opt/poky/4.0.17/sysroots/cortexa73-poky-linux/usr/lib/libebg_utils.so /rootfs/usr/lib/ -COPY --from=poky-toolchain /opt/poky/4.0.17/sysroots/cortexa73-poky-linux/usr/lib/libovxlib.so /rootfs/usr/lib/ -ADD https://github.com/synaptics-astra/synap-release/blob/v1.5.0/models/dolphin/object_detection/coco/model/mobilenet224_full80/model.synap /model.synap diff --git a/docker/synap1680/install_deps.sh b/docker/synap1680/install_deps.sh deleted file mode 100755 index 4ce9149d1..000000000 --- a/docker/synap1680/install_deps.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -euxo pipefail - -apt-get -qq update - -if [[ "${TARGETARCH}" == "amd64" ]]; then - arch="x86_64" -elif [[ "${TARGETARCH}" == "arm64" ]]; then - arch="aarch64" -fi - -wget -qO- "https://github.com/GaryHuang-ASUS/frigate-synaptics-rt/releases/download/v1.5.0-1.0/synaptics-rt-1.0.tar" | tar -C / -xzf - -wget -P /wheels/ "https://github.com/synaptics-synap/synap-python/releases/download/v0.0.4-preview/synap_python-0.0.4-cp311-cp311-manylinux_2_35_aarch64.whl" -cp /rootfs/usr/local/lib/* /usr/local/lib