Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: "Dennis.Yxun" <dennis.yxun@...>
Subject: Trying to Make Cross compile more firendly
Date: Thu, 26 Mar 2009 14:59:06 +0000
HI Community:<br>   I&#39;m trying to cross compile a stage1 base system for Openpandora. All the steps can be followed in this wiki [1].<br>   I prefer to take cross compile way,because I think it&#39;s more considerable for embedded development. Since not all the embedded devices<br>
are that powerful as TI&#39;s OMAP3 chip.  Gentoo-openpandora-dev already took the native way to compile out most packages : ) Great!<br>   Actually the upstream provide two scripts [2] to setup the building environment. Which one is crossdev_set_environment.sh, it set SYSROOT same with ROOT, another is set_environment.sh, which make ROOT different from SYSROOT. Since SYSROOT is the cross<br>
toolchain&#39;s environment, and ROOT is the target rootfs. I perfer to take set_set_environment.sh&#39;s way, It would seperate toolchains and target<br> rootfs. So it will make the finanal rootfs more neat and clean, also will avoid potential file confliction. That could be possible, for example<br>
the linux-headers, both cross toolchain and target rootfs will emerge. Also maybe simply mark it as provided would solve this problem.<br>   The upstream&#39;s default embedded&#39;s make.conf only look for header files and library from ROOT&#39;s path. So if some lowlevel package<br>
looking for header file or library located at the toolchain&#39;s path, will fail at complile stage. I come cross and idea, maybe it&#39;s possible to add<br>both SYSROOT and ROOT&#39;s path into compiler&#39;s looking path.So I just tweaked the CFLAGS and LDFLAGS[3]. I have no idea whill there be<br>
any problem with this. Still struggling and so far I got here.<br>   Any idea about how to make embedded people&#39;s life easy would be great.<br>   We may share the same problem. So I put the thread here, hope can drag people&#39;s attention<br>
<br>Best Regards<br><br>          Dennis &#39;Openfree&#39; Yxun<br><br>[1] <a href="http://gentoo.openpandora.org/wiki/index.php/Create_Image/Installing_Crossdev_Tools">http://gentoo.openpandora.org/wiki/index.php/Create_Image/Installing_Crossdev_Tools</a><br>
[2] <a href="http://bazaar.launchpad.net/~gentoo-pandora-devs/gentoo-arm-pandora/main/files">http://bazaar.launchpad.net/~gentoo-pandora-devs/gentoo-arm-pandora/main/files</a><br>[3] LDFLAGS=&quot; -L${ROOT}/lib  -L/${ROOT}/usr/lib \<br>
-L${SYSROOT}usr/lib -L${SYSROOT}lib \<br>&quot;<br>CFLAGS=&quot;-Os -pipe ${MARCH_TUNE} -fomit-frame-pointer \<br> -I${SYSROOT}/usr/include \<br> -I${SYSROOT}/include \<br> -I${ROOT}usr/include/ \<br> -I${ROOT}include/ \<br>
&quot;<br><br>
Replies:
Re: Trying to Make Cross compile more firendly
-- Patrice Tisserand
Re: Trying to Make Cross compile more firendly
-- Sven Rebhan
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Gnap and google SOC
Next by thread:
Re: Trying to Make Cross compile more firendly
Previous by date:
Re: Gnap and google SOC
Next by date:
Re: Gnap and google SOC


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.