aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/Makefile.am
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-05-27 01:26:31 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-06-07 19:09:06 +0200
commit958f259f9592e3729a2ebf4084d8f37bdba6bf3c (patch)
tree3ca9a7de640b28ef6f40578df4c036440f8a4cb1 /src/osmo-bsc/Makefile.am
parent8f2aaf47c910a984de370774e6910ea5d453983e (diff)
dissolve libbsc: move all to src/osmo-bsc, link .o files
Move all of libbsc/ into osmo-bsc/, and separate/move some implementations to allow linking from utils/* and ipaccess/* without pulling in unccessary dependencies. Some utilities use gsm_network and gsm_bts structs, which already include data structures for fairly advanced uses. Move initialization that only osmo-bsc needs into new bsc_network_init() and bsc_bts_alloc_register() functions, so that the leaner tools can use the old gsm_* versions without the need to link everything (e.g. handover and lchan alloc code). In some instances, there need to be stubs if to cut off linking "just before the RSL level" and prevent dependencies from creeping in. - abis_rsl_rcvmsg(): the only program currently interpreting RSL messages is osmo-bsc, the utils are merely concerned with OML, if at all. - paging_flush_bts(): ip.access nanobts models call this when the RSL link is dropped. Only osmo-bsc actually needs to do anything there. - on_gsm_ts_init(): the mechanism to trigger timeslot initialization is related to OML, while this action to take on init would pull in RSL dependencies. utils/ and ipaccess/ each have a stubs.c file to implement these stubs. Tests implement stubs inline where required. From src/utils/, src/ipaccess/ and tests/*/, link in .o files from osmo-bsc/. In order for this to work, the osmo-bsc subdir must be built before the other source trees. (An alternative would be to include the .c files as sources, but that would re-compile them in every source tree. Not a large burden really, but unless linking .o files gives problems, let's have the quicker build.) Minor obvious cleanups creep in with this patch, I will not bother to name them individually now unless code review asks me to. Rationale: 1) libbsc has been separate to use it for osmo-nitb and osmo-bsc in the old openbsc.git. This is no longer required, and spreading over libbsc and osmo-bsc is distracting. 2) Recently, ridiculous linking requirements have made adding new functions cumbersome, because libbsc has started depending on osmo-bsc/*.c implementations: on gscon FSM and bssap functions. For example, neither bs11_config nor ipaccess-config nor bts_test need handover_cfg or BSSMAP message composition. It makes no sense to link the entire osmo-bsc to it, nor do we want to keep adding stubs to each linking realm. Change-Id: I36a586726f5818121abe54d25654819fc451d3bf
Diffstat (limited to 'src/osmo-bsc/Makefile.am')
-rw-r--r--src/osmo-bsc/Makefile.am58
1 files changed, 51 insertions, 7 deletions
diff --git a/src/osmo-bsc/Makefile.am b/src/osmo-bsc/Makefile.am
index cc96743..a459a92 100644
--- a/src/osmo-bsc/Makefile.am
+++ b/src/osmo-bsc/Makefile.am
@@ -26,21 +26,65 @@ bin_PROGRAMS = \
$(NULL)
osmo_bsc_SOURCES = \
- osmo_bsc_main.c \
- osmo_bsc_vty.c \
+ a_reset.c \
+ abis_nm.c \
+ abis_nm_vty.c \
+ abis_om2000.c \
+ abis_om2000_vty.c \
+ abis_rsl.c \
+ acc_ramp.c \
+ arfcn_range_encode.c \
+ bsc_api.c \
+ bsc_ctrl_commands.c \
+ bsc_ctrl_lookup.c \
+ bsc_dyn_ts.c \
+ bsc_init.c \
+ bsc_rf_ctrl.c \
+ bsc_rll.c \
+ bsc_subscr_conn_fsm.c \
+ bsc_subscriber.c \
+ bsc_vty.c \
+ bts_ericsson_rbs2000.c \
+ bts_init.c \
+ bts_ipaccess_nanobts.c \
+ bts_ipaccess_nanobts_omlattr.c \
+ bts_nokia_site.c \
+ bts_siemens_bs11.c \
+ bts_sysmobts.c \
+ bts_unknown.c \
+ chan_alloc.c \
+ e1_config.c \
+ gsm_04_08_utils.c \
+ gsm_04_80_utils.c \
+ gsm_data.c \
+ handover_cfg.c \
+ handover_decision.c \
+ handover_decision_2.c \
+ handover_logic.c \
+ handover_vty.c \
+ meas_feed.c \
+ meas_rep.c \
+ net_init.c \
osmo_bsc_api.c \
+ osmo_bsc_audio.c \
+ osmo_bsc_bssap.c \
+ osmo_bsc_ctrl.c \
+ osmo_bsc_filter.c \
osmo_bsc_grace.c \
+ osmo_bsc_lcls.c \
+ osmo_bsc_main.c \
osmo_bsc_msc.c \
osmo_bsc_sigtran.c \
- osmo_bsc_filter.c \
- osmo_bsc_bssap.c \
- osmo_bsc_audio.c \
- osmo_bsc_ctrl.c \
+ osmo_bsc_vty.c \
+ paging.c \
+ pcu_sock.c \
+ penalty_timers.c \
+ rest_octets.c \
+ system_information.c \
$(NULL)
osmo_bsc_LDADD = \
$(top_builddir)/src/libfilter/libfilter.a \
- $(top_builddir)/src/libbsc/libbsc.a \
$(LIBOSMOCORE_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOVTY_LIBS) \