From e659b76a45dacdf68cc764c5eb10f0e0bf1403db Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Tue, 20 Nov 2018 19:09:36 +0900 Subject: [PATCH] Generate text file to save build path depth in coverage build (#3651) Generate text file tools/test_driver/build_path_depth.txt to save build path depth. gcov for cross build need directory strip to match build host directory and target directory. Build path depth will be used to set GCOV_PREFIX_STRIP environment variable on target. Signed-off-by: Hyeongseok Oh --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59fa357..d063f2b 100644 --- a/Makefile +++ b/Makefile @@ -218,8 +218,9 @@ build_coverage_suite: install_internal @echo "packaging test-coverage suite" @rm -rf $(INSTALL_ROOT)/coverage-suite.tar.gz @find Product -name "*.gcno" > include_lists.txt + @pwd | grep -o '/' | wc -l > tools/test_driver/build_path_depth.txt @tar -zcf coverage-suite.tar.gz tests/ tools/test_driver $(INSTALL_ALIAS) --dereference -T include_lists.txt - @rm -rf include_lists.txt + @rm -rf include_lists.txt tools/test_driver/build_path_depth.txt @mv coverage-suite.tar.gz $(INSTALL_ROOT)/. runtime_build_internal: $(BUILD_ROOT) -- 2.7.4