Skip to content

Commit

Permalink
[NXP][k32w1] Fix docker image (project-chip#34935)
Browse files Browse the repository at this point in the history
Create a separate folder for each west workspace.

Signed-off-by: marius-alex-tache <[email protected]>
  • Loading branch information
marius-alex-tache authored and PeterC1965 committed Aug 28, 2024
1 parent f7692c0 commit 722a1e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integrations/docker/images/stage-2/chip-build-k32w/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ RUN set -x \

RUN set -x \
&& west init -m https://github.com/nxp-mcuxpresso/mcux-sdk --mr "MCUX_2.6.14_K32W0" \
&& west update \
&& west update -o=--depth=1 -n -f smart \
&& chmod +x core/tools/imagetool/sign_images.sh \
&& ln -sf ../rtos core \
&& ln -sf ../middleware core \
&& cp -R examples/* core/boards && rm -rf examples \
&& : # last line

WORKDIR /opt/k32w1_sdk

RUN set -x \
&& mkdir -p k32w1/repo \
&& cd k32w1/repo \
&& west init -m https://github.com/nxp-mcuxpresso/mcux-sdk --mr "MCUX_2.16.000" \
&& west update -o=--depth=1 -n -f smart \
&& cd - \
&& : # last line

FROM ghcr.io/project-chip/chip-build:${VERSION}

COPY --from=build /opt/sdk/ /opt/sdk/
COPY --from=build /opt/k32w1_sdk/ /opt/k32w1_sdk/

ENV NXP_K32W0_SDK_ROOT=/opt/sdk/core
ENV NXP_SDK_ROOT=/opt/sdk/k32w1/repo
ENV NXP_SDK_ROOT=/opt/k32w1_sdk

0 comments on commit 722a1e5

Please sign in to comment.