From ddf1aa0218cad8fd1b50b680fdb18f0f0b91a7e1 Mon Sep 17 00:00:00 2001 From: Aniket Singh Yadav Date: Sat, 6 Jun 2026 09:25:13 +0000 Subject: [PATCH] Fix coverage-lcov target for lcov v2.x --- Makefile.pre.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 2b34b009fd745a0..00289c4ec62239b 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -917,7 +917,7 @@ coverage-lcov: @lcov $(COVERAGE_LCOV_OPTIONS) --capture \ --directory $(abs_builddir) \ --base-directory $(realpath $(abs_builddir)) \ - --path $(realpath $(abs_srcdir)) \ + --ignore-errors negative \ --output-file $(COVERAGE_INFO) @ # remove 3rd party modules, system headers and internal files with @ # debug, test or dummy functions. @@ -931,8 +931,13 @@ coverage-lcov: '/usr/include/*' \ '/usr/local/include/*' \ '/usr/lib/gcc/*' \ + --ignore-errors inconsistent \ + --ignore-errors negative \ + --ignore-errors unused \ --output-file $(COVERAGE_INFO) @genhtml $(COVERAGE_INFO) \ + --ignore-errors inconsistent \ + --ignore-errors negative \ --output-directory $(COVERAGE_REPORT) \ $(COVERAGE_REPORT_OPTIONS) @echo