remove need to set /data/opencells-ran/../oaiCloneFapi before calling cmake
This commit is contained in:
@@ -27,6 +27,10 @@ cmake_minimum_required (VERSION 3.0)
|
||||
# Base directories, compatible with legacy OAI building #
|
||||
#########################################################
|
||||
set (OPENAIR_DIR $ENV{OPENAIR_DIR})
|
||||
if("${OPENAIR_DIR}" STREQUAL "")
|
||||
string(REGEX REPLACE "/cmake_targets.*$" "" OPENAIR_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
endif()
|
||||
|
||||
set (NFAPI_DIR ${OPENAIR_DIR}/nfapi/open-nFAPI)
|
||||
set (NFAPI_USER_DIR ${OPENAIR_DIR}/nfapi/oai_integration)
|
||||
set (OPENAIR1_DIR ${OPENAIR_DIR}/openair1)
|
||||
@@ -2624,7 +2628,7 @@ add_executable(ocp-enb
|
||||
${CONFIG_SOURCES}
|
||||
${SHLIB_LOADER_SOURCES}
|
||||
)
|
||||
add_dependencies(ocp-enb rrc_flag s1ap_flag x2_flag oai_iqplayer)
|
||||
add_dependencies(ocp-enb rrc_flag s1ap_flag x2_flag oai_iqplayer coding params_libconfig rfsimulator)
|
||||
|
||||
target_link_libraries (ocp-enb
|
||||
-Wl,--start-group
|
||||
|
||||
@@ -97,7 +97,6 @@ void exit_function(const char *file, const char *function, const int line, const
|
||||
if (s != NULL) {
|
||||
printf("%s:%d %s() Exiting OAI softmodem: %s\n",file,line, function, s);
|
||||
}
|
||||
softmodem_printresources(0,(telnet_printfunc_t)printf);
|
||||
|
||||
close_log_mem();
|
||||
oai_exit = 1;
|
||||
|
||||
Reference in New Issue
Block a user