The C Source, Patches and (shudder!) Bugs
Post Reply
ncarrier
Posts: 36
Joined: 02 Nov 2011, 18:05

[PATCH 0/6]Ease cross-compilation and integration

Post by ncarrier » 15 Nov 2012, 10:51

Hello,
I'm submitting a patch set concerning nearly exclusively ums' Makefile.

The main problem it aims to overcome is that cross-compilation of ums is quite difficult, due mainly to hardcoded paths and use of shell scripts.

The constraints I tried to respect were :
* keep the makefile as functional as it was before
* use when possible, standard conventions, tools and variables
* make it work with both host and arm cross-compiling toolchains
* stay concise and clear.

This patch set comes in 6 parts :
1. Avoid overwriting CC
-> So that it can be overwritten by the integrator with environment
2. Don't force binary stripping
-> So that it can be done by the integrator, only when needed
3. Create jimsh0.c for jimsh0 compilation to succeed :
-> So that find-tclsh tool works independently of the rest of the build process
4. Rely on find-tclsh to find or build a tcl interpreter
-> So that it is performed once and only once
5. Make dispatcher static and dynamic cross-compilable
-> By not relying anymore on make_static_dispatcher.sh but on a real Makefile
6. Treat three dispatcher versions in a more similar manner
-> Use the simplifications introduced by the previous patches to reorganize the makefile in a simpler way

Note all these patches have been developed starting from version 1.2.5 and tested with both a host tollchain and starting from path 5, with a cross-compiler.

Post Reply