]> git.ipfire.org Git - thirdparty/systemd.git/commit - introspect.awk
build-sys: allow cross-compilation
authorThierry Reding <thierry.reding@avionic-design.de>
Tue, 23 Nov 2010 20:12:11 +0000 (21:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Nov 2010 21:38:55 +0000 (22:38 +0100)
commit9a60da2834074d970ca063c210fe9d2f05c70532
treeb86ce16ec73449b2df9bdfcc8459e5bc1b54b80f
parent3686ced6d76d72a7364db4616c14a164f9c1f01e
build-sys: allow cross-compilation

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.
17 files changed:
Makefile.am
configure.ac
introspect.awk [new file with mode: 0644]
src/dbus-automount.c
src/dbus-device.c
src/dbus-job.c
src/dbus-manager.c
src/dbus-mount.c
src/dbus-path.c
src/dbus-service.c
src/dbus-snapshot.c
src/dbus-socket.c
src/dbus-swap.c
src/dbus-target.c
src/dbus-timer.c
src/dbus-unit.c
src/macro.h