Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbdI0XDJ (ORCPT ); Wed, 27 Sep 2017 19:03:09 -0400 Received: from smtp-out-no.shaw.ca ([64.59.134.9]:57243 "EHLO smtp-out-no.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752402AbdI0XDH (ORCPT ); Wed, 27 Sep 2017 19:03:07 -0400 X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=k5HOQ6ZN7M0zyjl8M7O1NA==:117 a=k5HOQ6ZN7M0zyjl8M7O1NA==:17 a=2JCJgTwv5E4A:10 a=Q-fNiiVtAAAA:8 a=2rAH1bXZ03cR1BnQ7AYA:9 a=Fp8MccfUoT0GBdDC_Lng:22 From: Markus Mayer To: Zhang Rui Cc: Markus Mayer , Broadcom Kernel List , Power Management List , Linux Kernel Mailing List Subject: [PATCH 2/3] tools/thermal: tmon: allow $(CC) to be defined externally Date: Wed, 27 Sep 2017 16:02:36 -0700 Message-Id: <20170927230237.62199-3-code@mmayer.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170927230237.62199-1-code@mmayer.net> References: <20170927230237.62199-1-code@mmayer.net> X-CMAE-Envelope: MS4wfLQKdRKrPPXEhGfTaFcDHOzY87YRmPiiNCvQ5qs4q26+J0tF2zEgsKbwUCxTuwRSaDq+uvgrNQVzv6tvquCjlJ+Nw6OEhw2ySg5A/2ALhs9ff8zifvZw rToz1sVdaYXhE75EgBIY4MlWdW8/IYWytVUsfvLGALrP30eyPbcnBjxH7lY3Vyidqw1/XRbq4NjpIhUv6wDNjj+26iJHfB5InystxaCdYF2YLamvVotZCYal n7AsBq4IJw/2B08oO4lePjBL4U3zAlsQtByzXG3tW63dPGCEl4bwas4SOubHeHHLH+Y9xFp4DBTi5214bqF0wSVvL7k4sw1zW3cmVcTpAR8= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 777 Lines: 25 From: Markus Mayer It can be helpful, especially when using a build system, to set the C compiler externally. Signed-off-by: Markus Mayer --- tools/thermal/tmon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index 5777bc7..581da71 100644 --- a/tools/thermal/tmon/Makefile +++ b/tools/thermal/tmon/Makefile @@ -8,7 +8,7 @@ WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit- CFLAGS+= -O1 ${WARNFLAGS} # Add "-fstack-protector" only if toolchain supports it. CFLAGS+= $(call cc-option,-fstack-protector) -CC=$(CROSS_COMPILE)gcc +CC?= $(CROSS_COMPILE)gcc CFLAGS+=-D VERSION=\"$(VERSION)\" LDFLAGS+= -- 2.7.4