Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Rolf Eike Beer and committed by
Daniel Lezcano
b5f7912b 99d88c30

+1 -1
+1 -1
tools/thermal/tmon/Makefile
··· 10 10 # Add "-fstack-protector" only if toolchain supports it. 11 11 override CFLAGS+= $(call cc-option,-fstack-protector-strong) 12 12 CC?= $(CROSS_COMPILE)gcc 13 - PKG_CONFIG?= pkg-config 13 + PKG_CONFIG?= $(CROSS_COMPILE)pkg-config 14 14 15 15 override CFLAGS+=-D VERSION=\"$(VERSION)\" 16 16 TARGET=tmon