Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/37123 )
Change subject: WIP: code coverage ......................................................................
WIP: code coverage
Change-Id: I8752482bb89587bc448fe1c966bca40d8d1bdbb0 Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org --- M .gitignore M Makefile 2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/23/37123/1
diff --git a/.gitignore b/.gitignore index c89766e..c111945 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ /EM100Pro.msi .dependencies *.o +*.gcda +*.gcno diff --git a/Makefile b/Makefile index 481dc02..ccb73c6 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,8 @@ CFLAGS += -DXZ_DEC_X86 -DXZ_DEC_POWERPC -DXZ_DEC_IA64 -DXZ_DEC_ARM -DXZ_DEC_ARMTHUMB -DXZ_DEC_SPARC -DXZ_USE_CRC64 -DXZ_DEC_ANY_CHECK -Ixz # Remove after fixing CFLAGS += -Wno-sign-compare -Wno-discarded-qualifiers +# Code Coverage +CFLAGS += -fprofile-arcs -ftest-coverage
LDFLAGS ?= LDFLAGS += $(shell $(PKG_CONFIG) --libs libusb-1.0)