aboutsummaryrefslogtreecommitdiff
path: root/src/genbuiltin
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-08-23 00:40:59 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-08-23 00:40:59 -0700
commita5b1e3d02c8b356bb167dd7e4b6ab54edf271e7b (patch)
tree12e4d0f016fd1fe85e71fe76267673bb04a63ce5 /src/genbuiltin
parentd015dc8986f8548653160bc9ee6c8fef126dd8e8 (diff)
downloadbluez-a5b1e3d02c8b356bb167dd7e4b6ab54edf271e7b.tar.gz
Switch to a full non-recursive build system
Diffstat (limited to 'src/genbuiltin')
-rwxr-xr-xsrc/genbuiltin17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/genbuiltin b/src/genbuiltin
new file mode 100755
index 00000000..8b6f0476
--- /dev/null
+++ b/src/genbuiltin
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+for i in $*
+do
+ echo "extern struct bluetooth_plugin_desc __bluetooth_builtin_$i;"
+done
+
+echo
+echo "static struct bluetooth_plugin_desc *__bluetooth_builtin[] = {"
+
+for i in $*
+do
+ echo " &__bluetooth_builtin_$i,"
+done
+
+echo " NULL"
+echo "};"