View Single Post
Old 06-17-2011, 08:35 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@mark03: If you check the rest of the file, most of the stuff I build uses autotools, so once your cross toolchain is in your path, passing --host=arm-kindle-linux-gnueabi to configure (and apprpriate C/CXX/LDFLAGS in your env) should be enough (provided the project is using autootools correctly, and in a cross-compile friendly way, which might not always be the case ;D).

The only thing that might cause some trouble in my config is that I'm running a somewhat way more recent version of glibc/gcc than the Kindle system, and there's a few cases where I had to tweak things a bit to avoid pulling newer symbols (readelf is you friend to check that kind of stuff in your binaries).

You might want to try a cross toolchain based on glibc 2.5 if you encounter too much issues of this kind.

And, yeah, there's a whole bunch of different tools that can be used, some primarily aimed at bootstrapping embedded systems. I'm using crosstool-ng because it's 'simpler', its goal being just to provide a toolchain, not help bootstrap a full system, and I'm somewhat used to do things manually once I have a reliable toolchain setup (being a gentoo user and all ;p).

Last edited by NiLuJe; 06-17-2011 at 08:42 PM.
NiLuJe is offline   Reply With Quote