On 09/07/2011 12:55 PM, Athanasios Silis wrote:
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' ?
You might try something like readelf for that purpose.
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.
% SBOX_EXTRA_CROSS_COMPILER_ARGS=-march=armv4t gcc -v hello.c % readelf -A a.out
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?
You want to compile a 2.4 kernel inside scratchbox or compile scratchbox on a host with 2.4 kernel?
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?
You can import your binary toolchain straight into scratchbox. See [1] for more details.
Regards, Jussi [1] http://scratchbox.org/wiki/ForeignToolchains _______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users