laforge
/
openbts-osmo
Archived
1
0
Fork 0

build: insert autofoo for usrp transceiver and options

Usage:

  ./configure --with-usrp1

  Enable non-UHD USRP1 support through the gnuradio-based
  driver. Requires gnuradio (libusrp) to be installed.

 ./configure --with-resample

  Enable host-based 400ksps to 270.833ksps resampling.
  Only supported for UHD devices. If not enabled, the GSM
  sample rate is requested directly from the device.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-10-19 20:35:34 -04:00
parent ba7a18d80d
commit 44fe0df73f
2 changed files with 16 additions and 0 deletions

View File

@ -46,9 +46,15 @@ COMMON_SOURCES = \
sigProcLib.cpp \
Transceiver.cpp
if RESAMPLE
libtransceiver_la_SOURCES = \
$(COMMON_SOURCES) \
radioIOResamp.cpp
else
libtransceiver_la_SOURCES = \
$(COMMON_SOURCES) \
radioIO.cpp
endif
noinst_PROGRAMS = \
USRPping \

View File

@ -62,6 +62,11 @@ AC_ARG_WITH(usrp1, [
[enable USRP1 gnuradio based transceiver])
])
AC_ARG_WITH(resamp, [
AS_HELP_STRING([--with-resamp],
[enable resampling for non-52MHz devices])
])
AS_IF([test "x$with_usrp1" = "xyes"], [
# Defines USRP_CFLAGS, USRP_INCLUDEDIR, and USRP_LIBS
PKG_CHECK_MODULES(USRP, usrp > 3.1)
@ -80,6 +85,11 @@ AS_IF([test "x$with_usrp1" = "xyes"], [
AC_DEFINE(USE_UHD, 1, Define to 1 if using UHD)
])
AS_IF([test "x$with_resamp" = "xyes"], [
AC_DEFINE(RESAMPLE, 1, Define to 1 for resampling)
])
AM_CONDITIONAL(RESAMPLE, [test "x$with_resamp" = "xyes"])
AM_CONDITIONAL(UHD, [test "x$with_usrp1" != "xyes"])
# Defines OSIP_CFLAGS, OSIP_INCLUDEDIR, and OSIP_LIBS