Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4471046imd; Tue, 30 Oct 2018 02:28:32 -0700 (PDT) X-Google-Smtp-Source: AJdET5eP+MFhhq9sXw/7pP1Dq8UlBKkPBht7ViR2sj9MiRH6z3DCdVLLi5Z5muduEdL2sD4mLpGD X-Received: by 2002:a62:6b41:: with SMTP id g62-v6mr2149344pfc.106.1540891712281; Tue, 30 Oct 2018 02:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540891712; cv=none; d=google.com; s=arc-20160816; b=z7hG6ZUt6Zbo6BAprugxqc6xGgXBryDAqMjOAMEvPwDgE4qRB2EuRpFI6FParHSy3G kxDiPefXXkClNGHw3YX/Wd4d9UicZ4sQM/VoqbTSRBrot9mgDOHl2AVdQpuyAJwAPTdr MrjesmEcjryV5oT06Rk6eCruLK/D8yWggkfj1yMcg2u7JDv8lgruRIzxKzHvGoa4/TsZ qq4BwyjwXp2hZ+uSfm4LrCdRZ28RBbR6fMsp0KpWVAK5UV33dqj7LTVL3PGqewgUG5re rg1ijyTNtpH00W9zCxha5xrLKv9ndAWqiCLwlTqMAD+EfPAv/wKlvMi3B+o2NQRXIZ7I /T2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ywzZPV8XBVOMPeGQqR7q+3fa14T7xpbhaRcJ+A4hvWc=; b=j4HTa3hoR6F3DI0drR3YYgx8ifkV5Jrzxx6bkbBFgS/xwrSyYjtYIAzLeoF7Pn0/kJ J7L19KUENC3m3tTkV27OCmrPlfP6pKJAF3+q+tq35APuPplxjNdYdwfAwzOrh4I7ecfO ghABrC2B3qJh49L3KBrw4JBeKBNZefWiwQu4JBNvTsyZ+xPsp3fgz9HQPRAilE72ylhz /z0LKI0z4JtADblQGklw0vU2856p9/Dn8LD2jfKkLF9jBMuyNzX6KgyS1KNldk3KOXoB i0AmAd95bJ6/FPucbLUSwJoqYucqkrSJ5vN7/oc721c7mWZ7aWGuOU9UwptSccXg0r48 KJ+w== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17-v6si10999329pfa.123.2018.10.30.02.28.16; Tue, 30 Oct 2018 02:28:32 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbeJ3ST7 (ORCPT + 99 others); Tue, 30 Oct 2018 14:19:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50434 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbeJ3ST7 (ORCPT ); Tue, 30 Oct 2018 14:19:59 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C1009C0495A0; Tue, 30 Oct 2018 09:27:19 +0000 (UTC) Received: from krava (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with SMTP id 88962601A1; Tue, 30 Oct 2018 09:27:18 +0000 (UTC) Date: Tue, 30 Oct 2018 10:27:16 +0100 From: Jiri Olsa To: Jiri Olsa Cc: lkml , Zhang Rui , Markus Mayer , "Herton R. Krzesinski" Subject: Re: [PATCH 06/10] tools thermal tmon: Override CFLAGS assignments Message-ID: <20181030092716.GC19259@krava> References: <20181016150614.21260-1-jolsa@kernel.org> <20181016150614.21260-7-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181016150614.21260-7-jolsa@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 30 Oct 2018 09:27:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping thanks, jirka On Tue, Oct 16, 2018 at 05:06:11PM +0200, Jiri Olsa wrote: > 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 >