[Buildroot] [PATCH 0 of 3] Fix oprofile build on powerpc

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Wed Mar 13 08:38:38 UTC 2013


Hi Thomas,

On Wed, Mar 13, 2013 at 8:28 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Thomas De Schampheleire,
>
> On Tue, 12 Mar 2013 19:10:53 +0100, Thomas De Schampheleire wrote:
>
>> Since the upstep of oprofile to 0.9.8, the powerpc build was broken.
>> This series fixes this problem.
>>
>> As the last patch indicates, this is compile tested on x86 and powerpc,
>> but not runtime-tested.
>
> I think those patches are good, but when I started working on this
> issue, I also discovered that oprofile looks at /usr/include/linux by
> default to find out whether perf is supported or not in the kernel.
> Which obviously doesn't make sense in cross-compilation.
>
> I've just pushed at
> http://git.free-electrons.com/users/thomas-petazzoni/buildroot/commit/?h=oprofile-ppc-fix&id=dda400c3f798ba49b1b638f927b3089a9df24105
> the work I started some time ago, which was unfinished. Note that I
> don't ask you to also fix those issues, I just thought it would be good
> mentioning these other potential problems.

I haven't yet looked at your patches in detail, but I did also notice
the check on perf_event.h in /usr/src/linux. However, this should have
been fixed with the --with-kernel=$(SYSROOT_DIR).
However, I just now notice that SYSROOT_DIR does not exist here, and I
need to find a better solution. I will investigate that aspect
further.

Ideally we'd indeed merge your work together with these patches. Do
you recall what was still missing or not working with your patches?

Thanks,
Thomas


More information about the buildroot mailing list