Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
ba8a111e
Commit
ba8a111e
authored
Feb 01, 2018
by
Wu Jing
Browse files
merge the latest develop branch into issue289
parents
d42ddeac
cd8e8458
Changes
353
Hide whitespace changes
Inline
Side-by-side
cmake_targets/CMakeLists.txt
View file @
ba8a111e
...
...
@@ -27,8 +27,8 @@ cmake_minimum_required (VERSION 2.8)
# Base directories, compatible with legacy OAI building
################################################
set
(
OPENAIR_DIR $ENV{OPENAIR_DIR}
)
#
set (NFAPI_DIR $
ENV{NFAPI_DIR}
)
set
(
NFAPI_
DIR
${
OPENAIR_DIR
}
/nfapi
)
set
(
NFAPI_DIR
$
{
OPENAIR_DIR
}
/nfapi/open-nFAPI
)
set
(
NFAPI_
USER_DIR
${
OPENAIR_DIR
}
/nfapi
/oai_integration
)
set
(
OPENAIR1_DIR
${
OPENAIR_DIR
}
/openair1
)
set
(
OPENAIR2_DIR
${
OPENAIR_DIR
}
/openair2
)
set
(
OPENAIR3_DIR
${
OPENAIR_DIR
}
/openair3
)
...
...
@@ -262,9 +262,6 @@ if (${ENABLE_ITTI})
set
(
GTPU_need_ITTI
${
OPENAIR3_DIR
}
/GTPV1-U/gtpv1u_eNB.c
)
endif
(
${
ENABLE_ITTI
}
)
add_boolean_option
(
RTAI False
"Use RTAI"
)
#############################
# ASN.1 grammar C code generation & dependancies
################################
...
...
@@ -485,7 +482,6 @@ include_directories ("${X2AP_DIR}")
###################################
add_list1_option
(
NB_ANTENNAS_RX
"2"
"Number of antennas in reception"
"1"
"2"
"4"
)
add_list1_option
(
NB_ANTENNAS_TX
"4"
"Number of antennas in transmission"
"1"
"2"
"4"
)
add_list1_option
(
NB_ANTENNAS_TXRX
"2"
"Number of antennas in ????"
"1"
"2"
"4"
)
add_list2_option
(
RF_BOARD
"EXMIMO"
"RF head type"
"None"
"EXMIMO"
"OAI_USRP"
"OAI_BLADERF"
"CPRIGW"
"OAI_LMSSDR"
)
...
...
@@ -587,15 +583,13 @@ Message("CPU_Affinity flag is ${CPU_AFFINITY}")
add_boolean_option
(
ENABLE_SECURITY True
"Enable LTE integrity and ciphering between RRC UE and eNB"
)
add_boolean_option
(
ENABLE_USE_MME True
"eNB connected to MME (INTERFACE S1-C), not standalone eNB"
)
add_boolean_option
(
NO_RRM True
"DO WE HAVE A RADIO RESSOURCE MANAGER: NO"
)
add_boolean_option
(
USER_MODE True
"????"
)
add_boolean_option
(
RRC_DEFAULT_RAB_IS_AM False
"set the RLC mode to AM for the default bearer"
)
add_boolean_option
(
OAI_NW_DRIVER_TYPE_ETHERNET False
"????"
)
add_boolean_option
(
DISABLE_USE_NAS False
"???"
)
add_boolean_option
(
DEADLINE_SCHEDULER True
"Use the Linux scheduler SCHED_DEADLINE: kernel >= 3.14"
)
add_boolean_option
(
CPU_AFFINITY False
"Enable CPU Affinity of threads (only valid without deadline scheduler). It is enabled only with >2 CPUs"
)
add_boolean_option
(
NAS_ADDRESS_FIX False
"specific to oaisim: for nasmesh driver"
)
add_boolean_option
(
NAS_NETLINK False
"
?
??? Must be True to compile nasmesh driver without rtai"
)
add_boolean_option
(
NAS_NETLINK False
"
useless
??? Must be True to compile nasmesh driver without rtai
????
"
)
add_boolean_option
(
OAISIM False
"specific to oaisim"
)
add_boolean_option
(
OAI_NW_DRIVER_USE_NETLINK True
"????"
)
...
...
@@ -613,22 +607,12 @@ add_boolean_option(UE_EXPANSION False "enable UE_EXPANSION w
##########################
add_boolean_option
(
ENB_MODE True
"Swap the include directories between openair2 and openair3"
)
##########################
# Emulation options
##########################
add_boolean_option
(
ENABLE_PGM_TRANSPORT False
"specific to oaisim, emulation through ethernet, reliable multicast"
)
add_boolean_option
(
ADDR_CONF False
"specific to oaisim, IP autoconf of user-plane IP interface"
)
add_boolean_option
(
OPENAIR_EMU False
"specific to oaisim"
)
add_boolean_option
(
OAI_EMU False
"specific to oaisim"
)
add_boolean_option
(
PHY_ABSTRACTION False
"specific to oaisim"
)
##########################
# SCHEDULING/REAL-TIME/PERF options
##########################
add_boolean_option
(
ENABLE_USE_CPU_EXECUTION_TIME True
"Add data in vcd traces: disable it if perf issues"
)
add_boolean_option
(
ENABLE_VCD True
"always true now, time measurements of proc calls and var displays"
)
add_boolean_option
(
ENABLE_VCD_FIFO True
"time measurements of proc calls and var displays sent to FIFO (one more thread)"
)
add_boolean_option
(
HARD_RT False
"???"
)
add_boolean_option
(
LINUX False
"used in weird memcpy() in pdcp.c ???"
)
add_boolean_option
(
LINUX_LIST False
"used only in lists.c: either use OAI implementation of lists or Linux one (should be True, but it is False"
)
add_boolean_option
(
LOG_NO_THREAD True
"Disable thread for log, seems always set to true"
)
...
...
@@ -638,24 +622,15 @@ add_boolean_option(OPENAIR_LTE True "Seems legacy: keep it to true")
# PHY options
##########################
add_boolean_option
(
DRIVER2013 True
"only relevant for EXMIMO"
)
add_boolean_option
(
ENABLE_FXP True
"????"
)
add_boolean_option
(
ENABLE_NEW_MULTICAST False
"specific to oaisim"
)
add_boolean_option
(
EXMIMO_IOT True
"????"
)
add_boolean_option
(
LARGE_SCALE False
"specific to oaisim: defines max eNB=2 and max UE=120"
)
add_boolean_option
(
LOCALIZATION False
"???"
)
add_integer_option
(
MAX_NUM_CCs 1
"????"
)
add_boolean_option
(
MU_RECEIVER False
"????"
)
add_boolean_option
(
NEW_FFT True
"????"
)
add_boolean_option
(
OPENAIR1 True
"????"
)
add_boolean_option
(
PBS_SIM False
"????"
)
add_boolean_option
(
PC_DSP True
"????"
)
add_boolean_option
(
PC_TARGET True
"????"
)
add_boolean_option
(
PERFECT_CE False
"????"
)
add_boolean_option
(
PHYSIM True
"for L1 simulators (dlsim, ulsim, ...)"
)
add_boolean_option
(
PHY_CONTEXT True
"not clear: must remain False for dlsim"
)
add_boolean_option
(
PHY_EMUL False
"not clear: must remain False for dlsim"
)
add_boolean_option
(
PUCCH True
"????"
)
add_boolean_option
(
RANDOM_BF False
"????"
)
add_boolean_option
(
SMBV False
"Rohde&Schwarz SMBV100A vector signal generator"
)
add_boolean_option
(
DEBUG_PHY False
"Enable PHY layer debugging options"
)
add_boolean_option
(
DEBUG_PHY_PROC False
"Enable debugging of PHY layer procedures"
)
...
...
@@ -728,23 +703,7 @@ add_boolean_option(RRC_DEFAULT_RAB_IS_AM False "Otherwise it is UM, confi
##########################
# none
##########################
# PROJECTS (IST, FRENCH COLL., etc)
# SPECIFIC OPTIONS
##########################
add_boolean_option
(
SPECTRA False
"???"
)
add_boolean_option
(
MIH_C_MEDIEVAL_EXTENSIONS False
"EXTENSIONS TO MIH 802.21 IN CONTEXT OF IST PROJECT CALLED MEDIEVAL"
)
add_boolean_option
(
EMOS False
"????"
)
if
(
${
EMOS
}
)
add_definitions
(
"-D_FILE_OFFSET_BITS=64"
)
set
(
EMOS_LIB gps
)
endif
(
${
EMOS
}
)
# add the binary tree to the search path for include files
# add the binary tree to the search path for include files
#######################################################
# We will find ConfigOAI.h after generation in target directory
include_directories
(
"
${
OPENAIR_BIN_DIR
}
"
)
...
...
@@ -770,9 +729,13 @@ else()
include_directories
(
"
${
OPENAIR2_DIR
}
/UTIL"
)
include_directories
(
"
${
OPENAIR2_DIR
}
/UTIL/LOG"
)
endif
()
include_directories
(
"
${
NFAPI_DIR
}
"
)
include_directories
(
"
${
NFAPI_DIR
}
/nfapi/public_inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/common/public_inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/pnf/public_inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/nfapi/inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/sim_common/inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/pnf_sim/inc"
)
include_directories
(
"
${
OPENAIR1_DIR
}
"
)
include_directories
(
"
${
OPENAIR2_DIR
}
/NAS"
)
include_directories
(
"
${
OPENAIR2_DIR
}
"
)
include_directories
(
"
${
OPENAIR2_DIR
}
/LAYER2/RLC"
)
include_directories
(
"
${
OPENAIR2_DIR
}
/LAYER2/RLC/AM_v9.3.0"
)
...
...
@@ -1012,6 +975,58 @@ set(SCHED_SRC
)
add_library
(
SCHED_LIB
${
SCHED_SRC
}
)
# nFAPI
#################################
set
(
NFAPI_COMMON_SRC
${
NFAPI_DIR
}
/common/src/debug.c
)
add_library
(
NFAPI_COMMON_LIB
${
NFAPI_COMMON_SRC
}
)
include_directories
(
${
NFAPI_DIR
}
/common/public_inc
)
set
(
NFAPI_SRC
${
NFAPI_DIR
}
/nfapi/src/nfapi.c
${
NFAPI_DIR
}
/nfapi/src/nfapi_p4.c
${
NFAPI_DIR
}
/nfapi/src/nfapi_p5.c
${
NFAPI_DIR
}
/nfapi/src/nfapi_p7.c
)
add_library
(
NFAPI_LIB
${
NFAPI_SRC
}
)
include_directories
(
${
NFAPI_DIR
}
/nfapi/public_inc
)
include_directories
(
${
NFAPI_DIR
}
/nfapi/inc
)
set
(
NFAPI_PNF_SRC
${
NFAPI_DIR
}
/pnf/src/pnf.c
${
NFAPI_DIR
}
/pnf/src/pnf_interface.c
${
NFAPI_DIR
}
/pnf/src/pnf_p7.c
${
NFAPI_DIR
}
/pnf/src/pnf_p7_interface.c
)
add_library
(
NFAPI_PNF_LIB
${
NFAPI_PNF_SRC
}
)
include_directories
(
${
NFAPI_DIR
}
/pnf/public_inc
)
include_directories
(
${
NFAPI_DIR
}
/pnf/inc
)
set
(
NFAPI_VNF_SRC
${
NFAPI_DIR
}
/vnf/src/vnf.c
${
NFAPI_DIR
}
/vnf/src/vnf_interface.c
${
NFAPI_DIR
}
/vnf/src/vnf_p7.c
${
NFAPI_DIR
}
/vnf/src/vnf_p7_interface.c
)
add_library
(
NFAPI_VNF_LIB
${
NFAPI_VNF_SRC
}
)
include_directories
(
${
NFAPI_DIR
}
/vnf/public_inc
)
include_directories
(
${
NFAPI_DIR
}
/vnf/inc
)
# nFAPI user defined code
#############################
set
(
NFAPI_USER_SRC
${
NFAPI_USER_DIR
}
/nfapi.c
${
NFAPI_USER_DIR
}
/nfapi_pnf.c
${
NFAPI_USER_DIR
}
/nfapi_vnf.c
)
add_library
(
NFAPI_USER_LIB
${
NFAPI_USER_SRC
}
)
include_directories
(
${
NFAPI_USER_DIR
}
)
# Layer 1
#############################
set
(
PHY_SRC
...
...
@@ -1207,6 +1222,8 @@ add_library(L2
${
ENB_APP_SRC
}
)
# ${OPENAIR2_DIR}/RRC/L2_INTERFACE/openair_rrc_L2_interface.c)
include_directories
(
${
NFAPI_USER_DIR
}
)
if
(
FLEXRAN_AGENT_SB_IF
)
#Test for adding a shared library
...
...
@@ -1244,26 +1261,6 @@ if (${ENABLE_RAL})
set
(
RAL_LIB RAL
)
endif
()
if
(
${
MIH_C_MEDIEVAL_EXTENSIONS
}
)
set
(
MIH_SRC
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_header_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_msg_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_primitive_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_F1_basic_data_types_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_F2_general_data_types_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_F3_data_types_for_address_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_F4_data_types_for_links_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_F9_data_types_for_qos_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_F13_data_types_for_information_elements_codec.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_L2_type_values_for_tlv_encoding.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_Medieval_extensions.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C_bit_buffer.c
${
RAL_LTE_DIR
}
INTERFACE-802.21/C/MIH_C.c
)
add_library
(
MIH
${
MIH_SRC
}
)
set
(
MIH_LIB MIH
)
endif
()
# CN libs
##########################
...
...
@@ -1613,13 +1610,19 @@ ${OPENAIR1_DIR}/SIMULATION/ETH_TRANSPORT/multicast_link.c
${
OPENAIR1_DIR
}
/SIMULATION/ETH_TRANSPORT/socket.c
${
OPENAIR1_DIR
}
/SIMULATION/ETH_TRANSPORT/bypass_session_layer.c
#${OPENAIR1_DIR}/SIMULATION/ETH_TRANSPORT/emu_transport.c
${
OPENAIR1_DIR
}
/SIMULATION/ETH_TRANSPORT/pgm_link.c
)
add_library
(
OPENAIR0_LIB
${
OPENAIR_TARGETS
}
/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
)
include_directories
(
"
${
NFAPI_DIR
}
/nfapi/public_inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/common/public_inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/pnf/public_inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/nfapi/inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/sim_common/inc"
)
include_directories
(
"
${
NFAPI_DIR
}
/pnf_sim/inc"
)
# System packages that are required
# We use either the cmake buildin, in ubuntu are in: /usr/share/cmake*/Modules/
# or cmake provide a generic interface to pkg-config that widely used
...
...
@@ -1778,7 +1781,6 @@ add_executable(lte-softmodem
${
OPENAIR_DIR
}
/common/utils/utils.c
${
OPENAIR_DIR
}
/common/utils/system.c
${
GTPU_need_ITTI
}
${
RTAI_SOURCE
}
${
XFORMS_SOURCE
}
${
XFORMS_SOURCE_SOFTMODEM
}
${
T_SOURCE
}
...
...
@@ -1786,10 +1788,12 @@ add_executable(lte-softmodem
${
SHLIB_LOADER_SOURCES
}
)
target_link_libraries
(
lte-softmodem
-ldl
target_link_libraries
(
lte-softmodem
-Wl,--start-group
RRC_LIB S1AP_LIB S1AP_ENB GTPV1U SECU_CN SECU_OSA UTIL HASHTABLE SCTP_CLIENT UDP SCHED_LIB PHY LFDS L2
${
MSC_LIB
}
${
RAL_LIB
}
${
NAS_UE_LIB
}
${
ITTI_LIB
}
${
MIH_LIB
}
${
FLPT_MSG_LIB
}
${
ASYNC_IF_LIB
}
${
FLEXRAN_AGENT_LIB
}
LFDS7
-Wl,--end-group
)
RRC_LIB S1AP_LIB S1AP_ENB GTPV1U SECU_CN SECU_OSA UTIL HASHTABLE SCTP_CLIENT UDP SCHED_LIB PHY LFDS L2
${
MSC_LIB
}
${
RAL_LIB
}
${
NAS_UE_LIB
}
${
ITTI_LIB
}
${
FLPT_MSG_LIB
}
${
ASYNC_IF_LIB
}
${
FLEXRAN_AGENT_LIB
}
LFDS7
NFAPI_COMMON_LIB NFAPI_LIB NFAPI_VNF_LIB NFAPI_PNF_LIB
NFAPI_USER_LIB
-Wl,--end-group z dl
)
target_link_libraries
(
lte-softmodem
${
LIBXML2_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
sctp
${
XFORMS_LIBRARIES
}
${
PROTOBUF_LIB
}
${
CMAKE_DL_LIBS
}
${
LIBYAML_LIBRARIES
}
)
...
...
@@ -1815,7 +1819,6 @@ add_executable(lte-softmodem-nos1
${
OPENAIR2_DIR
}
/RRC/NAS/rb_config.c
${
OPENAIR1_DIR
}
/SIMULATION/ETH_TRANSPORT/netlink_init.c
${
OPENAIR_DIR
}
/common/utils/system.c
${
RTAI_SOURCE
}
${
XFORMS_SOURCE
}
${
XFORMS_SOURCE_SOFTMODEM
}
${
T_SOURCE
}
...
...
@@ -1824,7 +1827,7 @@ add_executable(lte-softmodem-nos1
)
target_link_libraries
(
lte-softmodem-nos1
-Wl,--start-group
RRC_LIB SECU_CN SECU_OSA UTIL HASHTABLE SCHED_LIB PHY LFDS L2
${
MSC_LIB
}
${
RAL_LIB
}
${
ITTI_LIB
}
${
MIH_LIB
}
${
FLPT_MSG_LIB
}
${
ASYNC_IF_LIB
}
${
FLEXRAN_AGENT_LIB
}
LFDS7
RRC_LIB SECU_CN SECU_OSA UTIL HASHTABLE SCHED_LIB PHY LFDS L2
${
MSC_LIB
}
${
RAL_LIB
}
${
ITTI_LIB
}
${
FLPT_MSG_LIB
}
${
ASYNC_IF_LIB
}
${
FLEXRAN_AGENT_LIB
}
LFDS7
-Wl,--end-group
)
target_link_libraries
(
lte-softmodem-nos1
${
LIBXML2_LIBRARIES
}
)
...
...
@@ -1832,27 +1835,6 @@ target_link_libraries (lte-softmodem-nos1 pthread m ${CONFIG_LIBRARIES} rt crypt
target_link_libraries
(
lte-softmodem-nos1
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem-nos1
${
T_LIB
}
)
# rrh
################################
#Note: only one RF type (USRP) is currently supported for RRH
add_executable
(
rrh_gw
${
OPENAIR_TARGETS
}
/RT/USER/rrh_gw.c
${
OPENAIR_TARGETS
}
/RT/USER/eNB_transport_IQ.c
${
OPENAIR_TARGETS
}
/RT/USER/UE_transport_IQ.c
${
OPENAIR_TARGETS
}
/RT/USER/rt_wrapper.c
${
OPENAIR_TARGETS
}
/ARCH/COMMON/common_lib.c
${
T_SOURCE
}
)
target_include_directories
(
rrh_gw PRIVATE
${
OPENAIR_DIR
}
/common/utils/itti
)
target_link_libraries
(
rrh_gw
-Wl,--start-group
UTIL LFDS -ldl
-Wl,--end-group
)
target_link_libraries
(
rrh_gw rt pthread m
)
target_link_libraries
(
rrh_gw
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
rrh_gw
${
T_LIB
}
)
# USIM process
#################
#add_executable(usim
...
...
@@ -1916,18 +1898,19 @@ add_executable(oaisim
target_include_directories
(
oaisim PUBLIC
${
OPENAIR_TARGETS
}
/SIMU/USER
)
target_link_libraries
(
oaisim
-Wl,-ldl,--start-group
RRC_LIB S1AP_LIB S1AP_ENB X2AP_LIB GTPV1U SECU_CN UTIL HASHTABLE SCTP_CLIENT UDP SCHED_LIB PHY LFDS
${
MSC_LIB
}
L2
${
RAL_LIB
}
LIB_NAS_UE SIMU SECU_OSA
${
ITTI_LIB
}
${
MIH_LIB
}
RRC_LIB S1AP_LIB S1AP_ENB X2AP_LIB GTPV1U SECU_CN UTIL HASHTABLE SCTP_CLIENT UDP SCHED_LIB PHY LFDS
${
MSC_LIB
}
L2
${
RAL_LIB
}
LIB_NAS_UE SIMU SECU_OSA
${
ITTI_LIB
}
NFAPI_COMMON_LIB NFAPI_LIB NFAPI_VNF_LIB NFAPI_PNF_LIB
NFAPI_USER_LIB
-Wl,--end-group
)
target_link_libraries
(
oaisim
${
LIBXML2_LIBRARIES
}
${
LAPACK_LIBRARIES
}
)
target_link_libraries
(
oaisim pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
sctp
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
OPENPGM_LIBRARIES
}
)
target_link_libraries
(
oaisim pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
sctp
z
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
OPENPGM_LIBRARIES
}
)
#Force link with forms, regardless XFORMS option
target_link_libraries
(
oaisim forms
)
target_link_libraries
(
oaisim
${
T_LIB
}
)
# A all in one network simulator
################
add_executable
(
oaisim_nos1
...
...
@@ -1960,7 +1943,7 @@ add_executable(oaisim_nos1
target_include_directories
(
oaisim_nos1 PUBLIC
${
OPENAIR_TARGETS
}
/SIMU/USER
)
target_link_libraries
(
oaisim_nos1
-Wl,--start-group
RRC_LIB X2AP_LIB SECU_CN UTIL HASHTABLE SCHED_LIB PHY LFDS
${
MSC_LIB
}
L2
${
RAL_LIB
}
SIMU SECU_OSA
${
ITTI_LIB
}
${
MIH_LIB
}
${
FLPT_MSG_LIB
}
${
ASYNC_IF_LIB
}
${
FLEXRAN_AGENT_LIB
}
LFDS7
RRC_LIB X2AP_LIB SECU_CN UTIL HASHTABLE SCHED_LIB PHY LFDS
${
MSC_LIB
}
L2
${
RAL_LIB
}
SIMU SECU_OSA
${
ITTI_LIB
}
${
FLPT_MSG_LIB
}
${
ASYNC_IF_LIB
}
${
FLEXRAN_AGENT_LIB
}
LFDS7
-Wl,--end-group
)
target_link_libraries
(
oaisim_nos1
${
LIBXML2_LIBRARIES
}
${
LAPACK_LIBRARIES
}
)
...
...
@@ -2068,7 +2051,7 @@ endforeach(myExe)
if
(
${
T_TRACER
}
)
foreach
(
i
#all "add_executable" definitions (except tests, rb_tool, updatefw)
lte-softmodem lte-softmodem-nos1
rrh_gw
oaisim oaisim_nos1
lte-softmodem lte-softmodem-nos1 oaisim oaisim_nos1
dlsim_tm4 dlsim dlsim_tm7 ulsim pbchsim scansim mbmssim
pdcchsim pucchsim prachsim syncsim
#all "add_library" definitions
...
...
@@ -2076,7 +2059,7 @@ if (${T_TRACER})
oai_exmimodevif oai_usrpdevif oai_bladerfdevif oai_lmssdrdevif
oai_eth_transpro
FLPT_MSG ASYNC_IF FLEXRAN_AGENT HASHTABLE MSC UTIL OMG_SUMO SECU_OSA
SECU_CN SCHED_LIB PHY L2 default_sched remote_sched RAL
MIH
CN_UTILS
SECU_CN SCHED_LIB PHY L2 default_sched remote_sched RAL CN_UTILS
GTPV1U SCTP_CLIENT UDP LIB_NAS_UE LFDS LFDS7 SIMU OPENAIR0_LIB
)
if
(
TARGET
${
i
}
)
add_dependencies
(
${
i
}
generate_T
)
...
...
@@ -2138,7 +2121,6 @@ get_directory_property(DirDefs COMPILE_DEFINITIONS )
foreach
(
d
${
DirDefs
}
)
set
(
module_cc_opt_tmp
"
${
module_cc_opt_tmp
}
-D
${
d
}
"
)
endforeach
()
string
(
REPLACE
"-DUSER_MODE"
""
module_cc_opt
${
module_cc_opt_tmp
}
)
get_directory_property
(
DirDefs INCLUDE_DIRECTORIES
)
foreach
(
d
${
DirDefs
}
)
set
(
module_cc_opt
"
${
module_cc_opt
}
-I
${
d
}
"
)
...
...
@@ -2170,15 +2152,7 @@ endfunction(make_driver name dir src)
# nashmesh module
################
list
(
APPEND nasmesh_src device.c common.c ioctl.c classifier.c tool.c mesh.c
)
# Actually nasty stuff to be FIXED: the hereafter flag is for RTAI compilation in the driver,
# but has different meaning in the other parts of the code
# We should change the constant name to xxx_RTAI or likely
if
(
NOT
${
module_cc_opt
}
MATCHES
"DRTAI"
)
set
(
module_cc_opt
"
${
module_cc_opt
}
-DNAS_NETLINK"
)
else
()
string
(
REPLACE
"-DNAS_NETLINK"
""
tmp
"
${
module_cc_opt
}
"
)
set
(
module_cc_opt
${
tmp
}
)
endif
()
set
(
module_cc_opt
"
${
module_cc_opt
}
-DNAS_NETLINK -DPDCP_USE_NETLINK"
)
# legacy Makefile was using NAS_NETLINK flag, but other drivers the hereafter flag
# so, this cmake use OAI_NW_DRIVER_USE_NETLINK everywhere
if
(
OAI_NW_DRIVER_USE_NETLINK
)
...
...
cmake_targets/build_oai
View file @
ba8a111e
...
...
@@ -101,8 +101,6 @@ Options
Specify conf_nvram_path (default
\"
$conf_nvram_path
\"
)
--UE-gen-nvram [output path]
Specify gen_nvram_path (default
\"
$gen_nvram_path
\"
)
--RRH
Makes the RRH
-a | --agent
Enables agent for software-defined control of the eNB
-r | --3gpp-release
...
...
@@ -200,7 +198,7 @@ function main() {
GDB
=
1
CMAKE_BUILD_TYPE
=
"Debug"
echo_info
"Will Compile with gdb symbols and disable compiler optimization"
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_BUILD_TYPE=Debug"
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_BUILD_TYPE=Debug
--trace-expand
"
shift
;;
--eNB
)
eNB
=
1
...
...
@@ -224,10 +222,6 @@ function main() {
--UE-gen-nvram
)
gen_nvram_path
=
$(
readlink
-f
$2
)
shift
2
;;
--RRH
)
RRH
=
1
echo_info
"Will compile RRH"
shift
;;
-r
|
--3gpp-release
)
REL
=
$2
echo_info
"Setting release to:
$REL
"
...
...
@@ -376,7 +370,7 @@ function main() {
echo_info
"CMAKE_CMD=
$CMAKE_CMD
"
#########################################################
# check validity of HW and TP parameters for
RRH and
eNB
# check validity of HW and TP parameters for eNB
#########################################################
# to be discussed
...
...
@@ -392,15 +386,6 @@ function main() {
fi
fi
if
[
"
$RRH
"
=
"1"
]
;
then
if
[
"
$TP
"
=
"None"
]
;
then
echo_fatal
"A transport protocol (e.g. -t ETHERNET) must be defined!"
fi
if
[
"
$HW
"
=
"None"
]
;
then
echo_info
"No radio head has been selected (HW set to
$HW
)"
fi
fi
echo_info
"RF HW set to
$HW
"
#Now we set flags to enable deadline scheduler settings
#By default: USRP: disable,
...
...
@@ -801,36 +786,6 @@ function main() {
# oaisim_mme $dbin/oaisim_mme.$REL
fi
# RRH compilation
#####################
if
[
"
$RRH
"
=
"1"
]
;
then
rrh_exec
=
rrh_gw
rrh_build_dir
=
rrh_gw
echo_info
"Compiling
$rrh_exec
..."
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/rrh_gw/build
mkdir
-p
$DIR
/
$rrh_build_dir
/build
cmake_file
=
$DIR
/
$rrh_build_dir
/CMakeLists.txt
echo
"cmake_minimum_required(VERSION 2.8)"
>
$cmake_file
echo
"set ( CMAKE_BUILD_TYPE
$CMAKE_BUILD_TYPE
)"
>>
$cmake_file
echo
"set ( ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set ( ENABLE_ITTI False )"
>>
$cmake_file
echo
"set ( RF_BOARD
\"
${
HW
}
\"
)"
>>
$cmake_file
echo
"set ( TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
'set ( PACKAGE_NAME "\"rrh_gw\"")'
>>
$cmake_file
echo
"set ( DEADLINE_SCHEDULER
\"
${
DEADLINE_SCHEDULER_FLAG_USER
}
\"
)"
>>
$cmake_file
echo
"set ( CPU_AFFINITY
\"
${
CPU_AFFINITY_FLAG_USER
}
\"
)"
>>
$cmake_file
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$rrh_build_dir
/build
eval
$CMAKE_CMD
compilations
\
rrh_gw rrh_gw
\
rrh_gw
$dbin
/rrh_gw
fi
# Telnet server compilation
#####################
if
[
"
$BUILD_TELNETSRV
"
=
"1"
]
;
then
...
...
@@ -849,13 +804,9 @@ function main() {
fi
# build RF device and transport protocol libraries
#####################################
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
-o
"
$RRH
"
=
"1"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
]
;
then
build_dir
=
$lte_build_dir
else
build_dir
=
$rrh_build_dir
fi
build_dir
=
$lte_build_dir
# build RF device libraries
if
[
"
$HW
"
!=
"None"
]
;
then
...
...
cmake_targets/epc_test/CMakeLists.template
View file @
ba8a111e
...
...
@@ -2,17 +2,13 @@ cmake_minimum_required(VERSION 2.8)
set ( CMAKE_BUILD_TYPE "RelWithDebInfo" )
set ( ASN_DEBUG False)
set ( ADDR_CONF False )
set ( DEBUG_OMG False )
set ( DISABLE_XER_PRINT False )
set ( DRIVER2013 True )
set ( EMOS False )
set ( EMIT_ASN_DEBUG False )
set ( ENABLE_FXP True )
set ( ENABLE_ITTI True )
set ( ENABLE_NAS_UE_LOGGING True )
set ( ENABLE_NEW_MULTICAST True )
set ( ENABLE_PGM_TRANSPORT True )
set ( ENABLE_SECURITY True )
set ( ENABLE_STANDALONE_EPC False)
set ( ENABLE_USE_CPU_EXECUTION_TIME True )
...
...
@@ -21,7 +17,6 @@ set ( ENABLE_USE_RAW_SOCKET_FOR_SGI True)
set ( ENABLE_VCD_FIFO False )
set ( ENB_MODE True )
set ( EXMIMO_IOT True )
set ( HARD_RT False )
set ( JUMBO_FRAME True )
set ( LARGE_SCALE False )
set ( LINK_ENB_PDCP_TO_GTPV1U True)
...
...
@@ -33,7 +28,6 @@ set ( DEADLINE_SCHEDULER False )
set ( MAC_CONTEXT 1 )
set ( MAX_NUM_CCs 1 )
set ( MESSAGE_CHART_GENERATOR False)
set ( MIH_C_MEDIEVAL_EXTENSIONS False )
set ( MSG_PRINT False )
set ( MU_RECEIVER False )
set ( NAS_ADDRESS_FIX False )
...
...
@@ -42,38 +36,25 @@ set ( NAS_MME False )
set ( NAS_UE True )
set ( NB_ANTENNAS_RX "2" )
set ( NB_ANTENNAS_TX "2" )
set ( NB_ANTENNAS_TXRX "2" )
set ( NEW_FFT True )
set ( NO_RRM True )
set ( OAI_EMU False )
set ( OAISIM False )
set ( OAI_NW_DRIVER_TYPE_ETHERNET False )
set ( OAI_NW_DRIVER_USE_NETLINK True )
set ( OPENAIR1 True )
set ( OPENAIR2 True )
set ( OPENAIR_LTE True )
set ( PACKAGE_NAME "epc_test" )
set ( PBS_SIM False )
set ( PDCP_USE_NETLINK True )
set ( PC_DSP True )
set ( PC_TARGET True )
set ( PDCP_MSG_PRINT False )
set ( PERFECT_CE False )
set ( PHY_ABSTRACTION True )
set ( PHY_CONTEXT False )
set ( PHY_EMUL False )
set ( PHYSIM True )
set ( PUCCH True )
set ( RANDOM_BF False )
set ( RF_BOARD "False" )
set ( RLC_STOP_ON_LOST_PDU False )
set ( RRC_ASN1_VERSION "Rel10" )
set ( RRC_DEFAULT_RAB_IS_AM True)
set ( RRC_MSG_PRINT False )
set ( RTAI False )
set ( SECU False )
set ( SMBV False )
set ( TEST_OMG False )
set ( USE_MME "R10" )
set ( USER_MODE True )
set ( XER_PRINT True )
cmake_targets/lte-simulators/CMakeLists.txt
View file @
ba8a111e
...
...
@@ -6,9 +6,6 @@ set(XFORMS True)
set
(
ENABLE_ITTI False
)
set
(
DEBUG_PHY False
)
set
(
MU_RECIEVER False
)
set
(
RANDOM_BF False
)
set
(
PBS_SIM False
)
set
(
PERFECT_CE True
)
set
(
NAS_UE False
)
set
(
MESSAGE_CHART_GENERATOR False
)
...
...
cmake_targets/oaisim_build_oai/CMakeLists.template
View file @
ba8a111e
cmake_minimum_required(VERSION 2.8)
set ( CMAKE_BUILD_TYPE "RelWithDebInfo" )
set ( ADDR_CONF False )
set ( DEBUG_OMG False )
set ( DISABLE_XER_PRINT False )
set ( DRIVER2013 True )
set ( EMOS False )
set ( ENABLE_FXP True )
set ( ENABLE_ITTI True )
set ( ENABLE_NAS_UE_LOGGING True )
set ( ENABLE_NEW_MULTICAST True )
set ( ENABLE_PGM_TRANSPORT True )
set ( ENABLE_RAL False )
set ( ENABLE_SECURITY True )
set ( ENABLE_STANDALONE_EPC False)
...
...
@@ -20,7 +16,6 @@ set ( ENABLE_USE_RAW_SOCKET_FOR_SGI True)
set ( ENABLE_VCD_FIFO False )
set ( ENB_MODE True )
set ( EXMIMO_IOT True )
set ( HARD_RT False )
set ( JUMBO_FRAME True )
set ( LARGE_SCALE False )
set ( LINK_ENB_PDCP_TO_GTPV1U True)
...
...
@@ -32,7 +27,6 @@ set ( DEADLINE_SCHEDULER False )
set ( MAC_CONTEXT 1 )
set ( MAX_NUM_CCs 1 )
set ( MESSAGE_CHART_GENERATOR False)
set ( MIH_C_MEDIEVAL_EXTENSIONS False )
set ( MSG_PRINT False )
set ( MU_RECEIVER False )
set ( NAS_ADDRESS_FIX False )
...
...
@@ -41,40 +35,26 @@ set ( NAS_MME False )
set ( NAS_UE True )
set ( NB_ANTENNAS_RX "2" )
set ( NB_ANTENNAS_TX "2" )
set ( NB_ANTENNAS_TXRX "2" )
set ( NEW_FFT True )
set ( NO_RRM True )
set ( OAI_EMU True )
set ( OAISIM True )
set ( OAI_NW_DRIVER_TYPE_ETHERNET False )
set ( OAI_NW_DRIVER_USE_NETLINK True )
set ( OPENAIR1 True )
set ( OPENAIR2 True )
set ( OPENAIR_LTE True )
set ( PACKAGE_NAME "oaisim" )
set ( PBS_SIM False )
set ( PDCP_USE_NETLINK True )
set ( PC_DSP True )
set ( PC_TARGET True )
set ( PDCP_MSG_PRINT False )
set ( PERFECT_CE False )
set ( PHY_ABSTRACTION True )
set ( PHY_CONTEXT False )
set ( PHY_EMUL False )
set ( PHYSIM True )