From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752861AbbAOQII (ORCPT ); Thu, 15 Jan 2015 11:08:08 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:36256 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571AbbAOQIG (ORCPT ); Thu, 15 Jan 2015 11:08:06 -0500 Message-ID: <54B7E5E0.50702@gmail.com> Date: Thu, 15 Jan 2015 09:08:00 -0700 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Jiri Olsa , linux-kernel@vger.kernel.org CC: Adrian Hunter , Alexis Berlemont , Andi Kleen , Anton Blanchard , Arnaldo Carvalho de Melo , Borislav Petkov , Borislav Petkov , Cody P Schafer , Corey Ashford , Florian Fainelli , Frederic Weisbecker , Ingo Molnar , Jean Pihet , Mark Salter , Namhyung Kim , Paul Mackerras , Peter Zijlstra , "S. Lockwood-Childs" , Sam Ravnborg , Sasha Levin , Stephane Eranian , Steven Rostedt , Sukadev Bhattiprolu , Will Deacon Subject: Re: [PATCHv2 00/36] perf tools: New build framework References: <1421326532-25660-1-git-send-email-jolsa@kernel.org> In-Reply-To: <1421326532-25660-1-git-send-email-jolsa@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/15/15 5:54 AM, Jiri Olsa wrote: > Since it's actually small portion of kbuild that perf needs, > I realized it's actually better to steal it than 'reconfigure' > kbuild to be usable for perf. > > Also this patchset is kind of incremental version of the latest: > perf tools: Add kbuild support into Makefile.kbuild > so it should be easier to review. > > NOTE I couldn't find any copyright/credit messages in the kbuild > system, but would be happy to include it if someone suggests one. > > The stolen parts are in files: > Makefile.kbuild > Build.include > > The idea and more details are explained in the 'Documentation/Build' > file. The basic idea is the same as in kbuild system, with some minor > changes to allow for multiple binaries build definitions. > > User provides 'Build' files with objects definitions like: > perf-y += perf.o > perf-y += builtin-bench.o > ... > > libperf-y += util/ > ... > It is not obvious to me how this works. Users provide a .config file for building perf? Or do users provide Build files like you state above? If it is a .config file then what if a .config file is not present is it auto generated using the current autoprobing? David > and the build framework outputs files: > perf-in.o > libperf-in.o > > which are then linked into appropriate binaries/libraries. > (perf libperf.a libperf-gtk.so) >