summaryrefslogtreecommitdiff
path: root/src/genbuiltin
diff options
context:
space:
mode:
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 0000000..8b6f047
--- /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 "};"