Skip to content

Commit 70b9ff6

Browse files
committed
feat(container/zephyr): install wasi-sysroot
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent feb2456 commit 70b9ff6

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.devcontainer/zephyr/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3232
gperf \
3333
gpg \
3434
jq \
35+
libclang-rt-dev-wasm32 \
3536
libmagic1 \
3637
libsdl2-dev \
38+
lld \
3739
llvm \
3840
make \
3941
net-tools \
@@ -51,10 +53,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5153
&& apt-get clean -y\
5254
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 50
5355

54-
# Install wasi-sdk
55-
RUN mkdir /opt/wasi-sdk && \
56-
curl -sSL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$WASI_SDK_VERSION/wasi-sdk-$WASI_SDK_VERSION.0-$(uname -m | sed s/aarch64/arm64/)-linux.tar.gz | \
57-
tar zxvf - --strip-components=1 -C /opt/wasi-sdk
56+
# Install wasi-sysroot
57+
RUN mkdir /opt/wasi-sysroot && \
58+
curl -sSL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$WASI_SDK_VERSION/wasi-sysroot-$WASI_SDK_VERSION.0.tar.gz | \
59+
tar zxvf - --strip-components=1 -C /opt/wasi-sysroot
5860

5961
RUN python -m venv /opt/zephyr-venv && \
6062
. /opt/zephyr-venv/bin/activate && \

0 commit comments

Comments
 (0)