--build-codeblocks switch added, command line parser fixed.
This commit is contained in:
@@ -69,6 +69,7 @@ UE_TIMING_TRACE="False"
|
|||||||
DISABLE_LOG_X="False"
|
DISABLE_LOG_X="False"
|
||||||
USRP_REC_PLAY="False"
|
USRP_REC_PLAY="False"
|
||||||
BUILD_ECLIPSE=0
|
BUILD_ECLIPSE=0
|
||||||
|
BUILD_CODEBLOCKS=0
|
||||||
UE_NAS_USE_TUN="False"
|
UE_NAS_USE_TUN="False"
|
||||||
BASIC_SIMULATOR=0
|
BASIC_SIMULATOR=0
|
||||||
trap handle_ctrl_c INT
|
trap handle_ctrl_c INT
|
||||||
@@ -156,6 +157,8 @@ Options
|
|||||||
Disable all LOG_* macros
|
Disable all LOG_* macros
|
||||||
--build-eclipse
|
--build-eclipse
|
||||||
Build eclipse project files. Paths are auto corrected by fixprj.sh
|
Build eclipse project files. Paths are auto corrected by fixprj.sh
|
||||||
|
--build-codeblocks
|
||||||
|
Build CodeBlocks project files.
|
||||||
--build-telnet
|
--build-telnet
|
||||||
Build telnet server, specify --telnetsrv on command line to start it (eNB only)
|
Build telnet server, specify --telnetsrv on command line to start it (eNB only)
|
||||||
--build-msc
|
--build-msc
|
||||||
@@ -354,6 +357,11 @@ function main() {
|
|||||||
CMAKE_CMD="$CMAKE_CMD"' -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -G"Eclipse CDT4 - Unix Makefiles"'
|
CMAKE_CMD="$CMAKE_CMD"' -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -G"Eclipse CDT4 - Unix Makefiles"'
|
||||||
echo_info "Enabling build eclipse project support"
|
echo_info "Enabling build eclipse project support"
|
||||||
shift 1;;
|
shift 1;;
|
||||||
|
--build-codeblocks)
|
||||||
|
BUILD_CODEBLOCKS=1
|
||||||
|
CMAKE_CMD="$CMAKE_CMD"' -DCMAKE_CODEBLOCKS_GENERATE_SOURCE_PROJECT=TRUE -G"CodeBlocks - Unix Makefiles"'
|
||||||
|
echo_info "Enabling build CodeBlocks project support"
|
||||||
|
shift 1;;
|
||||||
--build-telnetsrv)
|
--build-telnetsrv)
|
||||||
BUILD_TELNETSRV=1
|
BUILD_TELNETSRV=1
|
||||||
echo_info "Build embedded telnet server"
|
echo_info "Build embedded telnet server"
|
||||||
|
|||||||
@@ -337,6 +337,11 @@ int lte_sync_time(int **rxdata, ///rx data in time domain
|
|||||||
int *eNB_id)
|
int *eNB_id)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// [IRTMS debug]
|
||||||
|
|
||||||
|
static int num_calles=0;
|
||||||
|
printf("[IRTMS]lte_sync_time called %d times\n", num_calles);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// perform a time domain correlation using the oversampled sync sequence
|
// perform a time domain correlation using the oversampled sync sequence
|
||||||
|
|||||||
@@ -171,6 +171,8 @@ int netlink_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
printf("[IRTMS] Opening socket...\n");
|
||||||
|
|
||||||
nas_sock_fd = socket(PF_NETLINK, SOCK_RAW,GRAAL_NETLINK_ID);
|
nas_sock_fd = socket(PF_NETLINK, SOCK_RAW,GRAAL_NETLINK_ID);
|
||||||
|
|
||||||
if (nas_sock_fd == -1) {
|
if (nas_sock_fd == -1) {
|
||||||
|
|||||||
@@ -105,6 +105,9 @@ eNBs =
|
|||||||
ue_TimersAndConstants_n310 = 20;
|
ue_TimersAndConstants_n310 = 20;
|
||||||
ue_TimersAndConstants_n311 = 1;
|
ue_TimersAndConstants_n311 = 1;
|
||||||
ue_TransmissionMode = 1;
|
ue_TransmissionMode = 1;
|
||||||
|
# IRT MS addition:
|
||||||
|
# mbms_dedicated_serving_cell = "ENABLE"
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -693,11 +693,27 @@ int main( int argc, char **argv ) {
|
|||||||
#if defined (XFORMS)
|
#if defined (XFORMS)
|
||||||
int ret;
|
int ret;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// [IRTMS] fix, see Merge branch 'issue-399-master-ue-hot-fix' into 'master'
|
||||||
|
configmodule_interface_t *config_mod;
|
||||||
|
// [IRTMS] end fix
|
||||||
|
|
||||||
start_background_system();
|
start_background_system();
|
||||||
|
|
||||||
|
// [IRTMS] fix, see Merge branch 'issue-399-master-ue-hot-fix' into 'master'
|
||||||
|
/*
|
||||||
if ( load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY) == NULL) {
|
if ( load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY) == NULL) {
|
||||||
exit_fun("[SOFTMODEM] Error, configuration module init failed\n");
|
exit_fun("[SOFTMODEM] Error, configuration module init failed\n");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
config_mod = load_configmodule(argc, argv, CONFIG_ENABLECMDLINEONLY);
|
||||||
|
|
||||||
|
if (config_mod == NULL) {
|
||||||
|
|
||||||
|
exit_fun("[SOFTMODEM] Error, configuration module init failed\n");
|
||||||
|
}
|
||||||
|
// [IRTMS] end fix
|
||||||
|
|
||||||
|
|
||||||
mode = normal_txrx;
|
mode = normal_txrx;
|
||||||
memset(&openair0_cfg[0],0,sizeof(openair0_config_t)*MAX_CARDS);
|
memset(&openair0_cfg[0],0,sizeof(openair0_config_t)*MAX_CARDS);
|
||||||
@@ -715,6 +731,10 @@ int main( int argc, char **argv ) {
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("\n[IRTMS] Hello from main\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf("NFAPI_MODE value: %d \n", nfapi_mode);
|
printf("NFAPI_MODE value: %d \n", nfapi_mode);
|
||||||
|
|
||||||
// Checking option of nums_ue_thread.
|
// Checking option of nums_ue_thread.
|
||||||
@@ -811,8 +831,12 @@ int main( int argc, char **argv ) {
|
|||||||
} else init_openair0(frame_parms[0],(int)rx_gain[0][0]);
|
} else init_openair0(frame_parms[0],(int)rx_gain[0][0]);
|
||||||
|
|
||||||
if (simL1flag==1) {
|
if (simL1flag==1) {
|
||||||
|
// [IRTRMS] fix, see Merge branch 'issue-399-master-ue-hot-fix' into 'master'
|
||||||
|
/*
|
||||||
AssertFatal(NULL!=load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY),
|
AssertFatal(NULL!=load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY),
|
||||||
"[SOFTMODEM] Error, configuration module init failed\n");
|
"[SOFTMODEM] Error, configuration module init failed\n");
|
||||||
|
*/
|
||||||
|
// [IRTMS] end fix
|
||||||
RCConfig_sim();
|
RCConfig_sim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user