[RFC] machine/vendor plugins

pHilipp Zabel philipp.zabel at gmail.com
Mon Apr 2 13:48:06 CEST 2007

On 4/1/07, Philipp Zabel <philipp.zabel at gmail.com> wrote:
> Hi,
> I took a quick stab at introducing machine plugins. The attached patch
> does not work since I have pushed the vendor plugins out into shared
> libraries and they can't call back into the main binary (gsmd_simplecmd
> doesn't resolve).

This is fixed. By using the --export-dynamic ld switch for gsmd, the
plugins loaded by dlopen can call back into the main binary.

> The basic idea was to do machine detection based on the /proc/cpuinfo
> Hardware field or use the generic machine plugin if that fails.
> If a machine was found, we load that machine plugin and we know which
> vendor plugin to load. Otherwise gsmd could just load all available
> vendor plugins and let them check AT+CGMI/CGMM in their detect routine -
> the current code doesn't do that part yet.
> Any ideas how to proceed?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin.patch
Type: text/x-patch
Size: 24726 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/gsmd-devel/attachments/20070402/63a34af5/plugin-0001.bin

More information about the gsmd-devel mailing list