From a8e64a434977b0d85e4d4228ee492598e5d9ae76 Mon Sep 17 00:00:00 2001 From: Michael Iedema Date: Wed, 3 Sep 2014 02:48:10 +0200 Subject: [PATCH] allow extra configure flags to be read from the shell so a single package defnition can be used for all radios --- Transceiver52M/Makefile.am | 13 +++++++++++++ debian/rules | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am index b89a626..dbb8a65 100644 --- a/Transceiver52M/Makefile.am +++ b/Transceiver52M/Makefile.am @@ -118,9 +118,22 @@ else endif endif +#uhd wins +if UHD install: transceiver @mkdir -p "$(DESTDIR)/OpenBTS/" install transceiver "$(DESTDIR)/OpenBTS/" +else +if USRP1 +install: transceiver + @mkdir -p "$(DESTDIR)/usr/local/share/usrp/rev4/" + install std_inband.rbf "$(DESTDIR)/usr/local/share/usrp/rev4/" + @mkdir -p "$(DESTDIR)/OpenBTS/" + install transceiver "$(DESTDIR)/OpenBTS/" +else +#we should never be here, as one of the above mustbe defined for us to build +endif +endif MOSTLYCLEANFILES += diff --git a/debian/rules b/debian/rules index c3c9be3..f9e22e4 100755 --- a/debian/rules +++ b/debian/rules @@ -27,7 +27,7 @@ configure-stamp: configure dh_testdir # Add here commands to configure the package. autoreconf -i - ./configure $(confflags) + ./configure $(confflags) $(EXTRA_CONFIGURE_FLAGS) touch configure-stamp #Architecture