diff --git a/cmake_targets/CMakeLists.txt b/cmake_targets/CMakeLists.txt index cb28fc869d..f4942b7c31 100644 --- a/cmake_targets/CMakeLists.txt +++ b/cmake_targets/CMakeLists.txt @@ -432,6 +432,9 @@ set(asn1_generated_dir ${OPENAIR_BIN_DIR}) set(protoc_call "${OPENAIR_CMAKE}/tools/generate_protobuf") set(protobuf_generated_dir ${OPENAIR_BIN_DIR}) +if (${RU} STREQUAL 1) +add_definitions(-DNO_RRC) +endif (${RU} STREQUAL 1) # RRC ###### @@ -1039,10 +1042,6 @@ add_boolean_option(DEBUG_PHY_PROC False "Enable debugging of PHY layer add_boolean_option(DEBUG_DLSCH False "Enable debugging of DLSCH physical layer channel") add_boolean_option(MEX False "Enabling compilation with mex") -if (${RU} STREQUAL 0) -add_boolean_option(HAVE_RRC True "Enable RRC includes") -endif (${RU} STREQUAL 0) - ########################## # NAS LAYER OPTIONS ########################## @@ -3011,6 +3010,7 @@ target_link_libraries (oairu target_link_libraries (oairu pthread m ${CONFIG_LIB} rt ${CMAKE_DL_LIBS} ${T_LIB}) + # lte-uesoftmodem is UE implementation ####################################### diff --git a/openair2/COMMON/platform_constants.h b/openair2/COMMON/platform_constants.h index 41a5879522..f1e6271ed8 100644 --- a/openair2/COMMON/platform_constants.h +++ b/openair2/COMMON/platform_constants.h @@ -32,7 +32,7 @@ #ifndef __PLATFORM_CONSTANTS_H__ # define __PLATFORM_CONSTANTS_H__ -#ifdef HAVE_RRC +#ifndef NO_RRC #include "LTE_asn_constant.h" #include "NR_asn_constant.h" #else diff --git a/openair2/UTIL/OTG/otg_defs.h b/openair2/UTIL/OTG/otg_defs.h index 6c9944014f..af0260587f 100644 --- a/openair2/UTIL/OTG/otg_defs.h +++ b/openair2/UTIL/OTG/otg_defs.h @@ -34,13 +34,8 @@ # define __OTG_DEFS_H__ /* \brief To define the NUMBER_OF_eNB_MAX and MAX_MOBILES_PER_ENB */ -#if STANDALONE==1 - #include "openairinterface5g_limits.h" -#else - // impl_defs_top.h includes openairinterface5g_limits.h - #include "PHY/impl_defs_top.h" -#endif - +#include "openairinterface5g_limits.h" +#include #include "otg_config.h" /**