This patch modifies the OCaml 3.12 build system to generate OCaml cross-compilers and related tools and libraries for arm-linux targets.
I have built and tested OCaml cross-compilers on an amd64 host running Debian with the following targets:
I have not built cross-versions of the dbm, graphics, or labltk libraries.
I have done only limited testing of the cross-tools and libraries. Any suggestions for a test suite would be welcome.
You need to be able to cross-compile a "Hello, world!" C program and run it on your target system before going any further.
You will need cross-versions of the gcc and binutils packages (specifically, gcc, as, objcopy, nm, and ranlib), as well as the basic C libraries and headers. The tools must be on your PATH.
You also need the OCaml source tarball:
http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz or http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.0.tar.bz2
If the build finishes without errors, you can install the resulting tools by running "make installcross".