Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2319056ima; Mon, 22 Oct 2018 07:54:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61KhF11+AnCmB0O5Gz1+DD3zrOr7h8IIKnfHl/eSxGg9MxAXL3OH1dHLNPvdR/mw6HjaBWB X-Received: by 2002:a17:902:6a4:: with SMTP id 33-v6mr44085896plh.11.1540220076415; Mon, 22 Oct 2018 07:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540220076; cv=none; d=google.com; s=arc-20160816; b=gpIYdK+JWtvaHGmCuQA+jVagMHknZ0CsRl+g48wgdfMW5yrtIPyeMByLJ7hskmwIJe uXulhudo5tnQJ4ETzPztDx9grK0p9rXLtsI8a0iCAbpNXcl4Je/L1JZvFcYC1YyLDchw dIZVgsPsAkQVCoxLyFtoYopSyrpfhqohRzuoLxnAePqUSqjC9pU/5T2TM5vqXcyvWxln QqfzWbtwggSX+84UdOkej41tMgucGitsY3xaPNY5qhc7EoVuTTDotZvqb8GBAcc1OX5o uaSYfchu0/xW90d1Kf6MmxS0O9uvcKFbMOih+Q1xnVlI4rdYB1EDa68u2P0+Rn5XfmS+ U2qw== 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=Auc/JM9EBKSso/UOf7/uHlGCSySx/kS4l16hqqQIEj4=; b=FIhEn5xdfTRQFl+dohKX/IFSFqSPL4io9vfQVKpkYLY9zuyoxGkFWmeOHdwdXycgyX dOWfBAiRZTBiVQS56XjLJFNp/G+3q2ahgQ0852dbq+3U2dkALsBRHpPm9BA/34cXwhfv 3ATYnPqC4YD5S0Uf4nk3BUODj+m99q9UQxuDkPIZU6jRqKMtDgcF3UJP7HevJzZYi0VD rGpp6M0w9bCCdyJuY5m2j3itDAgZoSQ1W7qSY/p+t5ctIFpXaS1oUxe1JtszCccIuMpJ j9w3Ow6GyZpet30/FOLIwKJvt5pyd0Ze2/wjKJIvg2msce0tZvBBkMf3fp5xUxAVQord h09g== 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 m61-v6si34244716plb.311.2018.10.22.07.54.21; Mon, 22 Oct 2018 07:54:36 -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 S1728523AbeJVXJF (ORCPT + 99 others); Mon, 22 Oct 2018 19:09:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52072 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbeJVXJF (ORCPT ); Mon, 22 Oct 2018 19:09:05 -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 999F33001A49; Mon, 22 Oct 2018 14:50:13 +0000 (UTC) Received: from krava (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with SMTP id 0043561B82; Mon, 22 Oct 2018 14:50:07 +0000 (UTC) Date: Mon, 22 Oct 2018 16:50:07 +0200 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: [PATCH 10/10] tools gpio: Override CFLAGS assignments Message-ID: <20181022145007.GD2945@krava> References: <20181016150614.21260-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181016150614.21260-1-jolsa@kernel.org> 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.44]); Mon, 22 Oct 2018 14:50:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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