Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4471334imd; Tue, 30 Oct 2018 02:28:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5fz6xqpM3mdDR3KLR/XjNzqOBPa+bw2gp46i47gQUrDzDEntWA4thCFhv5fVhOAkfqQsJYy X-Received: by 2002:a17:902:b784:: with SMTP id e4-v6mr17553984pls.45.1540891734126; Tue, 30 Oct 2018 02:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540891734; cv=none; d=google.com; s=arc-20160816; b=PmWehXk5enXxzdX6/4R+IxG1oQS5NUh2iCbUSz94OU7ZatNULWf+XRK8SDAYsXbJ35 DMIvIPsziOQXgbuvhVp+qVPP2vcF7bASd8A3fi+daaHkIDEKMnmUustnXuNsDnHSXBKB nisKFZHGU0yUOlyOA+bzIH2W9TCEsgDfGgxK6NeasMQxig6K3YqnpXwMufZVIyjatUpV e1KmFb/M3Xzar+w7cWm+xbLXSxIoYao8oQcUN0yJDeAgu2c+hZMoIg55RH/3n6VyyZE0 NCytgEfzHMndJlxxb1sBuJ63OMxbOGSseglQwuOeIoCBTXQ+l+gEkVsT3UezN8RaYUy+ fV5A== 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=9pGlwiheDMIzljg2KzkfJKw5zOrGLk9MeB3T6inx9Yg=; b=rVQj7OFJ1S7911/QyIhR4dxdZ1wRNCTtxVBq5boqw6JN/mTIPt062h5tncXtZlyp7I L3oKNgB4qijJLISyl9Gd+Sn94+Z3uRFJlQP7+PJnqZhuwwDRc1mnSHHcfzBtQXoplHJJ GgPGNk+ltgMfkVEUZ19WO4tq7HcIvp2LBb3HlE8SauTzBcyxpXV1hyswsHz0FvdkRsRx LrbJc6sVLoJVO6VQy8fRguKy4QA3JMVnkkxp78Fc0CnSbkXSuddWAhm5Iq74G/1otBSc vjKghUlXK5HHuSJ/TyH4XCJc0c8g/98MNFiCO+YPB4UBZH06vlREtPjFWIJzrEouA09O 1G9w== 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 r128-v6si7115592pfc.116.2018.10.30.02.28.39; Tue, 30 Oct 2018 02:28:54 -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 S1727485AbeJ3SUM (ORCPT + 99 others); Tue, 30 Oct 2018 14:20:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39946 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbeJ3SUL (ORCPT ); Tue, 30 Oct 2018 14:20:11 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7056F7F6CE; Tue, 30 Oct 2018 09:27:32 +0000 (UTC) Received: from krava (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with SMTP id 495CB2A2D5; Tue, 30 Oct 2018 09:27:29 +0000 (UTC) Date: Tue, 30 Oct 2018 10:27:27 +0100 From: Jiri Olsa To: Jiri Olsa Cc: lkml , Len Brown , "Herton R. Krzesinski" Subject: Re: [PATCH 08/10] tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command Message-ID: <20181030092727.GD19259@krava> References: <20181016150614.21260-1-jolsa@kernel.org> <20181016150614.21260-9-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181016150614.21260-9-jolsa@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 30 Oct 2018 09:27:32 +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:13PM +0200, Jiri Olsa wrote: > So user could specify outside CFLAGS/LDFLAGS values. > > Cc: Len Brown > Signed-off-by: Jiri Olsa > --- > tools/power/x86/turbostat/Makefile | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile > index 2ab25aa38263..1598b4fa0b11 100644 > --- a/tools/power/x86/turbostat/Makefile > +++ b/tools/power/x86/turbostat/Makefile > @@ -9,13 +9,13 @@ ifeq ("$(origin O)", "command line") > endif > > turbostat : turbostat.c > -CFLAGS += -Wall > -CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"' > -CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"' > +override CFLAGS += -Wall > +override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"' > +override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"' > > %: %.c > @mkdir -p $(BUILD_OUTPUT) > - $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ > + $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) > > .PHONY : clean > clean : > -- > 2.17.2 >