diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-06 10:25:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-06 10:25:53 +0200 |
commit | ec59044f791157590e2316bbc2360ab17a1135b2 (patch) | |
tree | a7a37670934812f85caa3f2d13b9f4017dfcf47e | |
parent | c7fbe3225e51702477e4d9228af6d812d570bdcb (diff) |
RTEMS_COVERAGE
-rw-r--r-- | spec/build/cpukit/grp.yml | 2 | ||||
-rw-r--r-- | spec/build/cpukit/librtemscpu.yml | 4 | ||||
-rw-r--r-- | spec/build/cpukit/optcflagscoverage.yml | 7 | ||||
-rw-r--r-- | spec/build/cpukit/optcflagscoverageopt.yml | 19 | ||||
-rw-r--r-- | testsuites/validation/ts-config.h | 2 |
5 files changed, 29 insertions, 5 deletions
diff --git a/spec/build/cpukit/grp.yml b/spec/build/cpukit/grp.yml index 319df1a950..385228612b 100644 --- a/spec/build/cpukit/grp.yml +++ b/spec/build/cpukit/grp.yml @@ -14,6 +14,8 @@ links: - role: build-dependency uid: optcflagscoverage - role: build-dependency + uid: optcflagscoverageopt +- role: build-dependency uid: optldflagscoverage - role: build-dependency uid: optlinkflagsqual diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml index 12ab567e8e..5bdcb3285f 100644 --- a/spec/build/cpukit/librtemscpu.yml +++ b/spec/build/cpukit/librtemscpu.yml @@ -1,6 +1,8 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: library -cflags: [] +cflags: +- ${CFLAGS_COVERAGE} +- ${CFLAGS_COVERAGE_OPTIMIZATION} copyrights: - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) cppflags: [] diff --git a/spec/build/cpukit/optcflagscoverage.yml b/spec/build/cpukit/optcflagscoverage.yml index 39198aedf3..f4fe6b5fcb 100644 --- a/spec/build/cpukit/optcflagscoverage.yml +++ b/spec/build/cpukit/optcflagscoverage.yml @@ -2,8 +2,8 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-string: null - split: null -- env-append: CFLAGS -- define-condition: null +- env-assign: null +- env-append: BSP_CFLAGS build-type: option copyrights: - Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) @@ -14,7 +14,8 @@ default: - -ftest-coverage default-by-variant: [] description: | - Flags passed to the C compiler if RTEMS_COVERAGE is enabled. + C compiler flags recommended for components which should generate coverage + information if RTEMS_COVERAGE is enabled. enabled-by: RTEMS_COVERAGE links: [] name: CFLAGS_COVERAGE diff --git a/spec/build/cpukit/optcflagscoverageopt.yml b/spec/build/cpukit/optcflagscoverageopt.yml new file mode 100644 index 0000000000..a8c08ba413 --- /dev/null +++ b/spec/build/cpukit/optcflagscoverageopt.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- split: null +- env-assign: null +- env-append: BSP_CFLAGS +build-type: option +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +default: +- -O0 +default-by-variant: [] +description: | + C compiler optimization flags recommended for components which should + generate coverage information if RTEMS_COVERAGE is enabled. +enabled-by: RTEMS_COVERAGE +links: [] +name: CFLAGS_COVERAGE_OPTIMIZATION +type: build diff --git a/testsuites/validation/ts-config.h b/testsuites/validation/ts-config.h index a186542838..638a503c75 100644 --- a/testsuites/validation/ts-config.h +++ b/testsuites/validation/ts-config.h @@ -59,7 +59,7 @@ extern "C" { #define TEST_SCHEDULER_D_NAME rtems_build_name( 'D', ' ', ' ', ' ' ) -#if defined( __OPTIMIZE__ ) +#if defined( __OPTIMIZE__ ) && !defined( RTEMS_COVERAGE ) #define TEST_MINIMUM_STACK_SIZE RTEMS_MINIMUM_STACK_SIZE #else #define TEST_MINIMUM_STACK_SIZE ( 4 * RTEMS_MINIMUM_STACK_SIZE ) |