mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
tools/thermal/tmon: Add cross compiling support
commit b5f7912bb6 upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2daa118a3f
commit
ac99b3aa83
@@ -10,7 +10,7 @@ override CFLAGS+= $(call cc-option,-O3,-O1) ${WARNFLAGS}
|
|||||||
# Add "-fstack-protector" only if toolchain supports it.
|
# Add "-fstack-protector" only if toolchain supports it.
|
||||||
override CFLAGS+= $(call cc-option,-fstack-protector-strong)
|
override CFLAGS+= $(call cc-option,-fstack-protector-strong)
|
||||||
CC?= $(CROSS_COMPILE)gcc
|
CC?= $(CROSS_COMPILE)gcc
|
||||||
PKG_CONFIG?= pkg-config
|
PKG_CONFIG?= $(CROSS_COMPILE)pkg-config
|
||||||
|
|
||||||
override CFLAGS+=-D VERSION=\"$(VERSION)\"
|
override CFLAGS+=-D VERSION=\"$(VERSION)\"
|
||||||
LDFLAGS+=
|
LDFLAGS+=
|
||||||
|
|||||||
Reference in New Issue
Block a user