summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-07-05 03:07:33 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-07-10 19:45:22 +0700
commit70376615890726b7d9ea9a6e5361a74860ac02da (patch)
tree3e9602cae1799114bc7d3d07a6280487055b8acc
parent158b00e5e7395bcc2abdfc6f7c09d3263c7f94ad (diff)
trxcon: separate the scheduler into libl1sched.lafixeria/libl1sched
-rw-r--r--src/host/trxcon/.gitignore7
-rw-r--r--src/host/trxcon/Makefile.am2
-rw-r--r--src/host/trxcon/configure.ac2
-rw-r--r--src/host/trxcon/m4/.gitkeep0
-rw-r--r--src/host/trxcon/src/Makefile.am31
5 files changed, 31 insertions, 11 deletions
diff --git a/src/host/trxcon/.gitignore b/src/host/trxcon/.gitignore
index 1cc7ffbc..b5c3a99d 100644
--- a/src/host/trxcon/.gitignore
+++ b/src/host/trxcon/.gitignore
@@ -9,6 +9,11 @@ install-sh
missing
compile
+# libtool by-products
+ltmain.sh
+libtool
+m4/*.m4
+
# configure by-products
.deps/
Makefile
@@ -18,7 +23,9 @@ version.h
# build by-products
*.o
+*.lo
*.a
+*.la
/src/trxcon
diff --git a/src/host/trxcon/Makefile.am b/src/host/trxcon/Makefile.am
index 276eb06f..5b1002c8 100644
--- a/src/host/trxcon/Makefile.am
+++ b/src/host/trxcon/Makefile.am
@@ -5,6 +5,8 @@ SUBDIRS = \
src \
$(NULL)
+ACLOCAL_AMFLAGS = -I m4
+
BUILT_SOURCES = \
$(top_srcdir)/.version \
$(NULL)
diff --git a/src/host/trxcon/configure.ac b/src/host/trxcon/configure.ac
index 68bb3bdc..9e0a198b 100644
--- a/src/host/trxcon/configure.ac
+++ b/src/host/trxcon/configure.ac
@@ -1,6 +1,7 @@
dnl Process this file with autoconf to produce a configure script
AC_INIT([trxcon], [0.0.0])
AM_INIT_AUTOMAKE
+LT_INIT
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -31,6 +32,7 @@ fi
dnl Checks for typedefs, structures and compiler characteristics
+AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_FILES([include/Makefile
include/osmocom/Makefile
include/osmocom/bb/Makefile
diff --git a/src/host/trxcon/m4/.gitkeep b/src/host/trxcon/m4/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/host/trxcon/m4/.gitkeep
diff --git a/src/host/trxcon/src/Makefile.am b/src/host/trxcon/src/Makefile.am
index bc2aa91b..c97265b8 100644
--- a/src/host/trxcon/src/Makefile.am
+++ b/src/host/trxcon/src/Makefile.am
@@ -10,18 +10,10 @@ AM_CFLAGS = \
$(LIBOSMOGSM_CFLAGS) \
$(NULL)
-bin_PROGRAMS = trxcon
-trxcon_SOURCES = \
- l1ctl_link.c \
- l1ctl.c \
- trx_if.c \
- logging.c \
- trxcon.c \
- $(NULL)
+noinst_LTLIBRARIES = libl1sched.la
-# Scheduler
-trxcon_SOURCES += \
+libl1sched_la_SOURCES = \
sched_lchan_common.c \
sched_lchan_pdtch.c \
sched_lchan_desc.c \
@@ -36,8 +28,25 @@ trxcon_SOURCES += \
sched_trx.c \
$(NULL)
-trxcon_LDADD = \
+libl1sched_la_LIBADD = \
$(LIBOSMOCORE_LIBS) \
$(LIBOSMOCODING_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(NULL)
+
+
+bin_PROGRAMS = trxcon
+
+trxcon_SOURCES = \
+ l1ctl_link.c \
+ l1ctl.c \
+ trx_if.c \
+ logging.c \
+ trxcon.c \
+ $(NULL)
+
+trxcon_LDADD = \
+ libl1sched.la \
+ $(LIBOSMOCORE_LIBS) \
+ $(LIBOSMOGSM_LIBS) \
+ $(NULL)