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:
parent
b57a149828
commit
76ee02b6b3
2 changed files with 10 additions and 1 deletions
|
@ -128,6 +128,7 @@ config SCHED_DEADLINE
|
||||||
|
|
||||||
config MAIN_STACK_SIZE
|
config MAIN_STACK_SIZE
|
||||||
int "Size of stack for initialization and main thread"
|
int "Size of stack for initialization and main thread"
|
||||||
|
default 2048 if COVERAGE_GCOV
|
||||||
default 512 if ZTEST
|
default 512 if ZTEST
|
||||||
default 1024
|
default 1024
|
||||||
help
|
help
|
||||||
|
@ -139,6 +140,7 @@ config MAIN_STACK_SIZE
|
||||||
|
|
||||||
config IDLE_STACK_SIZE
|
config IDLE_STACK_SIZE
|
||||||
int "Size of stack for idle thread"
|
int "Size of stack for idle thread"
|
||||||
|
default 512 if COVERAGE_GCOV
|
||||||
default 1024 if XTENSA
|
default 1024 if XTENSA
|
||||||
default 512 if RISCV32
|
default 512 if RISCV32
|
||||||
default 320 if ARC || (ARM && CPU_HAS_FPU)
|
default 320 if ARC || (ARM && CPU_HAS_FPU)
|
||||||
|
|
|
@ -23,14 +23,22 @@ config TEST_SHELL
|
||||||
|
|
||||||
config TEST_EXTRA_STACKSIZE
|
config TEST_EXTRA_STACKSIZE
|
||||||
int "Test function extra thread stack size"
|
int "Test function extra thread stack size"
|
||||||
|
default 1024 if COVERAGE_GCOV
|
||||||
default 768 if XTENSA
|
default 768 if XTENSA
|
||||||
default 0
|
default 0
|
||||||
help
|
help
|
||||||
Additional stack for tests on some platform where default is not
|
Additional stack for tests on some platform where default is not
|
||||||
enough.
|
enough.
|
||||||
|
|
||||||
|
config HAS_COVERAGE_SUPPORT
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
The code coverage report generation is only available on boards
|
||||||
|
with enough RAM.
|
||||||
|
|
||||||
config COVERAGE
|
config COVERAGE
|
||||||
bool "Create coverage data"
|
bool "Create coverage data"
|
||||||
|
depends on HAS_COVERAGE_SUPPORT
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
This option will build your application with the -coverage option
|
This option will build your application with the -coverage option
|
||||||
|
@ -40,7 +48,6 @@ config COVERAGE
|
||||||
if COVERAGE
|
if COVERAGE
|
||||||
config COVERAGE_GCOV
|
config COVERAGE_GCOV
|
||||||
bool "Create Coverage data from hardware platform"
|
bool "Create Coverage data from hardware platform"
|
||||||
select NEWLIB_LIBC
|
|
||||||
depends on !NATIVE_APPLICATION
|
depends on !NATIVE_APPLICATION
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue