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
HI Community:<br> I'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's more considerable for embedded development. Since not all the embedded devices<br>
are that powerful as TI'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's environment, and ROOT is the target rootfs. I perfer to take set_set_environment.sh'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's default embedded's make.conf only look for header files and library from ROOT's path. So if some lowlevel package<br>
looking for header file or library located at the toolchain's path, will fail at complile stage. I come cross and idea, maybe it's possible to add<br>both SYSROOT and ROOT's path into compiler'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's life easy would be great.<br> We may share the same problem. So I put the thread here, hope can drag people's attention<br>
<br>Best Regards<br><br> Dennis 'Openfree' 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=" -L${ROOT}/lib -L/${ROOT}/usr/lib \<br>
-L${SYSROOT}usr/lib -L${SYSROOT}lib \<br>"<br>CFLAGS="-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>
"<br><br>
|
|