Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matias Garcia <mgarcia@rossvideo.com>
To: buildroot@busybox.net
Subject: [Buildroot] Codesourcery multi-lib selection in buildroot
Date: Fri, 06 May 2011 14:38:59 -0400	[thread overview]
Message-ID: <4DC44043.9030904@rossvideo.com> (raw)
In-Reply-To: <20110505211023.142dec32@surf>

On 11-05-05 03:10 PM, Thomas Petazzoni wrote:
> On Wed, 04 May 2011 16:52:08 -0400
> Matias Garcia<mgarcia@rossvideo.com>  wrote:
>
>> I'm building an OS for a PowerPC e500v2 core. Originally, I used a
>> stock buildroot toolchain (uclibc), but was not able to optimize a
>> time-critical section of our application. With the CodeSourcery
>> compiler, I am. Unfortunately, even setting -te500v2 in the buildroot
>> optimizations (and hacking it into the TARGET_LDFLAGS) doesn't fix
>> all cases. Certain packages within buildroot seem to link against the
>> wrong library (linker complains that one library is compiled with
>> hard-float and another with soft-float, etc). Is there a way to tell
>> buildroot (or Make in general) to always link against a certain
>> library set?
> We have to make sure that this -te500v2 flag is passed to all packages
> during their build process. Which packages are causing problems
> exactly ?
Among others, freetype, jpeg-8b, liblockfile, libsysfs, libusb, 
libusb-compat, liblzo, and imlib2 (which I've hacked into the build 
based on ImageMagick). Most often, the error is 'Warning: 
<...>/cr[blah].o uses hard float, <...>/blah uses soft float'.
> Another solution is to try the recent proposal of Peter Korsgaard to
> use a wrapper for external toolchain components, that would enforce the
> use of selected compiler flags so that the selected sysroot would
> always be correct.
That would be magical. I'm testing Peter's patch right now with a tree 
updated to his commit removing CFLAGS (yesterday), but I've hit a snag. 
It looks to me like unless I define some variables to tell buildroot I 
want -mcpu=854[0|8] -mabi=spe -mspe -mhard-float -mgprs-float=double (if 
memory serves), the wrapper will assume I want generic powerpc, as the 
target optimizations don't seem to be passed in. I'd even prefer to tell 
the compiler that I want -te500v2 instead since it's a handy-dandy 
shortcut that CodeSourcery provides for the above options, but I'll take 
what I can get. Any suggestions for a simple solution? I've defined an 
e500 option under target arch before, but I'd rather avoid that if possible.

Thanks,
Matias

> Thomas

      reply	other threads:[~2011-05-06 18:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-04 20:52 [Buildroot] Codesourcery multi-lib selection in buildroot Matias Garcia
2011-05-05 19:10 ` Thomas Petazzoni
2011-05-06 18:38   ` Matias Garcia [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC44043.9030904@rossvideo.com \
    --to=mgarcia@rossvideo.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox