From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759261Ab2C2M0K (ORCPT ); Thu, 29 Mar 2012 08:26:10 -0400 Received: from s15943758.onlinehome-server.info ([217.160.130.188]:60780 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783Ab2C2M0G (ORCPT ); Thu, 29 Mar 2012 08:26:06 -0400 From: Borislav Petkov To: Ingo Molnar , Arnaldo Carvalho de Melo , Michal Marek , Sam Ravnborg Cc: LKML , Borislav Petkov Subject: [PATCH v3 0/4] tools: Add a toplevel Makefile Date: Thu, 29 Mar 2012 14:25:53 +0200 Message-Id: <1333023957-22746-1-git-send-email-bp@amd64.org> X-Mailer: git-send-email 1.7.9.3.362.g71319 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Hi all, yet another version of the toplevel Makefile integration of tools/. This round gives you the ability to build the tools from the toplevel Makefile (explanation below can be found also in patch 4/4's commit message): "Now you can do $ make tools/ from the toplevel kernel directory and have the respective tool built. If you want to build and install it, do $ make tools/ tinstall The install target is called "tinstall" so that there's no conflict with the main kernel install target and should mean "tool install". $ make tools/ _clean should clean the respective tool directories. If you want to clean all in tools, simply do $ make tools/ cleanall Also, if you want to get what the possible targets are, simply calling $ make tools/ should give you the short help." Also included are all suggestions from the last time. Thanks. Changelog: * v2: here's a refreshed version from yesterday incorporating all comments and suggestions along with a third patch that adds a 'help' target as the default one causing the following below. Btw, Arnaldo, could you please pick those up if there are no complaints since the first patch touches perf and I don't have a clear idea who else to send it to anyway :). Thanks. $ make Possible targets: cpupower - a tool for all things x86 CPU power firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer lguest - a minimal 32-bit x86 hypervisor perf - Linux performance measurements tool slub - slabs reporting tool turbostat - Intel CPU idle stats and freq reporting tool usb - USB testing tools virtio - vhost test module x86_energy_perf_policy - Intel energy policy tool Cleaning targets: all of the above with the "_clean" string appended cleans the respective build directory. clean: a summary clean target to clean _all_ folders * v1: this is a refresh and carve-out of an old patchset. It adds a toplevel Makefile to tools/ so that one can build the tool of her/his liking by simply doing $ cd tools/ $ make By default, we build perf. There's also a scripts/Makefile.lib now which should contain all make-related generic stuff which can be used by all tools' build process after including this file. Any comments/suggestions are welcome, thanks.