diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-24 19:05:41 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-24 19:05:41 -0700 |
commit | 7d3d52009dd110f3b2f94adad98348f6171f4c3d (patch) | |
tree | 799a9eb01e429caaf95ab6a9ec5e81b6d5f3a276 /src | |
parent | d9a2bb1337b87203e3dd16aa52b897eaa13803f9 (diff) | |
download | ofono-7d3d52009dd110f3b2f94adad98348f6171f4c3d.tar.bz2 |
Use script to generate list of builtin plugin symbols
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rwxr-xr-x | src/genbuiltin | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 8fe055c0..11dac64b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -40,7 +40,7 @@ AM_CFLAGS = @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ @GATCHAT_CFLAGS@ \ INCLUDES = -I$(top_builddir)/include -I$(top_builddir) -EXTRA_DIST = ofono.conf +EXTRA_DIST = genbuiltin ofono.conf MAINTAINERCLEANFILES = Makefile.in diff --git a/src/genbuiltin b/src/genbuiltin new file mode 100755 index 00000000..d64bc725 --- /dev/null +++ b/src/genbuiltin @@ -0,0 +1,17 @@ +#!/bin/sh + +for i in $* +do + echo "extern struct ofono_plugin_desc __ofono_builtin_$i;" +done + +echo +echo "static struct ofono_plugin_desc *__ofono_builtin[] = {" + +for i in $* +do + echo " &__ofono_builtin_$i," +done + +echo " NULL" +echo "};" |