Skip to content

Commit 83c8857

Browse files
committed
build: Add trace build configuration
Build firmware with modem trace output on uart1. Signed-off-by: Jorgen Kvalvaag <[email protected]>
1 parent f27fdb6 commit 83c8857

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,44 @@ jobs:
161161
thingy91x-oob/app/build/nrf91-bl-*.hex
162162
thingy91x-oob/app/build/pmr-nrf91-*.txt
163163
164+
- name: Build nrf91 firmware with modem trace
165+
working-directory: thingy91x-oob/app
166+
run: |
167+
cp overlay-memfault.conf overlay-memfault-oob.conf
168+
echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-oob.conf
169+
echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-oob.conf
170+
echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-oob.conf
171+
echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-oob.conf
172+
west build -b thingy91x/nrf9151/ns -p --sysbuild -- \
173+
-Dapp_SNIPPET=nrf91-modem-trace-uart
174+
175+
- name: Rename trace artifacts
176+
working-directory: thingy91x-oob/app/build
177+
run: |
178+
cp ../../../nrf91-bl-*.hex .
179+
# Overwrite the bootloader part with the frozen version
180+
python3 ../../../zephyr/scripts/build/mergehex.py -o \
181+
hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-trace.hex \
182+
merged.hex \
183+
nrf91-bl-*.hex \
184+
--overlap replace
185+
cp app/zephyr/.config hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-trace.config
186+
cp app/zephyr/zephyr.signed.bin hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-trace-update-signed.bin
187+
cp app/zephyr/zephyr.signed.hex hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-trace-update-signed.hex
188+
cp app/zephyr/zephyr.elf hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-trace.elf
189+
cp dfu_application.zip hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-trace-dfu.zip
190+
191+
- name: Upload artifact
192+
uses: actions/upload-artifact@v4
193+
id: artifact-upload-oob-trace
194+
with:
195+
name: firmware-oob-trace
196+
if-no-files-found: error
197+
path: |
198+
thingy91x-oob/app/build/hello.nrfcloud.com-*.*
199+
thingy91x-oob/app/build/nrf91-bl-*.hex
200+
thingy91x-oob/app/build/pmr-nrf91-*.txt
201+
164202
# Out-of-box debug firmware build
165203

166204
- name: Build nrf91 debug firmware

0 commit comments

Comments
 (0)