diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/Makefile.am | 13 | ||||
-rw-r--r-- | src/utils/bs11_config.c | 3 | ||||
-rw-r--r-- | src/utils/stubs.c | 36 |
3 files changed, 46 insertions, 6 deletions
diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am index 6e21ccc78..543344b53 100644 --- a/src/utils/Makefile.am +++ b/src/utils/Makefile.am @@ -46,15 +46,18 @@ endif bs11_config_SOURCES = \ bs11_config.c \ + stubs.c \ $(NULL) bs11_config_LDADD = \ - $(top_builddir)/src/libbsc/libbsc.a \ + $(top_builddir)/src/osmo-bsc/abis_nm.o \ + $(top_builddir)/src/osmo-bsc/bts_siemens_bs11.o \ + $(top_builddir)/src/osmo-bsc/e1_config.o \ + $(top_builddir)/src/osmo-bsc/gsm_data.o \ + $(top_builddir)/src/osmo-bsc/net_init.o \ $(LIBOSMOCORE_LIBS) \ $(LIBOSMOGSM_LIBS) \ $(LIBOSMOABIS_LIBS) \ - $(LIBOSMOSIGTRAN_LIBS) \ - $(LIBOSMOMGCPCLIENT_LIBS) \ $(NULL) isdnsync_SOURCES = \ @@ -114,12 +117,14 @@ osmo_meas_udp2db_CFLAGS = \ meas_json_SOURCES = \ meas_json.c \ + stubs.c \ $(NULL) meas_json_LDADD = \ - $(top_builddir)/src/libbsc/libbsc.a \ + $(top_builddir)/src/osmo-bsc/gsm_data.o \ $(LIBOSMOCORE_LIBS) \ $(LIBOSMOGSM_LIBS) \ + $(LIBOSMOABIS_LIBS) \ $(NULL) meas_json_CFLAGS = \ diff --git a/src/utils/bs11_config.c b/src/utils/bs11_config.c index 8d4de0152..ae307c796 100644 --- a/src/utils/bs11_config.c +++ b/src/utils/bs11_config.c @@ -32,7 +32,6 @@ #include <sys/stat.h> -#include <osmocom/bsc/common_bsc.h> #include <osmocom/bsc/abis_nm.h> #include <osmocom/core/msgb.h> #include <osmocom/core/utils.h> @@ -915,7 +914,7 @@ int main(int argc, char **argv) handle_options(argc, argv); bts_model_bs11_init(); - gsmnet = bsc_network_init(tall_bs11cfg_ctx); + gsmnet = gsm_network_init(tall_bs11cfg_ctx); if (!gsmnet) { fprintf(stderr, "Unable to allocate gsm network\n"); exit(1); diff --git a/src/utils/stubs.c b/src/utils/stubs.c new file mode 100644 index 000000000..624797fde --- /dev/null +++ b/src/utils/stubs.c @@ -0,0 +1,36 @@ +/* Stubs required for linking */ + +/* (C) 2018 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> + * + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <stdbool.h> +struct gsm_bts_trx_ts; +struct msgb; + +bool on_gsm_ts_init(struct gsm_bts_trx_ts *ts) +{ + /* No TS init required here. */ + return true; +} + +int abis_rsl_rcvmsg(struct msgb *msg) +{ + /* No RSL handling here */ + return 0; +} |