From patchwork Wed Sep 27 23:02:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 9975017 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF3F960375 for ; Wed, 27 Sep 2017 23:03:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C270928ABF for ; Wed, 27 Sep 2017 23:03:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B60452936F; Wed, 27 Sep 2017 23:03:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57F5829369 for ; Wed, 27 Sep 2017 23:03:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752440AbdI0XDJ (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 Received: from triton.mmayer.net ([96.48.165.49]) by shaw.ca with SMTP id xLM9doEzqM9gtxLMAdofeb; Wed, 27 Sep 2017 17:03:07 -0600 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 Received: by triton.mmayer.net (Postfix, from userid 501) id A6DC12004ED514; Wed, 27 Sep 2017 16:03:05 -0700 (PDT) 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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+=