[Buildroot] [PATCH v2] package/perf: build outside kernel tree
steven at uplinklabs.net
Thu Mar 19 12:46:49 UTC 2015
On Thu, Mar 19, 2015 at 5:15 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Steven Noonan,
> On Thu, 19 Mar 2015 03:57:31 -0700, Steven Noonan wrote:
>> This is necessary for introducing patches.
>> Signed-off-by: Steven Noonan <steven at uplinklabs.net>
> Can you describe a little bit more what is happening here, and why we
> are doing this?
> In some cases, the current dependency of the perf package on building a
> Linux kernel is a bit annoying: when I do kernel development, I tend to
> build my kernel outside of Buildroot. But I still would like to be able
> to use Buildroot to build tools like perf. So in some sense, what
> you're proposing here makes some sense.
> But it is not very efficient to extract twice the entire kernel source
> code, and there is the issue of code duplication pointed out by Baruch.
I agree, it's ugly. But if we intend to apply patches on perf it makes
sense that it really has its own tree. For example, in my upcoming x32
Is there a better way to handle patching the perf code base, or am I
taking the right approach here by having it own its own source tree?
If we really care about the efficiency of the extraction we can cut it
down to the bits that perf itself really needs (tools directory, some
of the top-level files), but that feels kind of weird too.
More information about the buildroot