Re: [Openocd-development] libswd drivers question

2011-07-22 Thread Tomek CEDRO
On Thu, Jul 14, 2011 at 12:58 PM, Tomek CEDRO tomek.ce...@gmail.com wrote: (..) When I removed template drivers from libswd source tree so it can be linked with drivers already compiled and provided by openocd, there are some unresolved dependencies in libswd.la submodule. This is the only

[Openocd-development] libswd drivers question

2011-07-14 Thread Tomek CEDRO
Hello! Sorry for cross-posting but this somehow touches both applications. LibSWD is a standalone library that can generate SWD operations, then flush them into device driver. This driver (some function set) is application specific, so it cannot be compiled in into libswd, but rather linked with

Re: [Openocd-development] libswd drivers question

2011-07-14 Thread freddie_chopin
You can have weak symbols with stub implementations inside your library. Weak attribute is a GCC extension. Anyway - having just extern before such function names should be enough... Take a look at how it's done in OpenOCD - some modules are compiled into libraries, than one huge library is

Re: [Openocd-development] libswd drivers question

2011-07-14 Thread freddie_chopin
W dniu 2011-07-14 15:24:48 użytkownik Tomek CEDRO tomek.ce...@gmail.com napisał: Hello Freddie! I am doing exactly the same way, but at final link operation libswd cannot find extern functions provided by openocd library. Maybe there's something wrong with compilation settings? Anyway I

Re: [Openocd-development] libswd drivers question

2011-07-14 Thread Jie Zhang
On Thu, Jul 14, 2011 at 8:58 AM, Tomek CEDRO tomek.ce...@gmail.com wrote: Hello! Sorry for cross-posting but this somehow touches both applications. LibSWD is a standalone library that can generate SWD operations, then flush them into device driver. This driver (some function set) is