aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-19 11:14:45 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-19 11:31:45 +0200
commitc7756e73b73f9e7c64a1391f13e65f4f9d227bf4 (patch)
tree2fe8dcb0c6489a9d5989599e9056db4855e6c871
parent7ed686b22358dab9d7e83179a71b86d4bcbf90f7 (diff)
debian: Add cfg file examples for osmo-trx-{lms,uhd}
Sort cfg files according to their osmo-trx binary. Install them during make install. Add the installed cfg files to related debian packages. Change-Id: I905cdac30b441e4df0a3f5c0924d1637b9f67b90
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac2
-rw-r--r--debian/osmo-trx-lms.install1
-rw-r--r--debian/osmo-trx-uhd.install3
-rw-r--r--doc/Makefile.am3
-rw-r--r--doc/examples/Makefile.am22
-rw-r--r--doc/examples/osmo-trx-lms/osmo-trx-limesdr.cfg (renamed from doc/examples/osmo-trx-limesdr.cfg)0
-rw-r--r--doc/examples/osmo-trx-uhd/osmo-trx-limesdr.cfg22
-rw-r--r--doc/examples/osmo-trx-uhd/osmo-trx-umtrx.cfg (renamed from doc/examples/osmo-trx-umtrx.cfg)0
-rw-r--r--doc/examples/osmo-trx-uhd/osmo-trx-usrp_b200.cfg (renamed from doc/examples/osmo-trx-usrp_b200.cfg)0
10 files changed, 54 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 71f7b91..8ab73a6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,7 @@ AM_CXXFLAGS = -Wall -pthread
# Order must be preserved
SUBDIRS = \
+ doc \
CommonLibs \
GSM \
Transceiver52M \
diff --git a/configure.ac b/configure.ac
index aae151b..974a611 100644
--- a/configure.ac
+++ b/configure.ac
@@ -225,6 +225,8 @@ AC_CONFIG_FILES([\
tests/Makefile \
tests/CommonLibs/Makefile \
tests/Transceiver52M/Makefile \
+ doc/Makefile \
+ doc/examples/Makefile \
])
AC_OUTPUT
diff --git a/debian/osmo-trx-lms.install b/debian/osmo-trx-lms.install
index 5937edb..e8bb867 100644
--- a/debian/osmo-trx-lms.install
+++ b/debian/osmo-trx-lms.install
@@ -1 +1,2 @@
/usr/bin/osmo-trx-lms
+/usr/share/doc/osmo-trx-lms/examples/osmo-trx-limesdr.cfg /usr/share/doc/osmo-trx-lms/examples
diff --git a/debian/osmo-trx-uhd.install b/debian/osmo-trx-uhd.install
index 0005b76..2db0142 100644
--- a/debian/osmo-trx-uhd.install
+++ b/debian/osmo-trx-uhd.install
@@ -1 +1,4 @@
/usr/bin/osmo-trx-uhd
+/usr/share/doc/osmo-trx-uhd/examples/osmo-trx-usrp_b200.cfg /usr/share/doc/osmo-trx-uhd/examples
+/usr/share/doc/osmo-trx-uhd/examples/osmo-trx-limesdr.cfg /usr/share/doc/osmo-trx-uhd/examples
+/usr/share/doc/osmo-trx-uhd/examples/osmo-trx-umtrx.cfg /usr/share/doc/osmo-trx-uhd/examples
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..1d42b0a
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,3 @@
+SUBDIRS = \
+ examples \
+ $(NULL)
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
new file mode 100644
index 0000000..530c3fa
--- /dev/null
+++ b/doc/examples/Makefile.am
@@ -0,0 +1,22 @@
+CFG_FILES = find $(srcdir) -name '*.cfg*' | sed -e 's,^$(srcdir),,'
+
+dist-hook:
+ for f in $$($(CFG_FILES)); do \
+ j="$(distdir)/$$f" && \
+ mkdir -p "$$(dirname $$j)" && \
+ $(INSTALL_DATA) $(srcdir)/$$f $$j; \
+ done
+
+install-data-hook:
+ for f in $$($(CFG_FILES)); do \
+ j="$(DESTDIR)$(docdir)/examples/$$f" && \
+ mkdir -p "$$(dirname $$j)" && \
+ $(INSTALL_DATA) $(srcdir)/$$f $$j; \
+ done
+
+uninstall-hook:
+ @$(PRE_UNINSTALL)
+ for f in $$($(CFG_FILES)); do \
+ j="$(DESTDIR)$(docdir)/examples/$$f" && \
+ $(RM) $$j; \
+ done
diff --git a/doc/examples/osmo-trx-limesdr.cfg b/doc/examples/osmo-trx-lms/osmo-trx-limesdr.cfg
index 7f622b0..7f622b0 100644
--- a/doc/examples/osmo-trx-limesdr.cfg
+++ b/doc/examples/osmo-trx-lms/osmo-trx-limesdr.cfg
diff --git a/doc/examples/osmo-trx-uhd/osmo-trx-limesdr.cfg b/doc/examples/osmo-trx-uhd/osmo-trx-limesdr.cfg
new file mode 100644
index 0000000..7f622b0
--- /dev/null
+++ b/doc/examples/osmo-trx-uhd/osmo-trx-limesdr.cfg
@@ -0,0 +1,22 @@
+log stderr
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging timestamp 1
+ logging print file basename
+ logging level all info
+!
+line vty
+ no login
+!
+trx
+ bind-ip 127.0.0.1
+ remote-ip 127.0.0.1
+ base-port 5700
+ egprs disable
+ tx-sps 4
+ rx-sps 4
+ rt-prio 18
+ chan 0
+ tx-path BAND1
+ rx-path LNAW
diff --git a/doc/examples/osmo-trx-umtrx.cfg b/doc/examples/osmo-trx-uhd/osmo-trx-umtrx.cfg
index 9c80933..9c80933 100644
--- a/doc/examples/osmo-trx-umtrx.cfg
+++ b/doc/examples/osmo-trx-uhd/osmo-trx-umtrx.cfg
diff --git a/doc/examples/osmo-trx-usrp_b200.cfg b/doc/examples/osmo-trx-uhd/osmo-trx-usrp_b200.cfg
index 53fa24e..53fa24e 100644
--- a/doc/examples/osmo-trx-usrp_b200.cfg
+++ b/doc/examples/osmo-trx-uhd/osmo-trx-usrp_b200.cfg