Tomek CEDRO wrote:
> The design was from the begining to have standalone library that can be
> included into any software (i.e. UrJTAG, OpenOCD, some firmware, and
> others), this is why it it named LibSWD...

Cool! For that libswd needs to have a stable API. I'm not saying that
the current API is unstable, I'm only saying that since OpenOCD may
be the first user of the library there's still time to adjust the
library API. Once patches to use LibSWD go into OpenOCD then it
becomes significantly more difficult to make any incompatible API
changes in the library.


> There are some new functions in openocd code that will be added
> into openocd source, the rest is done by the library.

Sure thing! Those are the commits that will go to OpenOCD gerrit.
Sounds great. Are some already there?


> At build time this library can be included staticaly into openocd
> binary to avoid dependencies, sure thing :-)

I rather had dynamic linking in mind, but it doesn't matter, the
point is that when dependencies are treated as the independent
packages that they are (true for both Jim and LibSWD) then it's easy
for every user (OpenOCD or other) to use them in the way that fits
best, be it linking statically or dynamically.


> Submodules are very very handful in development with dependencies,

Libraries are libraries.. They have API and they get installed into
the system independently of applications that use them.


> not only when you want to quickly build code from various
> repositories with one make, but also when you want to try out
> the result when dependency iss still under development :-)

IMNSHO OpenOCD needs zero submodules, not two. Please time the
library API development so that it is stable by the time patches
to use it are proposed for OpenOCD. I guess that it is actually
stable since a long time already?

I would love to look at commits to enable OpenOCD to use LibSWD!


//Peter

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to