Enabling code coverage on Zephyr SDK #513
-
Hi, I am performing an activity that requires to enable code coverage on Zephyr toolchain to actually show how much of SDK code (in particular gcc) is being stressed by Zephyr build process. I did modify the configuration (see attachment) and build completes successfully but unfortunately no coverage files are produced. Could you please help to verify if my configuration is correct? Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
GCC provides |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info! Issue is how to properly embed such flag in crosstool-ng like configuration.. I did not find good documentation/reference to do so. Have you experience with that? |
Beta Was this translation helpful? Give feedback.
-
You should be able to use |
Beta Was this translation helpful? Give feedback.
You should be able to use
CT_CC_GCC_EXTRA_CONFIG_ARRAY
:https://github.com/zephyrproject-rtos/crosstool-ng/blob/b6b22fd4032b2ce3738087987024eae33ee7fc09/config/cc/gcc.in#L69