From 76ee02b6b30f57893b4daeab1db9b294c6dafab1 Mon Sep 17 00:00:00 2001 From: Adithya Baglody Date: Fri, 31 Aug 2018 15:13:36 +0530 Subject: [PATCH] Gcov: Added Kconfig changes needed by Gcov. This patch addes the required changes in the Kconfig files. Signed-off-by: Adithya Baglody --- kernel/Kconfig | 2 ++ tests/Kconfig | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index 4c49bf63b21..b33ce4d1e9c 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -128,6 +128,7 @@ config SCHED_DEADLINE config MAIN_STACK_SIZE int "Size of stack for initialization and main thread" + default 2048 if COVERAGE_GCOV default 512 if ZTEST default 1024 help @@ -139,6 +140,7 @@ config MAIN_STACK_SIZE config IDLE_STACK_SIZE int "Size of stack for idle thread" + default 512 if COVERAGE_GCOV default 1024 if XTENSA default 512 if RISCV32 default 320 if ARC || (ARM && CPU_HAS_FPU) diff --git a/tests/Kconfig b/tests/Kconfig index 28d8fa3a794..8c08fcfde7a 100644 --- a/tests/Kconfig +++ b/tests/Kconfig @@ -23,14 +23,22 @@ config TEST_SHELL config TEST_EXTRA_STACKSIZE int "Test function extra thread stack size" + default 1024 if COVERAGE_GCOV default 768 if XTENSA default 0 help Additional stack for tests on some platform where default is not enough. +config HAS_COVERAGE_SUPPORT + bool + help + The code coverage report generation is only available on boards + with enough RAM. + config COVERAGE bool "Create coverage data" + depends on HAS_COVERAGE_SUPPORT default n help This option will build your application with the -coverage option @@ -40,7 +48,6 @@ config COVERAGE if COVERAGE config COVERAGE_GCOV bool "Create Coverage data from hardware platform" - select NEWLIB_LIBC depends on !NATIVE_APPLICATION default y help