How to create an intermediate binary tool

From Openembedded.org

Jump to: navigation, search

Q: How do I create an intermediate binary tool?

Problems will occur when the compilation process creates binary programs and these are used in subsequent compilation processes. When not cross-compiling this is not a problem and therefore often used. On the other hand this poses a big problem when cross-compiling since the compiled binaries will not run on the build host.

{include output of file here to demonstrate what I am talking about.}

The way around this is to first compile the needed binary for the host system. This can be done via do_compile_prepend().

Michael has some words about it in his FOSDEM presentation:

http://www.vanille.de/tools/FOSDEM2005.pdf (page 28)

in which he suggests: "Fix its buildsystem to use BUILD_CC for the native tools, manually compile the native tool prior to calling oe_runmake, or add a native package and make your package depend on that."

Personal tools