Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5294819imm; Tue, 16 Oct 2018 08:08:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV63tgSipmbmASnAAmezbGJC5ZJQ5G+ZJkGgz7fEQeyQ/hV061TQxZm/1h6wzy2dHjworuX9M X-Received: by 2002:a65:5a05:: with SMTP id y5-v6mr17160888pgs.161.1539702510240; Tue, 16 Oct 2018 08:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702510; cv=none; d=google.com; s=arc-20160816; b=tK7IWielXudJs/r0855ZMaje1cY6DoapWg0aX5cqkUBUN/nGfOz5Hacss6Db2PY4I6 Up4NWxn8OqfPIqDaR+7aeYIt+GqR0WOrXf/GYpwhn/WPHwIYrUrMINOjmXWonf5qBvDp WFg2S2/Q8ZsFdc4Je2O8Rhf6zv5PFKOna/bJGQ2KG1bIfymDgD3qGrng+0IzB6kz0DI0 /WXIcFAQBaKhyXspinmJj3qDY8UyDL/GxOmEWIyDno23k4iDxFsYrQvMSJsrgcvs17V/ oSrlaNHEJOL2VQrkhbPFSTTV+eGT/rtpoE/ua2HuVUybNfqLGGkmfy3N1m7QqRceDomR eBtg== 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=Ah8tHQWOfnS0d83wAMS+8qxYbFw5+wMCl5ZTqy5LdOg=; b=KX/RHmgBLUppPu28I7McPrMRf0+k+J3t90Y7qLCtkTG0G7VhJl1aGXJqya0euN3TS9 p/a8WBAfl5XjRlJAQ/1AH5JD9f4JeY24YCihMXX9pCZ8ncJ8FO8raejHDEdncPRw/cDp lFh0M6QaIOAdVYago22nhVP9nO/8m6OhRhinmOaJWeeVpjG1EITqhHg28a+EVKwv6r0O Sp20VNCgUntIdqUquKw1Obo02QoPKYPyfx7nz9l+jYSDyG2OOq/EgXODNzRF+UEn8dNb EoBLCfoI4NKOJ/0vXlffVu5+L1mJR3ckpGjSajnFy0gkwRZHl4dFgPZBl6DAM5kG4Opz DWYw== 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 n25-v6si13922376pgl.508.2018.10.16.08.08.13; Tue, 16 Oct 2018 08:08:30 -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 S1727603AbeJPW6K (ORCPT + 99 others); Tue, 16 Oct 2018 18:58:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34102 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeJPW6K (ORCPT ); Tue, 16 Oct 2018 18:58:10 -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 910F736883; Tue, 16 Oct 2018 15:07:17 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 87AEF58901; Tue, 16 Oct 2018 15:07:16 +0000 (UTC) From: Jiri Olsa To: lkml Cc: Len Brown , "Herton R. Krzesinski" Subject: [PATCH 08/10] tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command Date: Tue, 16 Oct 2018 17:06:13 +0200 Message-Id: <20181016150614.21260-9-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.30]); Tue, 16 Oct 2018 15:07:17 +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/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