Adding alsa lib and cpal

This commit is contained in:
2025-06-28 14:28:32 +00:00
parent 535822198b
commit 66c4aeffa6
11 changed files with 570 additions and 64 deletions
+16 -5
View File
@@ -4,11 +4,22 @@ FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
# Install ARM cross-compilation toolchain packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gdb-multiarch \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf \
binutils-arm-linux-gnueabihf && \
gdb-multiarch \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf \
binutils-arm-linux-gnueabihf && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN rustup target add armv7-unknown-linux-gnueabihf
# install arm32 cross-compiler
RUN dpkg --add-architecture armhf && \
apt update && \
apt install -y \
libasound2-dev:armhf && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN rustup target add armv7-unknown-linux-gnueabihf
ENV PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
ENV PKG_CONFIG_ALLOW_CROSS=true