Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5295503imm; Tue, 16 Oct 2018 08:09:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV61B7pMT54cERqEoX8T+xnvVqGnx/AlBUlStttm6StGKOTVW8gS34qgMBwav+eM6j2Y40iyT X-Received: by 2002:a63:3e06:: with SMTP id l6-v6mr19410561pga.96.1539702542019; Tue, 16 Oct 2018 08:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702541; cv=none; d=google.com; s=arc-20160816; b=S1j5V4N6aO8APJAXeHK47oUOPNH31zke7ink28AQldq7b2kg8Ken8x27tKWSYoJfsy 0ZTxnrxIOs2DWEfKmd1sWN7DmV6PypVrBj8XOrRctcFTl5Ir3rsmR8ssjz8EQkAlVV8q h87MU2LKu3ofQCqYJdnuIcB2AWS+iW8PRdb0sTfObUge3kVlczzx0egH+SINj0uLnL4p rbeMfgxgQOaTQ2+Y65sDMMX3cxzfCxHwLJj9VCMh7ECFFBR3yQArsG5dokskFlFmqOM3 A/mrkKsJcT/4klk9vBwiEERzMfJAaDJnn6fmytwmLxea70QDSmEscYDsJhqf1AKoLYCM hqog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=djyUpvn8XiRTcu3bVQOY7OOLSGWYafDJT0ThpbOhLug=; b=DrORfXfJ53dcLTAFotvMiO3Ibj/NmZjlVpnaCYroXALPeqAEJys0R2+5KV1K8D0038 6kdqWD5q5BOwbkX1O+jsdBNuhJQsIhnxmCbGC3ntwWZpnnu9OBGn6siCXmKl15tBP86p M5cBSTECvkOqNIKae8igyQdGr0WGwjmHPJXl6yMnalLlib23qoJkQOO6Q7zkGl+SQEie RFp0rpYE2tjpegGIhdvkud5GaCr6rsfAWv8iq377BtncxdoCcM7vANbGceFtEKmw/SZC ENz1sXjbTyB8dfyDg0JnGC8q/pDG1kYQa02rlt13Ra1Qll4N5onw6JHAUWera4ugTXmk qcag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k192-v6si13862395pgc.415.2018.10.16.08.08.46; Tue, 16 Oct 2018 08:09:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727546AbeJPW6H (ORCPT + 99 others); Tue, 16 Oct 2018 18:58:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61091 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeJPW6H (ORCPT ); Tue, 16 Oct 2018 18:58:07 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A7ED52C9766; Tue, 16 Oct 2018 15:07:14 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 72B4C58905; Tue, 16 Oct 2018 15:07:13 +0000 (UTC) From: Jiri Olsa To: lkml Cc: Zhang Rui , Markus Mayer , "Herton R. Krzesinski" Subject: [PATCH 06/10] tools thermal tmon: Override CFLAGS assignments Date: Tue, 16 Oct 2018 17:06:11 +0200 Message-Id: <20181016150614.21260-7-jolsa@kernel.org> In-Reply-To: <20181016150614.21260-1-jolsa@kernel.org> References: <20181016150614.21260-1-jolsa@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 16 Oct 2018 15:07:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So user could specify outside CFLAGS values. Cc: Zhang Rui Cc: Markus Mayer Signed-off-by: Jiri Olsa --- tools/thermal/tmon/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index 735a510230c3..89a2444c1df2 100644 --- a/tools/thermal/tmon/Makefile +++ b/tools/thermal/tmon/Makefile @@ -6,13 +6,13 @@ VERSION = 1.0 BINDIR=usr/bin WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int -CFLAGS+= -O1 ${WARNFLAGS} +override CFLAGS+= -O1 ${WARNFLAGS} # Add "-fstack-protector" only if toolchain supports it. -CFLAGS+= $(call cc-option,-fstack-protector) +override CFLAGS+= $(call cc-option,-fstack-protector-strong) CC?= $(CROSS_COMPILE)gcc PKG_CONFIG?= pkg-config -CFLAGS+=-D VERSION=\"$(VERSION)\" +override CFLAGS+=-D VERSION=\"$(VERSION)\" LDFLAGS+= TARGET=tmon @@ -29,7 +29,7 @@ TMON_LIBS += $(shell $(PKG_CONFIG) --libs $(STATIC) panelw ncursesw 2> /dev/null $(PKG_CONFIG) --libs $(STATIC) panel ncurses 2> /dev/null || \ echo -lpanel -lncurses) -CFLAGS += $(shell $(PKG_CONFIG) --cflags $(STATIC) panelw ncursesw 2> /dev/null || \ +override CFLAGS += $(shell $(PKG_CONFIG) --cflags $(STATIC) panelw ncursesw 2> /dev/null || \ $(PKG_CONFIG) --cflags $(STATIC) panel ncurses 2> /dev/null) OBJS = tmon.o tui.o sysfs.o pid.o -- 2.17.2