Skip to content

Commit 9e19580

Browse files
committed
worflow: Build for all boards
Signed-off-by: Jorgen Kvalvaag <jorgen.kvalvaag@nordicsemi.no>
1 parent ceab235 commit 9e19580

6 files changed

Lines changed: 91 additions & 35 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,24 @@ jobs:
130130
version: ${{ env.VERSION }}
131131
path: asset-tracker-template/app
132132

133+
- name: Build nrf9160dk firmware
134+
if: ${{ github.event_name != 'pull_request' }}
135+
uses: ./asset-tracker-template/.github/actions/build-step
136+
with:
137+
board: nrf9160dk/nrf9160/ns
138+
short_board: nrf9160dk
139+
version: ${{ env.VERSION }}
140+
path: asset-tracker-template/app
141+
142+
- name: Build nrf9161dk firmware
143+
if: ${{ github.event_name != 'pull_request' }}
144+
uses: ./asset-tracker-template/.github/actions/build-step
145+
with:
146+
board: nrf9161dk/nrf9161/ns
147+
short_board: nrf9161dk
148+
version: ${{ env.VERSION }}
149+
path: asset-tracker-template/app
150+
133151
# Asset Tracker Template debug firmware build
134152
- name: Build thingy91x debug firmware
135153
if: ${{ github.event_name != 'pull_request' }}

app/boards/nrf9151dk_nrf9151_ns.overlay

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,8 @@
1010
nordic,pm-ext-flash = &gd25wb256;
1111
};
1212

13-
pwmleds {
14-
compatible = "pwm-leds";
15-
pwm_led0: pwm_led_0 {
16-
pwms = <&pwm0 0 PWM_MSEC(8) PWM_POLARITY_NORMAL>;
17-
};
18-
pwm_led1: pwm_led_1 {
19-
pwms = <&pwm0 2 PWM_MSEC(8) PWM_POLARITY_NORMAL>;
20-
};
21-
pwm_led2: pwm_led_2 {
22-
pwms = <&pwm0 1 PWM_MSEC(8) PWM_POLARITY_NORMAL>;
23-
};
24-
};
25-
2613
aliases {
2714
ext-flash = &gd25wb256;
28-
pwm-led0 = &pwm_led0;
29-
pwm-led1 = &pwm_led1;
30-
pwm-led2 = &pwm_led2;
3115
};
3216
};
3317

@@ -38,22 +22,3 @@
3822
&uart1 {
3923
status = "okay";
4024
};
41-
42-
&pinctrl {
43-
pwm0_default: pwm0_default {
44-
group1 {
45-
psels = <NRF_PSEL(PWM_OUT0, 0, 0)>,
46-
<NRF_PSEL(PWM_OUT1, 0, 1)>,
47-
<NRF_PSEL(PWM_OUT2, 0, 4)>;
48-
};
49-
};
50-
51-
pwm0_sleep: pwm0_sleep {
52-
group1 {
53-
psels = <NRF_PSEL(PWM_OUT0, 0, 0)>,
54-
<NRF_PSEL(PWM_OUT1, 0, 1)>,
55-
<NRF_PSEL(PWM_OUT2, 0, 4)>;
56-
low-power-enable;
57-
};
58-
};
59-
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Enable external flash
8+
CONFIG_SPI=y
9+
CONFIG_SPI_NOR=y
10+
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
11+
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
12+
13+
# Location priority order
14+
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y
15+
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_CELLULAR=y
16+
17+
# Use IMEI as ID
18+
CONFIG_NRF_CLOUD_CLIENT_ID_SRC_IMEI=y
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
chosen {
9+
nordic,pm-ext-flash = &mx25r64;
10+
};
11+
};
12+
13+
/* External flash device is disabled by default */
14+
&mx25r64 {
15+
status = "okay";
16+
};
17+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Enable external flash
8+
CONFIG_SPI=y
9+
CONFIG_SPI_NOR=y
10+
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
11+
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
12+
13+
# Location priority order
14+
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y
15+
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_CELLULAR=y
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Configure partition manager to use gd25wb256 as the external flash */
9+
chosen {
10+
nordic,pm-ext-flash = &gd25wb256;
11+
};
12+
aliases {
13+
ext-flash = &gd25wb256;
14+
};
15+
};
16+
17+
&gd25wb256 {
18+
status = "okay";
19+
};
20+
21+
&uart1 {
22+
status = "okay";
23+
};

0 commit comments

Comments
 (0)