Skip to content

Commit 777407b

Browse files
AdithyaBaglodynashif
authored andcommitted
gcov: Add coverage supported boards.
Not all boards can get the coverage reports. The report generation needs minimum of 64KB SRAM. This patch added support for mps2_an385, qemu_cortex_m3, qemu_x86. This is just a subset. Also the previously supported board native_posix is included in this patch. If a board has 64KB RAM, it can generate reports by just adding HAS_COVERAGE_SUPPORT in Kconfig.board. Signed-off-by: Adithya Baglody <[email protected]>
1 parent 131edad commit 777407b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

boards/arm/mps2_an385/Kconfig.board

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
config BOARD_MPS2_AN385
88
bool "ARM Cortex-M3 SMM on V2M-MPS2 (Application Note AN385)"
99
depends on SOC_MPS2_AN385
10+
select HAS_COVERAGE_SUPPORT

boards/posix/native_posix/Kconfig.board

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ config BOARD_NATIVE_POSIX
44
depends on SOC_POSIX
55
select NATIVE_POSIX_TIMER
66
select NATIVE_POSIX_CONSOLE
7+
select HAS_COVERAGE_SUPPORT
78
help
89
Will produce a console Linux process which can be executed natively.
910
It provides some minimal needed models:

boards/x86/qemu_x86/Kconfig.board

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ config BOARD_QEMU_X86
55
select QEMU_TARGET
66
select HAS_DTS_ETHERNET
77
select CPU_HAS_FPU if !X86_IAMCU
8+
select HAS_COVERAGE_SUPPORT

0 commit comments

Comments
 (0)