[systemd-devel] [PATCH] Allow cross-compilation.

Thierry Reding thierry.reding at avionic-design.de
Tue Nov 23 23:02:33 PST 2010


* Gustavo Sverzut Barbieri wrote:
> On Tue, Nov 23, 2010 at 7:48 PM, Lennart Poettering
> <lennart at poettering.net> wrote:
> > On Tue, 23.11.10 21:12, Thierry Reding (thierry.reding at avionic-design.de) wrote:
> >
> >> When cross-compiling systemd, the introspection XML files fail to be
> >> generated because the systemd host binary is not executable. This patch
> >> works around this by putting the introspection XML data into separate
> >> ELF sections and extracting them from the binary when generating the XML
> >> files.
> >>
> >> The extracted XML data is passed through the strings utility in order to
> >> strip the trailing NUL character. A small AWK script is used to prepend
> >> the doctype and add the opening and closing node tags respectively.
> >> Finally, the C preprocessor is used to substitute the correct doctype
> >> information from the D-Bus header files.
> >
> > Awesome. That patch looks great!
> 
> BTW, are you using OpenEmbedded or some other cross compil
> environment? We're about to start with systemd and OE, any hints are
> appreciated.

I am actually using something home-brewed, though it is essentially quite
quite similar to OE or many of the other environments.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20101124/335987c0/attachment.pgp>


More information about the systemd-devel mailing list