* [Buildroot] How to enable Oprofile while using external tool chain?
@ 2011-05-25 7:31 Bob Liu
[not found] ` <BANLkTik5J8hTD_OvXrTZ3KYgHGUGPZqGqg@mail.gmail.com>
2011-05-25 8:30 ` [Buildroot] " Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Bob Liu @ 2011-05-25 7:31 UTC (permalink / raw)
To: buildroot
Hi, folks
It seems Oprofile package depends on no using external tool chain.
Is there any special reason of this, because I am trying to enable
Oprofile in buildroot while using external tool chain.
Any guide is welcome, Thanks.
--
Regards,
--Bob
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Fwd: How to enable Oprofile while using external tool chain?
[not found] ` <BANLkTik5J8hTD_OvXrTZ3KYgHGUGPZqGqg@mail.gmail.com>
@ 2011-05-25 8:28 ` Benoît Mauduit
2011-05-25 8:46 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Benoît Mauduit @ 2011-05-25 8:28 UTC (permalink / raw)
To: buildroot
On Wed, May 25, 2011 at 9:31 AM, Bob Liu <lliubbo@gmail.com> wrote:
> Hi, folks
Hi,
> It seems Oprofile package depends on no using external tool chain.
it refers to this :
http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/24247
> Is there any special reason of this, because I am trying to enable
> Oprofile in buildroot while using external tool chain.
Oprofile needs GNU libiberty and libbfd libraries which are provided
by binutils.
> Any guide is welcome, Thanks.
If you want to test, i've made a patch (not very clean) and it's work
with an external toolchain.
The patch will not work with Crosstool-ng.
Regards,
--
Benoit Mauduit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-external_toolchain-Add-possibility-to-compile-a-host.patch
Type: text/x-diff
Size: 4611 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110525/d2f95faa/attachment-0001.bin>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] How to enable Oprofile while using external tool chain?
2011-05-25 7:31 [Buildroot] How to enable Oprofile while using external tool chain? Bob Liu
[not found] ` <BANLkTik5J8hTD_OvXrTZ3KYgHGUGPZqGqg@mail.gmail.com>
@ 2011-05-25 8:30 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2011-05-25 8:30 UTC (permalink / raw)
To: buildroot
On Wed, 25 May 2011 15:31:39 +0800
Bob Liu <lliubbo@gmail.com> wrote:
> It seems Oprofile package depends on no using external tool chain.
>
> Is there any special reason of this, because I am trying to enable
> Oprofile in buildroot while using external tool chain.
Yes, it's due to the fact that oprofile depends on binutils being
available for the target, and our binutils build process didn't work
when external toolchain were used. The binutils package has been
reworked since then, so maybe it could work, but I haven't tried.
You can try, and see if any problem shows up.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Fwd: How to enable Oprofile while using external tool chain?
2011-05-25 8:28 ` [Buildroot] Fwd: " Benoît Mauduit
@ 2011-05-25 8:46 ` Thomas Petazzoni
[not found] ` <BANLkTik7bUHUein61uU18019RGZKeVw2qw@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2011-05-25 8:46 UTC (permalink / raw)
To: buildroot
On Wed, 25 May 2011 10:28:20 +0200
Beno?t Mauduit <benoit.mauduit@gmail.com> wrote:
> If you want to test, i've made a patch (not very clean) and it's work
> with an external toolchain.
Your patch says that it builds a host-binutils, but it's wrong: what it
builds is binutils for the target.
Otherwise, would be great to have a proper patch that makes this
possible, and that we could merge into Buildroot.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Fwd: How to enable Oprofile while using external tool chain?
[not found] ` <BANLkTik7bUHUein61uU18019RGZKeVw2qw@mail.gmail.com>
@ 2011-05-25 9:53 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2011-05-25 9:53 UTC (permalink / raw)
To: buildroot
Hello Beno?t,
Please keep the Buildroot list in Cc for Buildroot-related messages
(or, alternatively, use french for send me private messages ! :-)).
On Wed, 25 May 2011 11:40:10 +0200
Beno?t Mauduit <benoit.mauduit@gmail.com> wrote:
> > Your patch says that it builds a host-binutils, but it's wrong:
> > what it builds is binutils for the target.
>
> That's why I put quotes on "host" in my commit message.
Yes, that's what I understood from your quotes.
> > Otherwise, would be great to have a proper patch that makes this
> > possible, and that we could merge into Buildroot.
>
> I've made this patch quickly and know it is ugly. Anyway, i will try
> to update it when i have the time and post it here.
No problem with ugly preliminary patches. I do the same for new
features / complex features. And solving that binutils problem is not
that simple.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-25 9:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 7:31 [Buildroot] How to enable Oprofile while using external tool chain? Bob Liu
[not found] ` <BANLkTik5J8hTD_OvXrTZ3KYgHGUGPZqGqg@mail.gmail.com>
2011-05-25 8:28 ` [Buildroot] Fwd: " Benoît Mauduit
2011-05-25 8:46 ` Thomas Petazzoni
[not found] ` <BANLkTik7bUHUein61uU18019RGZKeVw2qw@mail.gmail.com>
2011-05-25 9:53 ` Thomas Petazzoni
2011-05-25 8:30 ` [Buildroot] " Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox