summaryrefslogtreecommitdiff
path: root/tools/thermal
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2021-07-30 13:51:54 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-08-14 15:33:19 +0200
commitb5f7912bb604b47a0fe024560488a7556dce8ee7 (patch)
tree0bebcabf57842a25244221b8fc467c6f7fc72477 /tools/thermal
parent99d88c30055376b56316d3c431c9873e88208348 (diff)
tools/thermal/tmon: Add cross compiling support
Default to prefixed pkg-config when crosscompiling, this matches what other parts of the tools/ directory already do. [dlezcano] : Reworked description Signed-off-by: Rolf Eike Beer <eb@emlix.com> Cc: stable@vger.kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/31302992.qZodDJZGDc@devpool47
Diffstat (limited to 'tools/thermal')
-rw-r--r--tools/thermal/tmon/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile
index 3e650878ea82..f9c52b7fab7b 100644
--- a/tools/thermal/tmon/Makefile
+++ b/tools/thermal/tmon/Makefile
@@ -10,7 +10,7 @@ override CFLAGS+= $(call cc-option,-O3,-O1) ${WARNFLAGS}
# Add "-fstack-protector" only if toolchain supports it.
override CFLAGS+= $(call cc-option,-fstack-protector-strong)
CC?= $(CROSS_COMPILE)gcc
-PKG_CONFIG?= pkg-config
+PKG_CONFIG?= $(CROSS_COMPILE)pkg-config
override CFLAGS+=-D VERSION=\"$(VERSION)\"
TARGET=tmon