Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp214013ybi; Sat, 29 Jun 2019 09:01:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpylfmq6S8xSm5k3wFcdWsPlq5A6edC3nflImYMuyYMHXCeob1JkQqagX+duZhQP+4sIyJ X-Received: by 2002:a63:3d8d:: with SMTP id k135mr15590913pga.23.1561824089992; Sat, 29 Jun 2019 09:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561824089; cv=none; d=google.com; s=arc-20160816; b=YgLQcOfarcnUIbH7iFHRLsZhd38GtFzs5Hn52cckHwQn49IsE4mfcu1yR41UMqx6Hs I6pZVQJEcetcfVw9M3aRquiWD/Otw+/oZTkpawNk1H9NkXe7b7gbdJSEq7iq2ALJ8wwD c8MDd19PVgw2H3lJPZpHzbqsrXZdqeiH7/uSTZ6EHcsaprMS/bdildPb2ixKbTfWfvZ8 63brh4SbVBLwGuTZ8jYpWS3iGtKOMBXIqD86NfMwNpwapF6XUR5GHQtboHS+uksginJW PIe6etrewCGA5SSIvQ/7/nifxaj3oKbsNgqodDP99gy69/FrMSuw/1IrBGlDwE97JsE7 f2xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=idR9v5tQce42+52EX6Bs+N339gM2s4yw6+BqLcikr5s=; b=DrRLqU9eN4bag7NusAmEGK25spW6ZM5HTJRaNDc/zQgc9vg9SMFhadmVOqLgNIAUfq Tr2V3O9YZMFriqT+JlJQiGzMtOspF7S2gGy0xX1G3Qu1TqvUS5MhK9Fwo59sAJZYWpuR 78yul1mYcY6PrZRPioGvJu4CZKttI3qEyNEQrff+NHVHSU2FRIt4EDVeAxO3T7e5TYSL bUPXtman2A70sCwXfpb/SAJwjB8GzN16hYexa2sg1MOlxf5AhPW15eGqLi8tDQEyt+Wi tBVIjsbuKh2c3aG4+ck9doXzieK1fUiNV1A1//k0hrVM7GaBe0ZbLHj/tYl9yACKhXjn j4Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UELpZdFn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k63si5122210pgk.39.2019.06.29.09.01.12; Sat, 29 Jun 2019 09:01:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UELpZdFn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726872AbfF2QBB (ORCPT + 99 others); Sat, 29 Jun 2019 12:01:01 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42521 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbfF2QBB (ORCPT ); Sat, 29 Jun 2019 12:01:01 -0400 Received: by mail-pf1-f196.google.com with SMTP id q10so4437859pff.9; Sat, 29 Jun 2019 09:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=idR9v5tQce42+52EX6Bs+N339gM2s4yw6+BqLcikr5s=; b=UELpZdFnfLpDWcA25Vj74xvg9NlYcZfaeH2hHjAfxAfo9Me7oBkXYXhfCRcndmjrk9 3C9On7eAJllObpSJDu1+tySeaRQz+brF0gP9deLKYAp68pfqekGiMKvv3JQSw7xS5UqX to4a+sNygZfw55b+rPBmGrFbGWbic2zFao4MkYt69UobwCQO1HMwMkKzglfZjwc4Owr3 HBy2O0NlobOvPyjBbU5l8X6JrcNcr1NCwuJsO/HD3x3DFu8FBr8L3E326XuUMhAGQ8uP 6bxkssHWAmYm/SLdXikEPm865oCoH+P4RXuY8k6dsyB4rqeVsqmxBVwVV3m23toQEkL+ 2dEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=idR9v5tQce42+52EX6Bs+N339gM2s4yw6+BqLcikr5s=; b=SrZk+gcKgD2mCleOWnwCEoBS5hsstU4Q3ac6mskdDwJpFuFSmNNLiJDQCusZEVVN2Y YyRdvqyDh+xcAZNjIzbLxUDvB4JwY9XpBS8lAIWqXPmXx1hPT4T5KfZ0u63vS5gHvcRN 5HrrqFY/dP6ZSISt1L3Puds1vnDP/YgPpG44GTWZsdAJXmwNy7arNMm/EWYBRLUGZVAR CY9Ix0zAeIIPW+FoNBNyI2g3NQOIvJ9fTelOohve8RFJFgag13RQhv/scE+dikqHdgo0 HhZG/PmIf7zarLYaMyPdpMCyOMVdHMkbahsbfLpyF+KelkFmGtATwWEZA1bYZOfWY5um cdsQ== X-Gm-Message-State: APjAAAU4w9Kbufx+sLF/KCCjVHhFlt390HZTSjsTJctCRqmGgxAa0EHz CszTb4R2bbNACysAiS1GGDrL+K1CHyGzpX9QorU= X-Received: by 2002:a17:90b:8d2:: with SMTP id ds18mr20502355pjb.132.1561824060733; Sat, 29 Jun 2019 09:01:00 -0700 (PDT) MIME-Version: 1.0 References: <20190626223851.19138-1-srinivas.pandruvada@linux.intel.com> <20190626223851.19138-11-srinivas.pandruvada@linux.intel.com> <1c4238f7d18d316df82d3ba1618fecdcf014f98a.camel@linux.intel.com> In-Reply-To: <1c4238f7d18d316df82d3ba1618fecdcf014f98a.camel@linux.intel.com> From: Andy Shevchenko Date: Sat, 29 Jun 2019 19:00:49 +0300 Message-ID: Subject: Re: [PATCH 10/10] tools/power/x86: A tool to validate Intel Speed Select commands To: Srinivas Pandruvada 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > @@ -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 -- With Best Regards, Andy Shevchenko