From 722a1e58d0b5684d5d85592c47c1ce81c09bd51f Mon Sep 17 00:00:00 2001 From: Marius Tache <102153746+marius-alex-tache@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:23:27 +0300 Subject: [PATCH] [NXP][k32w1] Fix docker image (#34935) Create a separate folder for each west workspace. Signed-off-by: marius-alex-tache --- .../docker/images/stage-2/chip-build-k32w/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integrations/docker/images/stage-2/chip-build-k32w/Dockerfile b/integrations/docker/images/stage-2/chip-build-k32w/Dockerfile index d70fcd4bb2fe9d..9b222355fb51e0 100644 --- a/integrations/docker/images/stage-2/chip-build-k32w/Dockerfile +++ b/integrations/docker/images/stage-2/chip-build-k32w/Dockerfile @@ -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