build: Add support for LimeSuite device backend
Change-Id: I239e1b37263a62b374d84974c9347e3654072e87
This commit is contained in:
parent
c7a0bf1ffc
commit
1f50fedb5f
|
@ -99,3 +99,13 @@ osmo_trx_usrp1_LDADD = \
|
|||
$(USRP_LIBS)
|
||||
osmo_trx_usrp1_CPPFLAGS = $(AM_CPPFLAGS) $(USRP_CFLAGS)
|
||||
endif
|
||||
|
||||
if DEVICE_LMS
|
||||
bin_PROGRAMS += osmo-trx-lms
|
||||
osmo_trx_lms_SOURCES = osmo-trx.cpp
|
||||
osmo_trx_lms_LDADD = \
|
||||
$(COMMON_LDADD) \
|
||||
$(LMS_LIBS) \
|
||||
$(builddir)/device/lms/libdevice.la
|
||||
osmo_trx_lms_CPPFLAGS = $(AM_CPPFLAGS) $(LMS_CFLAGS)
|
||||
endif
|
||||
|
|
|
@ -11,3 +11,7 @@ endif
|
|||
if DEVICE_UHD
|
||||
SUBDIRS += uhd
|
||||
endif
|
||||
|
||||
if DEVICE_LMS
|
||||
SUBDIRS += lms
|
||||
endif
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
include $(top_srcdir)/Makefile.common
|
||||
|
||||
AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/..
|
||||
AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LMS_CFLAGS)
|
||||
|
||||
noinst_HEADERS = LMSDevice.h
|
||||
|
||||
noinst_LTLIBRARIES = libdevice.la
|
||||
|
||||
libdevice_la_SOURCES = LMSDevice.cpp
|
11
configure.ac
11
configure.ac
|
@ -100,6 +100,11 @@ AC_ARG_WITH(usrp1, [
|
|||
[enable USRP1 gnuradio based transceiver])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(lms, [
|
||||
AS_HELP_STRING([--with-lms],
|
||||
[enable LimeSuite gnuradio based transceiver])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(singledb, [
|
||||
AS_HELP_STRING([--with-singledb],
|
||||
[enable single daughterboard use on USRP1])
|
||||
|
@ -133,6 +138,10 @@ AS_IF([test "x$with_usrp1" = "xyes"], [
|
|||
PKG_CHECK_MODULES(USRP, usrp >= 3.3)
|
||||
])
|
||||
|
||||
AS_IF([test "x$with_lms" = "xyes"], [
|
||||
PKG_CHECK_MODULES(LMS, LimeSuite)
|
||||
])
|
||||
|
||||
AS_IF([test "x$with_uhd" != "xno"],[
|
||||
PKG_CHECK_MODULES(UHD, uhd >= 003.011,
|
||||
[AC_DEFINE(USE_UHD_3_11, 1, UHD version 3.11.0 or higher)],
|
||||
|
@ -184,6 +193,7 @@ CHECK_BUILTIN_SUPPORT([__builtin_cpu_supports],
|
|||
|
||||
AM_CONDITIONAL(DEVICE_UHD, [test "x$with_uhd" != "xno"])
|
||||
AM_CONDITIONAL(DEVICE_USRP1, [test "x$with_usrp1" = "xyes"])
|
||||
AM_CONDITIONAL(DEVICE_LMS, [test "x$with_lms" = "xyes"])
|
||||
AM_CONDITIONAL(ARCH_ARM, [test "x$with_neon" = "xyes" || test "x$with_neon_vfpv4" = "xyes"])
|
||||
AM_CONDITIONAL(ARCH_ARM_A15, [test "x$with_neon_vfpv4" = "xyes"])
|
||||
|
||||
|
@ -211,6 +221,7 @@ AC_CONFIG_FILES([\
|
|||
Transceiver52M/device/Makefile \
|
||||
Transceiver52M/device/uhd/Makefile \
|
||||
Transceiver52M/device/usrp1/Makefile \
|
||||
Transceiver52M/device/lms/Makefile \
|
||||
tests/Makefile \
|
||||
tests/CommonLibs/Makefile \
|
||||
tests/Transceiver52M/Makefile \
|
||||
|
|
Loading…
Reference in New Issue