mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-03 11:58:24 +00:00
Add OC-2G to osmo-bts build
This commit is contained in:
committed by
Omar Ramadan
parent
5d37585574
commit
a4eece738b
@@ -273,6 +273,43 @@ if test "$enable_litecell15" = "yes"; then
|
|||||||
CPPFLAGS=$oldCPPFLAGS
|
CPPFLAGS=$oldCPPFLAGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to enable NuRAN Wireless OC-2G hardware support])
|
||||||
|
AC_ARG_ENABLE(oc2g,
|
||||||
|
AC_HELP_STRING([--enable-oc2g],
|
||||||
|
[enable code for NuRAN Wireless OC-2G bts [default=no]]),
|
||||||
|
[enable_oc2g="yes"],[enable_oc2g="no"])
|
||||||
|
AC_ARG_WITH([oc2g], [AS_HELP_STRING([--with-oc2g=INCLUDE_DIR], [Location of the OC-2G API header files])],
|
||||||
|
[oc2g_incdir="$withval"],[oc2g_incdir="$incdir"])
|
||||||
|
AC_SUBST([OC2G_INCDIR], -I$oc2g_incdir)
|
||||||
|
AC_MSG_RESULT([$enable_oc2g])
|
||||||
|
AM_CONDITIONAL(ENABLE_OC2GBTS, test "x$enable_oc2g" = "xyes")
|
||||||
|
if test "$enable_oc2g" = "yes"; then
|
||||||
|
oldCPPFLAGS=$CPPFLAGS
|
||||||
|
CPPFLAGS="$CPPFLAGS $OC2G_INCDIR -I$srcdir/include"
|
||||||
|
AC_CHECK_HEADER([nrw/oc2g/oc2g.h],[],
|
||||||
|
[AC_MSG_ERROR([nrw/oc2g/oc2g.h can not be found in $oc2g_incdir])],
|
||||||
|
[#include <nrw/oc2g/oc2g.h>])
|
||||||
|
PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd)
|
||||||
|
PKG_CHECK_MODULES(LIBGPS, libgps)
|
||||||
|
CPPFLAGS=$oldCPPFLAGS
|
||||||
|
fi
|
||||||
|
|
||||||
|
# https://www.freedesktop.org/software/systemd/man/daemon.html
|
||||||
|
AC_ARG_WITH([systemdsystemunitdir],
|
||||||
|
[AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],,
|
||||||
|
[with_systemdsystemunitdir=auto])
|
||||||
|
AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"], [
|
||||||
|
def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
|
||||||
|
|
||||||
|
AS_IF([test "x$def_systemdsystemunitdir" = "x"],
|
||||||
|
[AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
|
||||||
|
[AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
|
||||||
|
with_systemdsystemunitdir=no],
|
||||||
|
[with_systemdsystemunitdir="$def_systemdsystemunitdir"])])
|
||||||
|
AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
|
||||||
|
[AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])])
|
||||||
|
AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemdsystemunitdir" != "xno"])
|
||||||
|
|
||||||
AC_MSG_RESULT([CFLAGS="$CFLAGS"])
|
AC_MSG_RESULT([CFLAGS="$CFLAGS"])
|
||||||
AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"])
|
AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"])
|
||||||
|
|
||||||
@@ -285,6 +322,7 @@ AC_OUTPUT(
|
|||||||
src/osmo-bts-omldummy/Makefile
|
src/osmo-bts-omldummy/Makefile
|
||||||
src/osmo-bts-sysmo/Makefile
|
src/osmo-bts-sysmo/Makefile
|
||||||
src/osmo-bts-litecell15/Makefile
|
src/osmo-bts-litecell15/Makefile
|
||||||
|
src/osmo-bts-oc2g/Makefile
|
||||||
src/osmo-bts-trx/Makefile
|
src/osmo-bts-trx/Makefile
|
||||||
src/osmo-bts-octphy/Makefile
|
src/osmo-bts-octphy/Makefile
|
||||||
include/Makefile
|
include/Makefile
|
||||||
|
|||||||
@@ -275,6 +275,8 @@ struct gsm_lchan {
|
|||||||
/* indicates if DTXd was active during DL measurement
|
/* indicates if DTXd was active during DL measurement
|
||||||
period */
|
period */
|
||||||
bool dl_active;
|
bool dl_active;
|
||||||
|
/* last UL SPEECH resume flag */
|
||||||
|
bool is_speech_resume;
|
||||||
} dtx;
|
} dtx;
|
||||||
uint8_t last_cmr;
|
uint8_t last_cmr;
|
||||||
uint32_t last_fn;
|
uint32_t last_fn;
|
||||||
@@ -418,6 +420,7 @@ struct gsm_bts_trx {
|
|||||||
enum gsm_bts_type_variant {
|
enum gsm_bts_type_variant {
|
||||||
BTS_UNKNOWN,
|
BTS_UNKNOWN,
|
||||||
BTS_OSMO_LITECELL15,
|
BTS_OSMO_LITECELL15,
|
||||||
|
BTS_OSMO_OC2G,
|
||||||
BTS_OSMO_OCTPHY,
|
BTS_OSMO_OCTPHY,
|
||||||
BTS_OSMO_SYSMO,
|
BTS_OSMO_SYSMO,
|
||||||
BTS_OSMO_TRX,
|
BTS_OSMO_TRX,
|
||||||
|
|||||||
@@ -134,6 +134,20 @@ struct phy_instance {
|
|||||||
uint8_t tx_pwr_adj_mode; /* 0: no auto adjust power, 1: auto adjust power using RMS detector */
|
uint8_t tx_pwr_adj_mode; /* 0: no auto adjust power, 1: auto adjust power using RMS detector */
|
||||||
uint8_t tx_pwr_red_8psk; /* 8-PSK maximum Tx power reduction level in dB */
|
uint8_t tx_pwr_red_8psk; /* 8-PSK maximum Tx power reduction level in dB */
|
||||||
} lc15;
|
} lc15;
|
||||||
|
struct {
|
||||||
|
/* configuration */
|
||||||
|
uint32_t dsp_trace_f;
|
||||||
|
char *calib_path;
|
||||||
|
int minTxPower;
|
||||||
|
int maxTxPower;
|
||||||
|
struct oc2gl1_hdl *hdl;
|
||||||
|
uint8_t max_cell_size; /* 0:166 qbits*/
|
||||||
|
uint8_t pedestal_mode; /* 0: unused TS is OFF, 1: unused TS is in minimum Tx power */
|
||||||
|
uint8_t dsp_alive_period; /* DSP alive timer period */
|
||||||
|
uint8_t tx_pwr_adj_mode; /* 0: no auto adjust power, 1: auto adjust power using RMS detector */
|
||||||
|
uint8_t tx_pwr_red_8psk; /* 8-PSK maximum Tx power reduction level in dB */
|
||||||
|
uint8_t tx_c0_idle_pwr_red; /* C0 idle slot Tx power reduction level in dB */
|
||||||
|
} oc2g;
|
||||||
} u;
|
} u;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,8 @@ endif
|
|||||||
if ENABLE_LC15BTS
|
if ENABLE_LC15BTS
|
||||||
SUBDIRS += osmo-bts-litecell15
|
SUBDIRS += osmo-bts-litecell15
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if ENABLE_OC2GBTS
|
||||||
|
SUBDIRS += osmo-bts-oc2g
|
||||||
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ const char *btsatttr2str(enum bts_attribute v)
|
|||||||
const struct value_string osmo_bts_variant_names[_NUM_BTS_VARIANT + 1] = {
|
const struct value_string osmo_bts_variant_names[_NUM_BTS_VARIANT + 1] = {
|
||||||
{ BTS_UNKNOWN, "unknown" },
|
{ BTS_UNKNOWN, "unknown" },
|
||||||
{ BTS_OSMO_LITECELL15, "osmo-bts-lc15" },
|
{ BTS_OSMO_LITECELL15, "osmo-bts-lc15" },
|
||||||
|
{ BTS_OSMO_OC2G, "osmo-bts-oc2g" },
|
||||||
{ BTS_OSMO_OCTPHY, "osmo-bts-octphy" },
|
{ BTS_OSMO_OCTPHY, "osmo-bts-octphy" },
|
||||||
{ BTS_OSMO_SYSMO, "osmo-bts-sysmo" },
|
{ BTS_OSMO_SYSMO, "osmo-bts-sysmo" },
|
||||||
{ BTS_OSMO_TRX, "omso-bts-trx" },
|
{ BTS_OSMO_TRX, "omso-bts-trx" },
|
||||||
|
|||||||
Reference in New Issue
Block a user