summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2022-07-14 11:02:33 +0800
committerPatrick Georgi <patrick@coreboot.org>2022-07-15 05:59:38 +0000
commitfcfc5729470e3a3f3a7a304244ff6fad00ca058f (patch)
tree5b46c9992c5210d8c8e7a5e3804315fe2788df19 /util
parent69bf58d30e4fb807b3d06d590c3982b725786164 (diff)
util/xcompile/xcompile: Define GCOV_${TARCH}
When payloads analyze the coverage using gcov (or lcov), the gcov version must match the CC version. Otherwise gcov would fail to parse the .gcno files. Therefore, define GCOV_${TARCH} in xcompile, so that payloads don't need to do tedious string manipulations to find the right gcov path. Change-Id: If2fc329810c463a3d2c56deaf4e4a3fc3c0a3ed9 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65840 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index e5e8098159..e13996f6b1 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -285,6 +285,7 @@ cat <<EOF
CPP_${TARCH}:=${GCCPREFIX}cpp
AS_${TARCH}:=${GCCPREFIX}as ${ASFLAGS}
LD_${TARCH}:=${GCCPREFIX}ld${LINKER_SUFFIX} ${LDFLAGS}
+GCOV_${TARCH}:=${GCCPREFIX}gcov
EOF
if [ "${TARCH}" = "arm64" ] && \