aboutsummaryrefslogtreecommitdiffstats
path: root/doc
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 /doc
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
Diffstat (limited to 'doc')
-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
6 files changed, 47 insertions, 0 deletions
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