From 92b1fc5286b10d5ea42396b8ea06000e15bb41c9 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Tue, 17 Dec 2024 21:05:13 -0500 Subject: [PATCH] add rk3588 target --- bookworm/Dockerfile | 24 ++++++++++++++++++++++++ box64.sh | 3 +++ 2 files changed, 27 insertions(+) diff --git a/bookworm/Dockerfile b/bookworm/Dockerfile index f4af200..65e3141 100644 --- a/bookworm/Dockerfile +++ b/bookworm/Dockerfile @@ -133,6 +133,29 @@ RUN set -x \ ############################################################ +FROM arm64v8/debian:bookworm-slim as box64_rk3588 + +ENV DEBIAN_FRONTEND noninteractive + +# Set SHELL option explicitly +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +# hadolint ignore=DL3008 +RUN set -x \ + # Install, update & upgrade packages + && apt-get update \ + && apt-get install -y --no-install-recommends --no-install-suggests \ + ca-certificates \ + wget \ + gnupg \ + && wget --progress=dot:giga https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list \ + && (wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg) \ + && apt-get update \ + && apt-get install -y --no-install-recommends --no-install-suggests \ + box64-rk3588 + +############################################################ + FROM arm64v8/python:slim-bookworm as box64_adlink ENV DEBIAN_FRONTEND noninteractive @@ -184,6 +207,7 @@ COPY --from=box64_rpi5_16k /usr/local/bin/box64 /usr/local/bin/box64-rpi5-16k COPY --from=box64_rpi4 /usr/local/bin/box64 /usr/local/bin/box64-rpi4 COPY --from=box64_rpi4_0.2.7 /usr/local/bin/box64 /usr/local/bin/box64-rpi4-0_2_7 COPY --from=box64_rpi3 /usr/local/bin/box64 /usr/local/bin/box64-rpi3 +COPY --from=box64_rk3588 /usr/local/bin/box64 /usr/local/bin/box64-rk3588 COPY --from=box64_adlink /tmp/install/usr/local/bin/box64 /usr/local/bin/box64-adlink # hadolint ignore=DL3008 diff --git a/box64.sh b/box64.sh index 7a9422e..ea70ed8 100644 --- a/box64.sh +++ b/box64.sh @@ -23,6 +23,9 @@ case $ARM64_DEVICE in rpi3) BINARY_PATH="/usr/local/bin/box64-rpi3" ;; + rk3588) + BINARY_PATH="/usr/local/bin/box64-rk3588" + ;; m1) BINARY_PATH="/usr/local/bin/box64-m1" ;;