Skip to content

Commit 2f6eada

Browse files
[nrfconnect] Bump nRF Connect SDK version in Docker (project-chip#24082)
Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no> Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
1 parent 12ee5a2 commit 2f6eada

File tree

2 files changed

+28
-36
lines changed

2 files changed

+28
-36
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,67 @@
11
ARG VERSION=latest
2-
FROM connectedhomeip/chip-build:${VERSION} as build
3-
4-
# Compatible Nordic Connect SDK revision.
5-
ARG NCS_REVISION=v2.1.1
6-
7-
RUN set -x \
8-
&& apt-get update \
9-
&& apt-get install --no-install-recommends -fy \
10-
curl \
11-
&& apt-get clean \
12-
&& rm -rf /var/lib/apt/lists/ \
13-
&& : # last line
142

153
# ==================================================
16-
# nRF Connect SDK dependencies
4+
# Temporary image for SDK and dependencies download
175
# ==================================================
186

7+
FROM connectedhomeip/chip-build:${VERSION} as build
8+
# Compatible Nordic Connect SDK revision.
9+
ARG NCS_REVISION=v2.2.0
10+
1911
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
12+
WORKDIR /opt/NordicSemiconductor/nRF5_tools
2013
RUN set -x \
21-
&& mkdir -p /opt/NordicSemiconductor/nRF5_tools/ \
22-
&& curl --location https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-12-1/nrfcommandlinetools10121linuxamd64.tar.gz \
14+
&& curl --location https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-18-1/nrf-command-line-tools-10.18.1_linux-amd64.tar.gz \
15+
| tar zxvf - \
16+
&& tar xvf JLink_Linux_V780c_x86_64.tgz \
17+
&& rm JLink_Linux_V780c_x86_64.* \
18+
&& curl --location https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.15.2/zephyr-sdk-0.15.2_linux-x86_64_minimal.tar.gz \
2319
| tar zxvf - \
24-
&& tar xvf JLink_Linux_V688a_x86_64.tgz -C /opt/NordicSemiconductor/nRF5_tools/ \
25-
&& tar xvf nRF-Command-Line-Tools_10_12_1.tar -C /opt/NordicSemiconductor/nRF5_tools/ \
20+
&& zephyr-sdk-0.15.2/setup.sh -t arm-zephyr-eabi \
2621
&& : # last line
2722

2823
WORKDIR /opt/NordicSemiconductor/nrfconnect
2924
RUN set -x \
30-
&& python3 -m pip install -U --no-cache-dir \
31-
west==0.13.1 \
32-
&& west init -m https://github.com/nrfconnect/sdk-nrf \
33-
&& git -C nrf fetch origin "$NCS_REVISION" \
34-
&& git -C nrf checkout FETCH_HEAD \
25+
&& python3 -m pip install -U --no-cache-dir west==0.14.0 \
26+
&& west init -m https://github.com/nrfconnect/sdk-nrf --mr "$NCS_REVISION" \
3527
&& west config update.narrow true \
3628
&& west config update.fetch smart \
3729
&& west update -o=--depth=1 -n -f smart \
3830
&& : # last line
3931

32+
# ==================================================
33+
# nRF Connect SDK final image
34+
# ==================================================
35+
4036
FROM connectedhomeip/chip-build:${VERSION}
4137

4238
# Tools for building, flashing and accessing device logs
4339
RUN set -x \
4440
&& apt-get update \
45-
&& apt-get install --no-install-recommends -fy \
46-
device-tree-compiler=1.5.1-1 \
47-
ccache=3.7.7-1 \
41+
&& apt-get install --no-install-recommends -fy device-tree-compiler=1.5.1-1 \
4842
&& apt-get clean \
4943
&& rm -rf /var/lib/apt/lists/ \
5044
&& : # last line
5145

5246
COPY --from=build /opt/NordicSemiconductor/nRF5_tools/ /opt/NordicSemiconductor/nRF5_tools/
5347
COPY --from=build /opt/NordicSemiconductor/nrfconnect/ /opt/NordicSemiconductor/nrfconnect/
5448

55-
# ==================================================
56-
# nRF Connect SDK
57-
# ==================================================
58-
5949
RUN set -x \
6050
# python3-yaml package conflicts with nRF Python requirements
6151
&& (apt-get remove -fy python3-yaml && apt-get autoremove || exit 0) \
62-
&& python3 -m pip install -U --no-cache-dir cmake==3.22.5 \
63-
&& python3 -m pip install --no-cache-dir -r /opt/NordicSemiconductor/nrfconnect/zephyr/scripts/requirements.txt \
52+
&& python3 -m pip install -U --no-cache-dir cmake==3.25.0 \
53+
&& python3 -m pip install --no-cache-dir -r /opt/NordicSemiconductor/nrfconnect/zephyr/scripts/requirements-base.txt \
6454
&& python3 -m pip install --no-cache-dir -r /opt/NordicSemiconductor/nrfconnect/nrf/scripts/requirements-build.txt \
6555
&& python3 -m pip install --no-cache-dir -r /opt/NordicSemiconductor/nrfconnect/bootloader/mcuboot/scripts/requirements.txt \
6656
&& : # last line
6757

6858
ENV NRF5_TOOLS_ROOT=/opt/NordicSemiconductor/nRF5_tools
69-
ENV PATH=${NRF5_TOOLS_ROOT}/JLink_Linux_V688a_x86_64:${PATH}
70-
ENV PATH=${NRF5_TOOLS_ROOT}/mergehex:${NRF5_TOOLS_ROOT}/nrfjprog:${PATH}
71-
ENV LD_LIBRARY_PATH=${NRF5_TOOLS_ROOT}/JLink_Linux_V688a_x86_64:${LD_LIBRARY_PATH}
59+
ENV PATH=${NRF5_TOOLS_ROOT}/JLink_Linux_V780c_x86_64:${PATH}
60+
ENV PATH=${NRF5_TOOLS_ROOT}/nrf-command-line-tools/bin:${PATH}
61+
ENV LD_LIBRARY_PATH=${NRF5_TOOLS_ROOT}/JLink_Linux_V780c_x86_64:${LD_LIBRARY_PATH}
7262
ENV LC_ALL=C.UTF-8
7363
ENV LANG=C.UTF-8
7464
ENV ZEPHYR_BASE=/opt/NordicSemiconductor/nrfconnect/zephyr
75-
ENV ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
65+
ENV ZEPHYR_SDK_INSTALL_DIR=${NRF5_TOOLS_ROOT}/zephyr-sdk-0.15.2
66+
ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr
67+
ENV ZEPHYR_TOOLCHAIN_PATH=${ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.19 Version bump reason: [Ameba] Support reading and decoding factory data from flash
1+
0.6.20 Version bump reason: [nrfconnect] Bump nRF Connect SDK version

0 commit comments

Comments
 (0)