Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4477003imd; Tue, 30 Oct 2018 02:35:14 -0700 (PDT) X-Google-Smtp-Source: AJdET5cXNNOFzrOHFvdYMWPuo+TJxzeerfMTyqB88lwTqz1sl0C5IrnrhPrV9loYZUrIX8oxt29B X-Received: by 2002:a62:388b:: with SMTP id f133-v6mr2195199pfa.48.1540892114340; Tue, 30 Oct 2018 02:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540892114; cv=none; d=google.com; s=arc-20160816; b=v6GEp1o94VZocxGTVkIFbdL/mf0wkaL3ebYmq4UCGJ0+bf+Wvadkv6YRA/MvdM2X1R CfwrpKdLMCiGrXtLLgZsZmn/dIXI+8ni0so9IRA/zfXwaUiAf3fVmh2rFVG4JEbCkWGa HVGLadOb3uQNUZ0CaCR94XK5mSAlamD/no5oBg0rSd+gXj8caN4F2TOLargnnxgfcsqG jIjKooF4qXMK6APPIID6BzjZWkCBe1qf2dOIcHENLovOuTXQLkFEKHEhw2mTpp2oCM8F JIKePKn34H0l7TMke6K50Aov9r6oclzjpZxTVJrKhmijA7aIOh3mMNqBmEFeelVnXnXn i/Fw== 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=io8BIlbBii2FncjX0Bnc7KaHCsy5rufpY/IzIJM6fpk=; b=fKk2+ZtU0gWvPcM1bbGK++U6ikC5hTI7yrW+Y7b2LOh4AJOJjsLXFRKkzLeMR9HMmO lheD1hfU6CYQEJHtEkCoZ47GtAxALf2KSpbokLefXMrBp1Xb88aAbRJ5OynuABGIujLV o66kEU+FD5mLC9w3YM08HuSDHz1euHTy2bp3oBE/1Zjw7MSacHPoYroNomYXAmud8cXG /SjWSwqzMnDiVoakZ02gpVgXJjZOyY3phewcrsng+WJDw5NSb1D4UT/FQX53iIPaL13V R0bNMWq/1jYNc7EuD/P1NcLghmVP2D2C8HmEUpw8M8xhTVKepjF67y1/M4ro/Ao3QSH7 FoXQ== 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 e184-v6si24531121pfa.206.2018.10.30.02.34.58; Tue, 30 Oct 2018 02:35:14 -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 S1726701AbeJ3S1H (ORCPT + 99 others); Tue, 30 Oct 2018 14:27:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62983 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbeJ3S1H (ORCPT ); Tue, 30 Oct 2018 14:27:07 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9EFDA88317; Tue, 30 Oct 2018 09:34:25 +0000 (UTC) Received: from krava (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with SMTP id 7698F5C559; Tue, 30 Oct 2018 09:34:20 +0000 (UTC) Date: Tue, 30 Oct 2018 10:34:18 +0100 From: Jiri Olsa To: Jiri Olsa Cc: lkml , Arnaldo Carvalho de Melo , Hartmut Knaack , Jonathan Cameron , Lars-Peter Clausen , Len Brown , Markus Mayer , Shuah Khan , Steven Rostedt , Thomas Renninger , Tzvetomir Stoyanov , Zhang Rui , "Herton R. Krzesinski" Subject: Re: [PATCH 10/10] tools gpio: Override CFLAGS assignments Message-ID: <20181030093418.GC18538@krava> References: <20181016150614.21260-1-jolsa@kernel.org> <20181022145007.GD2945@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181022145007.GD2945@krava> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 30 Oct 2018 09:34:25 +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 Mon, Oct 22, 2018 at 04:50:07PM +0200, Jiri Olsa wrote: > On Tue, Oct 16, 2018 at 05:06:05PM +0200, Jiri Olsa wrote: > > hi, > > while hardening some of the tools rpm, we noticed we > > can't pass build flags to some of them. > > > > Sending separate tools fixes for what we found. It's > > mostly override for CFLAGS and adding LDFLAGS to the > > build commands. > > > > thanks, > > jirka > > > > > > Cc: Arnaldo Carvalho de Melo > > Cc: Hartmut Knaack > > Cc: Jonathan Cameron > > Cc: Lars-Peter Clausen > > Cc: Len Brown > > Cc: Markus Mayer > > Cc: Shuah Khan > > Cc: Signed-off-by: Len Brown > > Cc: Steven Rostedt > > Cc: Thomas Renninger > > Cc: Tzvetomir Stoyanov (VMware) > > Cc: Zhang Rui > > --- > > Jiri Olsa (10): > > tools lib traceevent: Use LDFLAGS in the build commands > > tools perf: Pass build flags to traceevent build > > tools cpupower debug: Allow to use outside build flags > > tools cpupower: Override CFLAGS assignments > > tools power x86_energy_perf_policy: Override CFLAGS assignments and add LDFLAGS to build command > > tools thermal tmon: Override CFLAGS assignments > > tools thermal tmon: Use -O3 instead of -O1 if available > > tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command > > tools iio: Override CFLAGS assignments > > tools gpio: Override CFLAGS assignments > > the last one did not get post for some reason, > attaching it now > > jirka > > > --- > So user could specify outside CFLAGS values. > > Cc: Jonathan Cameron > Cc: Hartmut Knaack > Cc: Lars-Peter Clausen > Signed-off-by: Jiri Olsa > --- > tools/gpio/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile > index 240eda014b37..6ecdd1067826 100644 > --- a/tools/gpio/Makefile > +++ b/tools/gpio/Makefile > @@ -12,7 +12,7 @@ endif > # (this improves performance and avoids hard-to-debug behaviour); > MAKEFLAGS += -r > > -CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include > +override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include > > ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon > ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) > -- > 2.17.2 >