Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1222644ybi; Sun, 30 Jun 2019 10:12:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkavBdqZsIsCsoSgQCgeMEapeK98DtZrxivGU8zW+bTRjPsniF2+qz8rYxIbSo4JPvZBV6 X-Received: by 2002:a63:2b47:: with SMTP id r68mr19400821pgr.352.1561914729136; Sun, 30 Jun 2019 10:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561914729; cv=none; d=google.com; s=arc-20160816; b=IT2OsEhAbRiZM8j0NFYwiJiOTRKKsn0fqBD3orYE510ZLt5L08uxLE5C0zNvQc3xI3 EBBmeRlviuHga+0WtCT4H/YPi6D+tQDyHfNGr6+eO2WxDl4NhfYVniUkbKh7n5+/u8Dc yAMzQbpe691iagVNDNaOBLm8sGyAF0FCIZSdOhy+EO/QgB0GsXF7d+6xQFhTpoAXdgDB WSOBbzopKUBTMc3C6LUaCMRm+7VGX90wJV0J8iL63uGHvGylgNeZF+HRcnewmjS2ZIWI Z8XWC6ABUAjcK8u4zaTrXT+deCqOQaLLQ/MSwCnr21IFogZcyRr8M7oCE+rc7hwCuIYK tf/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=cYplwdEat1PzC5Qk+zO1OpAssfH9ojeeZ2qg35/mVtg=; b=qfoCOX/4MdT9mKW3TeswibEWtdjHe+8sY+RU/DVZQzuGQGQ9MKRUmc9IaqBmqi9cFa V3k66IDjtC4KYig3fvLuKXSfCyKMLdyHxDl2EiPSuS4TiPmw2dFsZZ9UQu4FJq/Htkdk NIcQyWdj2z048kXgO7S+GYXhDbQQDOqkcmJadimNQ8yODCZbuZjmyrjhzKizduSr+K42 nqeJbJlTo1rjofmuF4HD8HyNoojKxQ9x452AebH+vVkGlBsLrylESW2NCSr7VGGTxlkz XaMMbX6KBzzeRn912ybmqYPcYJR3MT7RaceopFTFlbQMJmTNkr/U3aeKZfvxVQN23/HJ 6yIA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63si1029476pge.113.2019.06.30.10.11.52; Sun, 30 Jun 2019 10:12:09 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726722AbfF3RLg (ORCPT + 99 others); Sun, 30 Jun 2019 13:11:36 -0400 Received: from mga05.intel.com ([192.55.52.43]:55552 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbfF3RLg (ORCPT ); Sun, 30 Jun 2019 13:11:36 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jun 2019 10:11:35 -0700 X-IronPort-AV: E=Sophos;i="5.63,436,1557212400"; d="scan'208";a="157070002" Received: from spandruv-mobl.amr.corp.intel.com ([10.251.15.131]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jun 2019 10:11:34 -0700 Message-ID: <92900b0ce2333e3d04f197d3b7d3eaaf0b95432f.camel@linux.intel.com> Subject: Re: [PATCH 10/10] tools/power/x86: A tool to validate Intel Speed Select commands From: Srinivas Pandruvada To: Andy Shevchenko Cc: Darren Hart , Andy Shevchenko , Andriy Shevchenko , Jonathan Corbet , "Rafael J. Wysocki" , Alan Cox , Len Brown , prarit@redhat.com, darcari@redhat.com, Linux Documentation List , Linux Kernel Mailing List , Platform Driver Date: Sun, 30 Jun 2019 10:11:34 -0700 In-Reply-To: References: <20190626223851.19138-1-srinivas.pandruvada@linux.intel.com> <20190626223851.19138-11-srinivas.pandruvada@linux.intel.com> <1c4238f7d18d316df82d3ba1618fecdcf014f98a.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2019-06-29 at 19:00 +0300, Andy Shevchenko wrote: > On Sat, Jun 29, 2019 at 5:53 PM Srinivas Pandruvada > wrote: > > On Sat, 2019-06-29 at 17:31 +0300, Andy Shevchenko wrote: > > > On Thu, Jun 27, 2019 at 1:39 AM Srinivas Pandruvada > > > wrote: > > > > +++ b/tools/power/x86/intel_speed_select/Makefile > > > > > > My experience with some tools are not good in order of their > > > build > > > process. > > > Can this one use tools build infrastructure from the day 1? > > > > Can you give some pointers? > > Sure. > > At least simple ones are under tools/gpio, tools/iio, etc. > > You may compare them to see what's different and what's common and > base Makefile here on that. > > I dunno if there is any tool under tools/power to use that, it might > give an example of `descend` feature in Makefile. Sent an update to include this change. Thanks, Srinivas > > > > > @@ -0,0 +1,31 @@ > > > > +# SPDX-License-Identifier: GPL-2.0 > > > > +CC = $(CROSS_COMPILE)gcc > > > > +BUILD_OUTPUT := $(CURDIR) > > > > +PREFIX ?= /usr > > > > +DESTDIR ?= > > > > + > > > > +override CFLAGS += -D__EXPORTED_HEADERS__ -Wall -D_GNU_SOURCE > > > > +override CFLAGS += -I$(CURDIR)/../../../../include/uapi/ > > > > +override CFLAGS += -I$(CURDIR)/../../../../include/ > > > > + > > > > +%: %.c > > > > + @mkdir -p $(BUILD_OUTPUT) > > > > + $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) > > > > + > > > > +DEPS = isst.h > > > > +OBJ = isst_config.o isst_core.o isst_display.o > > > > + > > > > +%.o: %.c $(DEPS) > > > > + $(CC) -c -o $(BUILD_OUTPUT)/$@ $< $(CFLAGS) > > > > + > > > > +intel-speed-select: $(OBJ) > > > > + $(CC) -o $(BUILD_OUTPUT)/$@ $^ $(CFLAGS) > > > > + > > > > +.PHONY : clean > > > > +clean : > > > > + @rm -f $(BUILD_OUTPUT)/intel-speed-select > > > > + @rm -f $(BUILD_OUTPUT)/*.o > > > > + > > > > +install : intel-speed-select > > > > + install -d $(DESTDIR)$(PREFIX)/sbin > > > > + install $(BUILD_OUTPUT)/intel-speed-select > > > > $(DESTDIR)$(PREFIX)/sbin/intel-speed-select > >