diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-09-06 16:04:32 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-16 17:23:10 +0100 |
commit | b92100ad36f40d3125ff945fbd38aece873d1718 (patch) | |
tree | 3723ca47d14219f3ab78f24a3e219e0dbfaca1c4 /configure.ac | |
parent | e9f12acbeb5a369282719f8e0deecc88034a5488 (diff) |
Add support for Octasic OCTSDR-2G GSM PHY
This adds support for a new PHY to OsmoBTS, the Octasic OCTSDR-2G
PHY. This is a proprietary GSM PHY running on a familty of Octasic DSPs.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7b043a6e..8239c122 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,25 @@ AC_ARG_ENABLE(trx, AC_MSG_RESULT([$enable_trx]) AM_CONDITIONAL(ENABLE_TRX, test "x$enable_trx" = "xyes") +AC_MSG_CHECKING([whether to enable support for Octasic OCTPHY-2G]) +AC_ARG_ENABLE(octphy, + AC_HELP_STRING([--enable-octphy], + [enable code for Octasic OCTPHY-2G [default=no]]), + [enable_octphy="yes"],[enable_octphy="no"]) +AC_ARG_WITH([octsdr-2g], [AS_HELP_STRING([--with-octsdr-2g], [Location of the OCTSDR-2G API header files])], + [octsdr2g_incdir="$withval"],[octsdr2g_incdir="`cd $srcdir; pwd`/src/osmo-bts-octphy/"]) +AC_SUBST([OCTSDR2G_INCDIR], $octsdr2g_incdir) +AC_MSG_RESULT([$enable_octphy]) +AM_CONDITIONAL(ENABLE_OCTPHY, test "x$enable_octphy" = "xyes") +if test "$enable_octphy" = "yes" ; then + oldCPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS -I$OCTSDR2G_INCDIR -I$srcdir/include $LIBOSMOCORE_CFLAGS" + AC_CHECK_HEADER([octphy/octvc1/gsm/octvc1_gsm_default.h],[], + [AC_MSG_ERROR([octphy/octvc1/gsm/octvc1_gsm_default.h can not be found in $octsdr2g_incdir])], + [#include <octphy/octvc1/gsm/octvc1_gsm_default.h>]) + CPPFLAGS=$oldCPPFLAGS +fi + # We share gsm_data.h with OpenBSC and need to be pointed to the source # directory of OpenBSC for now. AC_ARG_WITH([openbsc], @@ -83,6 +102,7 @@ AC_OUTPUT( src/common/Makefile src/osmo-bts-sysmo/Makefile src/osmo-bts-trx/Makefile + src/osmo-bts-octphy/Makefile include/Makefile include/osmo-bts/Makefile tests/Makefile |