Skip to content

Commit 6b82784

Browse files
authored
Merge pull request #4 from Se7ven/v1.0.3
## 1.0.3
2 parents 7d2cfce + 67af31a commit 6b82784

File tree

4 files changed

+50
-32
lines changed

4 files changed

+50
-32
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ on:
1010

1111
jobs:
1212
variables:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04-arm
1414
outputs:
1515
ARCH_LIST: ${{ env.ARCH_LIST }}
1616
ADDON_LIST: ${{ env.ADDON_LIST }}
1717
DOCKER_ARGS: ${{ env.DOCKER_ARGS }}
1818
env:
19-
CPCD_VERSION: v4.5.2
20-
GECKO_SDK_VERSION: v2024.6.1-0
19+
CPCD_VERSION: v4.7.0
20+
GECKO_SDK_VERSION: v2025.6.0
2121
UNIVERSAL_SILABS_FLASHER: 0.0.22
2222
steps:
2323
- uses: actions/checkout@v3
@@ -37,7 +37,7 @@ jobs:
3737

3838

3939
build:
40-
runs-on: ubuntu-latest
40+
runs-on: buildjet-8vcpu-ubuntu-2204
4141
permissions:
4242
contents: read
4343
packages: write
@@ -48,11 +48,11 @@ jobs:
4848
matrix:
4949
arch:
5050
- arch: aarch64
51-
from: ghcr.io/home-assistant/aarch64-base-debian:bullseye
51+
from: ghcr.io/home-assistant/aarch64-base-debian:bookworm
5252
- arch: armv7
53-
from: ghcr.io/home-assistant/armv7-base-debian:bullseye
53+
from: ghcr.io/home-assistant/armv7-base-debian:bookworm
5454
- arch: amd64
55-
from: ghcr.io/home-assistant/amd64-base-debian:bullseye
55+
from: ghcr.io/home-assistant/amd64-base-debian:bookworm
5656
steps:
5757
- uses: actions/checkout@v3
5858
- name: set version
@@ -74,10 +74,15 @@ jobs:
7474
with:
7575
username: ${{ vars.DOCKER_LOGIN }}
7676
password: ${{ secrets.DOCKER_PASSWORD }}
77+
# - uses: docker/setup-qemu-action@v3
78+
# with:
79+
# platforms: linux/arm64,linux/amd64,linux/armv7
80+
# image: tonistiigi/binfmt:latest
7781
- name: Build
7882
run: |
7983
docker run --rm --privileged \
8084
-v /home/runner/.docker:/root/.docker \
85+
--ulimit memlock=100000000000:100000000000 \
8186
-v /run/docker.sock:/run/docker.sock:rw \
8287
-v $(pwd)/silabs-multiprotocol-ember:/data homeassistant/amd64-builder --${{ matrix.arch.arch }} -t /data \
8388
${{ env.DOCKER_ARGS }}

silabs-multiprotocol-ember/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 1.0.3
4+
5+
Updates:
6+
- simplicity sdk -> v2025.6.0
7+
- cpcd -> v4.7.0
8+
9+
Changes:
10+
- Build image changed from Debian to Ubuntu
11+
312
## 1.0.2
413
- Fix SimplicitySDK version
514

silabs-multiprotocol-ember/Dockerfile

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BUILD_FROM
22
ARG BUILD_ARCH
3-
FROM --platform=linux/amd64 debian:bullseye AS cross-builder-base
3+
FROM --platform=linux/amd64 debian:bookworm AS cross-builder-base
44

55
ENV \
66
LANG="C.UTF-8" \
@@ -13,13 +13,14 @@ WORKDIR /usr/src
1313
# hadolint ignore=DL3009
1414
RUN \
1515
set -x \
16-
&& apt-get update \
16+
&& (apt-get update || true) \
1717
&& apt-get install -y --no-install-recommends \
1818
bash \
1919
curl \
2020
ca-certificates \
2121
build-essential \
22-
git
22+
git \
23+
software-properties-common
2324

