Skip to content

Commit 2210320

Browse files
marius-alex-tachepull[bot]
authored andcommitted
[K32W0] Use west tool to get SDK (#28431)
Signed-off-by: Marius Tache <marius.tache@nxp.com>
1 parent 86fd491 commit 2210320

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4 : [Ameba] Upgrade to c++17
1+
5 : Use west to download the K32W0 SDK

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

+9-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@ RUN set -x \
1111
&& : # last line
1212

1313
WORKDIR /opt/sdk
14-
# Setup the K32W SDK
14+
1515
RUN set -x \
16-
&& wget https://cache.nxp.com/lgfiles/bsps/SDK_2_6_11_K32W061DK6.zip \
17-
&& unzip SDK_2_6_11_K32W061DK6.zip \
18-
&& rm -rf SDK_2_6_11_K32W061DK6.zip \
16+
&& python3 -m pip install -U --no-cache-dir west==1.0.0 \
17+
&& west init -m https://github.com/nxp-mcuxpresso/mcux-sdk --mr "release/2.6.x_k32w0" \
18+
&& west update \
19+
&& chmod +x core/tools/imagetool/sign_images.sh \
20+
&& ln -sf ../rtos core \
21+
&& ln -sf ../middleware core \
22+
&& cp -R examples/* core/boards && rm -rf examples \
1923
&& : # last line
2024

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

2327
COPY --from=build /opt/sdk/ /opt/sdk/
2428

25-
ENV NXP_K32W0_SDK_ROOT=/opt/sdk
29+
ENV NXP_K32W0_SDK_ROOT=/opt/sdk/core

0 commit comments

Comments
 (0)