diff mbox series

[thermal:,thermal/next] tools/thermal/tmon: Add cross compiling support

Message ID 163119831971.25758.1729820784227436969.tip-bot2@tip-bot2
State New
Headers show
Series [thermal:,thermal/next] tools/thermal/tmon: Add cross compiling support | expand

Commit Message

thermal-bot for Lad Prabhakar Sept. 9, 2021, 2:38 p.m. UTC
The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     b5f7912bb604b47a0fe024560488a7556dce8ee7
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//b5f7912bb604b47a0fe024560488a7556dce8ee7
Author:        Rolf Eike Beer <eb@emlix.com>
AuthorDate:    Fri, 30 Jul 2021 13:51:54 +02:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Sat, 14 Aug 2021 15:33:19 +02:00

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
---
 tools/thermal/tmon/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile
index 3e65087..f9c52b7 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