Skip to content

Commit 5b63242

Browse files
tests: boards: neorv32: add build_all test for the NEORV32
Add a dedicated "build_all" test for the NEORV32 and its peripheral drivers. These drivers depend on the NEORV32 SYSINFO (syscon) and thus cannot easily be built for non-NEORV32 board targets. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 33e06e1 commit 5b63242

File tree

6 files changed

+68
-0
lines changed

6 files changed

+68
-0
lines changed

MAINTAINERS.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2760,8 +2760,11 @@ NEORV32 platform:
27602760
- drivers/*/*neorv32*
27612761
- dts/bindings/*/*neorv32*
27622762
- soc/neorv32/
2763+
- tests/boards/neorv32/
27632764
labels:
27642765
- "platform: NEORV32"
2766+
tests:
2767+
- boards.neorv32
27652768

27662769
OSDP:
27672770
status: maintained
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (c) 2025 Henrik Brix Andersen <[email protected]>
4+
5+
cmake_minimum_required(VERSION 3.20.0)
6+
7+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
8+
project(build_all_neorv32)
9+
10+
FILE(GLOB app_sources src/*.c)
11+
target_sources(app PRIVATE ${app_sources})
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2025 Henrik Brix Andersen <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&gpio {
8+
status = "okay";
9+
ngpios = <32>;
10+
};
11+
12+
&trng {
13+
status = "okay";
14+
};
15+
16+
&uart0 {
17+
status = "okay";
18+
current-speed = <19200>;
19+
};
20+
21+
&uart1 {
22+
status = "okay";
23+
current-speed = <115200>;
24+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_TEST=y
2+
CONFIG_TEST_USERSPACE=y
3+
4+
CONFIG_GPIO=y
5+
CONFIG_ENTROPY_GENERATOR=y
6+
7+
CONFIG_SERIAL=y
8+
CONFIG_UART_INTERRUPT_DRIVEN=y
9+
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Henrik Brix Andersen <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
int main(void)
8+
{
9+
return 0;
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tests:
2+
boards.neorv32.build_all:
3+
build_only: true
4+
tags:
5+
- drivers
6+
- entropy
7+
- gpio
8+
- uart
9+
platform_allow: neorv32/neorv32/minimalboot
10+
integration_platforms:
11+
- neorv32/neorv32/minimalboot

0 commit comments

Comments
 (0)