diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-25 15:22:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 15:22:20 -0500 |
commit | 3ddbb22edac32b55fb7384e39948114f68771c00 (patch) | |
tree | ab2d7342c1292db32e667f55040b278d75f043be | |
parent | Merge pull request #1 from Gauvino/master (diff) | |
parent | Merge branch 'jellyfin-sandbox:master' into master (diff) | |
download | jellyfin-packaging-3ddbb22edac32b55fb7384e39948114f68771c00.tar.gz jellyfin-packaging-3ddbb22edac32b55fb7384e39948114f68771c00.tar.bz2 jellyfin-packaging-3ddbb22edac32b55fb7384e39948114f68771c00.zip |
Merge pull request #2 from Gauvino/master
Add libmali OpenCL runtime for Rockchip RK3588
-rw-r--r-- | docker/Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index b69015d..15c34bb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,6 +14,11 @@ ARG IGC_VERSION=1.0.15985.7 ARG NEO_VERSION=24.05.28454.6 ARG LEVEL_ZERO_VERSION=1.3.28454.6 +# https://github.com/tsukumijima/libmali-rockchip +ARG MALI_PKG_VER=1.9-1_arm64 +ARG MALI_PKG_TAG=v1.9-1-b5d7972 +ARG MALI_PKG_CFG=valhall-g610-g13p0-wayland-gbm + # Debian architecture (amd64, arm64, armhf), set by build script ARG PACKAGE_ARCH # Dotnet architeture (x64, arm64, arm), set by build script @@ -90,6 +95,10 @@ ARG IGC_VERSION ARG NEO_VERSION ARG LEVEL_ZERO_VERSION +ARG MALI_PKG_VER +ARG MALI_PKG_TAG +ARG MALI_PKG_CFG + ARG PACKAGE_ARCH ARG DOTNET_ARCH ARG QEMU_ARCH @@ -163,6 +172,19 @@ RUN if [[ ${PACKAGE_ARCH} == "amd64" ]]; then \ && apt-get autoremove --yes \ && rm -rf /var/cache/apt/archives* /var/lib/apt/lists/* +# Rockchip RK3588 libmali OpenCL dependencies: +RUN if [[ ${PACKAGE_ARCH} == "arm64" ]]; then \ + mkdir libmali-rockchip \ + && cd libmali-rockchip \ + && curl -LO https://github.com/tsukumijima/libmali-rockchip/releases/download/${MALI_PKG_TAG}/libmali-${MALI_PKG_CFG}_${MALI_PKG_VER}.deb \ + && apt-get install --no-install-recommends --no-install-suggests -y ./*.deb \ + && cd .. \ + && rm -rf libmali-rockchip \ + ; fi \ + && apt-get clean autoclean --yes \ + && apt-get autoremove --yes \ + && rm -rf /var/cache/apt/archives* /var/lib/apt/lists/* + RUN mkdir -p ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \ && chmod 777 ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} |