2425
FROM --platform=linux/amd64 cross-builder-base AS cross-builder-armv7
2526

@@ -33,7 +34,7 @@ ENV ZIGBEED_ARCH=zigbee_arm32
3334
RUN \
3435
set -x \
3536
&& dpkg --add-architecture armhf \
36-
&& apt-get update \
37+
&& (apt-get update || true) \
3738
&& apt-get install -y --no-install-recommends \
3839
crossbuild-essential-armhf
3940

@@ -49,7 +50,7 @@ ENV ZIGBEED_ARCH=zigbee_arm64
4950
RUN \
5051
set -x \
5152
&& dpkg --add-architecture arm64 \
52-
&& apt-get update \
53+
&& (apt-get update || true) \
5354
&& apt-get install -y --no-install-recommends \
5455
crossbuild-essential-arm64
5556

@@ -65,7 +66,7 @@ ENV DEBIAN_ARCH=amd64 \
6566
RUN \
6667
set -x \
6768
&& dpkg --add-architecture amd64 \
68-
&& apt-get update \
69+
&& (apt-get update || true) \
6970
&& apt-get install -y --no-install-recommends \
7071
crossbuild-essential-amd64
7172

@@ -79,7 +80,7 @@ RUN \
7980
&& apt-get install -y --no-install-recommends \
8081
cmake \
8182
"libmbedtls-dev:${DEBIAN_ARCH}" \
82-
"libmbedtls12:${DEBIAN_ARCH}" \
83+
"libmbedtls14:${DEBIAN_ARCH}" \
8384
&& git clone --depth 1 -b "${CPCD_VERSION}" \
8485
https://github.com/SiliconLabs/cpc-daemon.git \
8586
&& mkdir cpc-daemon/build && cd cpc-daemon/build \
@@ -99,9 +100,11 @@ RUN \
99100
python3 \
100101
python3-jinja2 \
101102
python3-pip \
102-
openjdk-17-jre \
103+
# openjdk-21-jre \
103104
git-lfs \
104105
unzip \
106+
&& curl -O https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb \
107+
&& dpkg -i jdk-21_linux-x64_bin.deb \
105108
&& curl -O https://www.silabs.com/documents/login/software/slc_cli_linux.zip \
106109
&& unzip slc_cli_linux.zip \
107110
&& cd slc_cli/ && chmod +x slc
@@ -136,10 +139,10 @@ RUN \
136139
--with="${ZIGBEED_ARCH},${SLC_ARCH}" \
137140
--sdk=$(pwd)/simplicity_sdk \
138141
--without=zigbee_recommended_linux_arch \
139-
--project-file=$(pwd)/simplicity_sdk/protocol/zigbee/app/zigbeed/zigbeed.slcp \
140-
--export-destination=$(pwd)/simplicity_sdk/protocol/zigbee/app/zigbeed/output \
142+
--project-file=$(pwd)/simplicity_sdk/protocol/zigbee/app/projects/zigbeed/zigbeed.slcp \
143+
--export-destination=$(pwd)/simplicity_sdk/protocol/zigbee/app/projects/zigbeed/output \
141144
--copy-proj-sources \
142-
&& cd simplicity_sdk/protocol/zigbee/app/zigbeed/output \
145+
&& cd simplicity_sdk/protocol/zigbee/app/projects/zigbeed/output \
143146
## && patch -p1 < /usr/src/0001-Use-TCP-socket-instead-of-serial-port-main-app.patch \
144147
&& make -f zigbeed.Makefile \
145148
AR="${DEBIAN_CROSS_PREFIX}-ar" \
@@ -156,9 +159,9 @@ ARG UNIVERSAL_SILABS_FLASHER
156159
LABEL org.opencontainers.image.source=https://github.com/Se7ven/silabs-multiprotocol-ember
157160
RUN \
158161
set -x \
159-
&& apt-get update \
162+
&& (apt-get update || true) \
160163
&& apt-get install -y --no-install-recommends \
161-
libmbedtls12 \
164+
libmbedtls14 \
162165
socat \
163166
supervisor \
164167
&& rm -rf /var/lib/apt/lists/* \
@@ -176,7 +179,7 @@ COPY --from=cpcd-builder /usr/local/ /usr/local/
176179
ENV BORDER_ROUTING=1
177180
ENV BACKBONE_ROUTER=1
178181
ENV WEB_GUI=1
179-
ENV DOCKER 1
182+
ENV DOCKER=1
180183

181184
COPY otbr-patches/0001-Avoid-writing-to-system-console.patch /usr/src
182185
COPY otbr-patches/0001-rest-support-erasing-all-persistent-info-1908.patch /usr/src
@@ -185,16 +188,16 @@ COPY otbr-patches/0003-mdns-update-mDNSResponder-to-1790.80.10.patch /usr/src
185188
COPY otbr-patches/0004-mdns-add-Linux-specific-patches.patch /usr/src
186189

187190
# Required and installed during build (script/bootstrap), could be removed
188-
ENV OTBR_BUILD_DEPS build-essential ninja-build cmake wget ca-certificates \
191+
ENV OTBR_BUILD_DEPS="build-essential ninja-build cmake wget ca-certificates \
189192
libreadline-dev libncurses-dev libcpputest-dev libdbus-1-dev libavahi-common-dev \
190193
libavahi-client-dev libboost-dev libboost-filesystem-dev libboost-system-dev \
191-
libnetfilter-queue-dev
194+
libnetfilter-queue-dev"
192195

193196
# Build OTBR natively from Gecko SDK sources
194197
WORKDIR /usr/src
195198
RUN \
196199
set -x \
197-
&& apt-get update \
200+
&& (apt-get update || true) \
198201
# Install npm/nodejs for WebUI manually to avoid systemd getting pulled in \
199202
&& apt-get install -y --no-install-recommends \
200203
nodejs \
@@ -204,11 +207,12 @@ RUN \
204207
python3 \
205208
python3-dev \
206209
python3-pip \
210+
python3-attr \
207211
python3-aiohttp \
208212
python3-cryptography \
209213
python3-yarl \
210214
lsb-release \
211-
netcat \
215+
netcat-traditional \
212216
sudo \
213217
&& cd ot-br-posix \
214218
# && patch -p1 < /usr/src/0001-Avoid-writing-to-system-console.patch \
@@ -253,7 +257,7 @@ RUN \
253257
&& cd build/otbr/ \
254258
&& ninja \
255259
&& ninja install) \
256-
&& pip install universal-silabs-flasher==${UNIVERSAL_SILABS_FLASHER} \
260+
&& pip install universal-silabs-flasher==${UNIVERSAL_SILABS_FLASHER} --break-system-packages \
257261
&& apt-get purge -y --auto-remove \
258262
build-essential \
259263
patch \
@@ -267,7 +271,7 @@ RUN \
267271
&& rm -rf /usr/src/*
268272
#
269273
COPY --from=zigbeed-builder \
270-
/usr/src/simplicity_sdk/protocol/zigbee/app/zigbeed/output/build/debug/zigbeed \
274+
/usr/src/simplicity_sdk/protocol/zigbee/app/projects/zigbeed/output/build/debug/zigbeed \
271275
/usr/local/bin
272276
#
273277
RUN ldconfig && touch /accept_silabs_msla
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
build_from:
3-
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bullseye
4-
armv7: ghcr.io/home-assistant/armv7-base-debian:bullseye
5-
amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
3+
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bookworm
4+
armv7: ghcr.io/home-assistant/armv7-base-debian:bookworm
5+
amd64: ghcr.io/home-assistant/amd64-base-debian:bookworm
66
args:
7-
CPCD_VERSION: v4.5.2
8-
GECKO_SDK_VERSION: v2024.6.2
7+
CPCD_VERSION: v4.7.0
8+
GECKO_SDK_VERSION: v2025.6.0
99
UNIVERSAL_SILABS_FLASHER: 0.0.22

0 commit comments

Comments
 (0)