Skip to content

Commit b383256

Browse files
marius-alex-tacheaustina-csa
authored andcommittedAug 12, 2024
[NXP][k32w1] Fix docker image (#34935)
Create a separate folder for each west workspace. Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
1 parent 2f011c9 commit b383256

File tree

1 file changed

+5
-5
lines changed
  • integrations/docker/images/stage-2/chip-build-k32w

1 file changed

+5
-5
lines changed
 

‎integrations/docker/images/stage-2/chip-build-k32w/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ RUN set -x \
1919

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

29+
WORKDIR /opt/k32w1_sdk
30+
2931
RUN set -x \
30-
&& mkdir -p k32w1/repo \
31-
&& cd k32w1/repo \
3232
&& west init -m https://github.com/nxp-mcuxpresso/mcux-sdk --mr "MCUX_2.16.000" \
3333
&& west update -o=--depth=1 -n -f smart \
34-
&& cd - \
3534
&& : # last line
3635

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

3938
COPY --from=build /opt/sdk/ /opt/sdk/
39+
COPY --from=build /opt/k32w1_sdk/ /opt/k32w1_sdk/
4040

4141
ENV NXP_K32W0_SDK_ROOT=/opt/sdk/core
42-
ENV NXP_SDK_ROOT=/opt/sdk/k32w1/repo
42+
ENV NXP_SDK_ROOT=/opt/k32w1_sdk

0 commit comments

Comments
 (0)