Hello there, I shall continue with some questions if I may :) ... please! is info about the instruction set stored in an executable? ie can i verify the version of the arch of an executable, just as I can find out the arch using the command 'file' ?
I am asking because even though i filled in the necessary variable with armv4t as export SBOX_EXTRA_CROSS_ARGS=-march=armv4t would compile a simple hello world with -march=armv5te COLLECT_GCC_OPTIONS='-v' '-o' 'hello6' '-march=armv5te' '-funwind-tables' I must explicitly add the gcc option -march=armv4t to get the executable I want. Another major question is. I need to do some development on an 2.4.18 kernel (!). is there a legacy scratchbox version that compiles against 2.4 kernels? I could either install a legacy version, or use a toolchain that I received with the arm board based on a custom kernel. If I go for the latter, will I have any change of succeeding in building a toolchain for scratchbox out of this toolchain? Thank you for your help nass On Tue, Sep 6, 2011 at 6:05 PM, Jussi Hakala <jussi.hak...@movial.com>wrote: > On 09/06/2011 05:22 PM, Athanasios Silis wrote: > >> I have managed to setup a target with: >> > > Issuing sb-conf show without arguments will give you complete output :) > > > the arch as i see from gcc -v is --with-arch=armv5te >> which is not suitable for me, i am attempting to get the older >> codesourcery toolchain >> scratchbox-toolchain-arm-**linux-cs2009q3-67-1.0.18-1-**i386.tar.gz and >> hope >> that it is made for ARMv4. >> > > I think Codesourcery has configured their toolchain to use that arch for > some time. > > Anyway, for most cases you can override it adding your own -march switch in > the environment. That or in the packaging. > > % export SBOX_EXTRA_CROSS_ARGS=-march=**foo > > See the documentation on environment variables in > > % less /scratchbox/doc/variables.txt > > > another question: >> is it possible / sane to compile a kernel from the board from within >> scratchbox? >> > > Yes, it is. But there's little reason to do that, kernel is > cross-compilable well on it's own. > > > Regards, > > Jussi > ______________________________**_________________ > Scratchbox-users mailing list > Scratchbox-users@lists.**scratchbox.org<Scratchbox-users@lists.scratchbox.org> > http://lists.scratchbox.org/**cgi-bin/mailman/listinfo/**scratchbox-users<http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users> >
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users