[SR-Dev] compile only a given list of modules

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Apr 20 16:06:20 CEST 2009

On Apr 20, 2009 at 16:49, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
>  > or just edit directly modules.lst.
> this is what i have tried, but cannot figure out, how include_modules
> work.  it does not seem to have any effect:

include_modules just adds some extra module to the compilation
> modules_dirs:=modules modules_s modules_k
> cfg_group_include=
> include_modules= enum dialplan
> static_modules= 
> skip_modules= 
> exclude_modules=

That would make  all the default modules + enum and dialplan.

make modules-cfg  include_modules="enum dialplan" # equiv. to your edit
                                                  # above
make print-modules

The following modules will be made
modules_k/: enum dialplan acc alias_db auth auth_db auth_diameter
benchmark cfgutils db_text dialplan dispatcher diversion domain
domainpolicy enum exec group h350 htable imc kex lcr maxfwd mediaproxy
mi_datagram mi_fifo misc_radius msilo nathelper path pdt peering perl
permissions pike presence presence_dialoginfo presence_mwi presence_xml
pua pua_bla pua_dialoginfo pua_mi pua_usrloc pua_xmpp pv qos ratelimit
regex registrar rr rtimer sanity siputils sl sms speeddial sqlops sst
statistics textops uac uri_db userblacklist usrloc utils xcap_client

(make print-modules is very usefull to see what will be done)

If what you want is to compile only enum and dialplan:
make modules-cfg modules="modules/enum modules/dialplan" modules_s="" modules_k=""

make print-modules
config.mak loaded
Makefile.defs defs skipped
The following modules were chosen to be included:
The following modules will be excluded: cpl mangler postgres jabber
mysql cpl-c auth_radius uri_radius avp_radius acc_radius dialog pa rls
presence_b2b xcap xmlrpc osp tls oracle unixsock dbg print_lib
auth_identity ldap db_berkeley db_mysql db_postgres db_oracle
db_unixodbc memcached mi_xmlrpc nat_traversal perlvdb purple seas
siptrace snmpstats uac_redirect xmpp carrierroute avpops bdb dbtext
iptrtpproxy pa rls CVS avpops bdb dbtext iptrtpproxy pa rls CVS
The following modules will be made
modules/: enum dialplan

> jh at taimen:/usr/src/orig/sip-router$ make modules
> config.mak loaded
> Makefile.defs defs skipped
> Makefile:350: "make TLS option is obsoleted, try TLS_HOOKS or CORE_TLS"
> config.mak included
> make[1]: Entering directory `/usr/src/orig/sip-router/modules/auth_radius'
> ...

Note also that:
make modules  - makes common modules (in modules/)
make modules_s - makes ser modules (modules_s/)
make modules_k - makes k modules (modules_k/)
make every-module - makes all of them (modules, modules_s & modules_k).


More information about the sr-dev mailing list