Building System Libs for Multiple Modules

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 605
Joined: Mon May 12, 2008 10:55 am

Building System Libs for Multiple Modules

Post by SeeCwriter »

My company uses 3-differnet NB modules, 5234, NANO, and MOD5441X. We also use NB's SNMP and SSH libraries. So whenever we get a tools update, we have to rebuild the system libraries to be able to use SNMP & SSH.
Is it necessary to build the system libraries for each module type? What we do is, open a command prompt at the nburn\system directory, set the PLATFORM variable to a particular module and then do a "make clean" and "make" to rebuild. Then open a command prompt at the module's system directory, set the PLATFORM variable, and rebuild. And repeat the process for each module. It seems like it should be necessary, since the system build command line includes a setting for the CPU and module that the libraries are being built for. But using Eclipse to rebuild the system doesn't seem to do the same thing.
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: Building System Libs for Multiple Modules

Post by TomNB »

You do not need to set the platform variable for \nburn\system, as there should be a default that will be used for one of your platforms. To see what it is, type "set defplatform" at the command prompt.

Since you are changing predef.h, you do need to build the system and other libraries:
Go to \nburn\system, type "make", and "make libs" to build the release libs
Go to each of the platform system folders (eg \nburn\MOD5234\system) and type "make"

If you want debug versions, use "make debug" and "make debuglibs"

As you mention, Eclipse will do all of this for you if from the main menu you select NBEclise->Rebuild All System Files
Post Reply