Gcov: Added Kconfig changes needed by Gcov.

This patch addes the required changes in the Kconfig files.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
Adithya Baglody 2018-08-31 15:13:36 +05:30 committed by Anas Nashif
parent b57a149828
commit 76ee02b6b3
2 changed files with 10 additions and 1 deletions

View file

@ -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)

View file

@ -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