Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
91e57c8a
Commit
91e57c8a
authored
Jun 02, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fully integrate the T into build_oai/CMake
The unit simulators may still need some checks.
parent
fb674653
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
13 deletions
+65
-13
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+54
-13
cmake_targets/build_oai
cmake_targets/build_oai
+11
-0
No files found.
cmake_targets/CMakeLists.txt
View file @
91e57c8a
...
@@ -212,6 +212,7 @@ add_boolean_option(TEST_OMG False "???")
...
@@ -212,6 +212,7 @@ add_boolean_option(TEST_OMG False "???")
add_boolean_option
(
DEBUG_OMG False
"???"
)
add_boolean_option
(
DEBUG_OMG False
"???"
)
add_boolean_option
(
XFORMS False
"This adds the possibility to see the signal oscilloscope"
)
add_boolean_option
(
XFORMS False
"This adds the possibility to see the signal oscilloscope"
)
add_boolean_option
(
PRINT_STATS False
"This adds the possibility to see the status"
)
add_boolean_option
(
PRINT_STATS False
"This adds the possibility to see the status"
)
add_boolean_option
(
T_TRACER False
"Activate the T tracer, a debugging/monitoring framework"
)
add_boolean_option
(
DEBUG_CONSOLE False
"makes debugging easier, disables stdout/stderr buffering"
)
add_boolean_option
(
DEBUG_CONSOLE False
"makes debugging easier, disables stdout/stderr buffering"
)
...
@@ -1484,13 +1485,36 @@ endif (${XFORMS})
...
@@ -1484,13 +1485,36 @@ endif (${XFORMS})
set
(
CMAKE_MODULE_PATH
"
${
OPENAIR_DIR
}
/cmake_targets/tools/MODULES"
"
${
CMAKE_MODULE_PATH
}
"
)
set
(
CMAKE_MODULE_PATH
"
${
OPENAIR_DIR
}
/cmake_targets/tools/MODULES"
"
${
CMAKE_MODULE_PATH
}
"
)
#
add the T tracer
#
include T directory even if the T is off because T macros are in the code
add_boolean_option
(
T_TRACER True
"Activate the T tracer"
)
#no matter what
include_directories
(
"
${
OPENAIR_DIR
}
/common/utils/T"
)
include_directories
(
"
${
OPENAIR_DIR
}
/common/utils/T"
)
set
(
T_SOURCE
if
(
${
T_TRACER
}
)
set
(
T_SOURCE
${
OPENAIR_DIR
}
/common/utils/T/T.c
${
OPENAIR_DIR
}
/common/utils/T/T.c
${
OPENAIR_DIR
}
/common/utils/T/local_tracer.c
)
${
OPENAIR_DIR
}
/common/utils/T/local_tracer.c
)
set
(
T_LIB
"-lrt"
)
set
(
T_LIB
"rt"
)
endif
(
${
T_TRACER
}
)
#Some files in the T directory are generated.
#This rule and the following deal with it.
add_custom_command
(
OUTPUT
${
OPENAIR_DIR
}
/common/utils/T/T_IDs.h
COMMAND make
WORKING_DIRECTORY
${
OPENAIR_DIR
}
/common/utils/T
DEPENDS
${
OPENAIR_DIR
}
/common/utils/T/T_messages.txt
)
#This rule is specifically needed to generate T files
#before anything else in a project that uses the T.
#See below, there are some 'add_dependencies' showing that.
#Basically we create a custom target and we make other
#targets depend on it. That forces cmake to generate
#T files before anything else.
add_custom_target
(
generate_T
DEPENDS
${
OPENAIR_DIR
}
/common/utils/T/T_IDs.h
)
# Hack on a test of asn1c version (already dirty)
# Hack on a test of asn1c version (already dirty)
add_definitions
(
-DASN1_MINIMUM_VERSION=924
)
add_definitions
(
-DASN1_MINIMUM_VERSION=924
)
...
@@ -1536,7 +1560,6 @@ target_link_libraries (lte-softmodem ${LIBXML2_LIBRARIES})
...
@@ -1536,7 +1560,6 @@ 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
${
option_HW_lib
}
${
option_TP_lib
}
${
XFORMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
sctp
${
option_HW_lib
}
${
option_TP_lib
}
${
XFORMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
T_LIB
}
)
target_link_libraries
(
lte-softmodem
${
T_LIB
}
)
# lte-softmodem-nos1 is both eNB and UE implementation
# lte-softmodem-nos1 is both eNB and UE implementation
...
@@ -1573,7 +1596,6 @@ target_link_libraries (lte-softmodem-nos1 ${LIBXML2_LIBRARIES})
...
@@ -1573,7 +1596,6 @@ target_link_libraries (lte-softmodem-nos1 ${LIBXML2_LIBRARIES})
target_link_libraries
(
lte-softmodem-nos1 pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
${
option_HW_lib
}
${
option_TP_lib
}
${
XFORMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem-nos1 pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
${
option_HW_lib
}
${
option_TP_lib
}
${
XFORMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem-nos1
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem-nos1
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem-nos1
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem-nos1
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
T_LIB
}
)
target_link_libraries
(
lte-softmodem
${
T_LIB
}
)
# rrh
# rrh
...
@@ -1587,6 +1609,7 @@ add_executable(rrh_gw
...
@@ -1587,6 +1609,7 @@ add_executable(rrh_gw
${
OPENAIR_TARGETS
}
/ARCH/COMMON/common_lib.c
${
OPENAIR_TARGETS
}
/ARCH/COMMON/common_lib.c
${
HW_SOURCE
}
${
HW_SOURCE
}
${
TRANSPORT_SOURCE
}
${
TRANSPORT_SOURCE
}
${
T_SOURCE
}
)
)
target_include_directories
(
rrh_gw PRIVATE
${
OPENAIR_DIR
}
/common/utils/itti
)
target_include_directories
(
rrh_gw PRIVATE
${
OPENAIR_DIR
}
/common/utils/itti
)
target_link_libraries
(
rrh_gw
target_link_libraries
(
rrh_gw
...
@@ -1596,6 +1619,7 @@ target_link_libraries(rrh_gw
...
@@ -1596,6 +1619,7 @@ target_link_libraries(rrh_gw
target_link_libraries
(
rrh_gw rt pthread m
)
target_link_libraries
(
rrh_gw rt pthread m
)
target_link_libraries
(
rrh_gw
${
option_HW_lib
}
${
option_TP_lib
}
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
rrh_gw
${
option_HW_lib
}
${
option_TP_lib
}
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
rrh_gw
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
rrh_gw
${
LIB_LMS_LIBRARIES
}
)
target_link_libraries
(
rrh_gw
${
T_LIB
}
)
Message
(
"-- option_HW_lib=
${
option_HW_lib
}
"
)
Message
(
"-- option_HW_lib=
${
option_HW_lib
}
"
)
Message
(
"-- HW_SOURCE=
${
HW_SOURCE
}
"
)
Message
(
"-- HW_SOURCE=
${
HW_SOURCE
}
"
)
...
@@ -1661,6 +1685,7 @@ add_executable(oaisim
...
@@ -1661,6 +1685,7 @@ add_executable(oaisim
${
HW_SOURCE
}
${
HW_SOURCE
}
${
TRANSPORT_SOURCE
}
${
TRANSPORT_SOURCE
}
${
XFORMS_SOURCE
}
${
XFORMS_SOURCE
}
${
T_SOURCE
}
)
)
...
@@ -1675,6 +1700,7 @@ target_link_libraries (oaisim pthread m ${CONFIG_LIBRARIES} rt crypt ${CRYPTO_LI
...
@@ -1675,6 +1700,7 @@ target_link_libraries (oaisim pthread m ${CONFIG_LIBRARIES} rt crypt ${CRYPTO_LI
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
OPENPGM_LIBRARIES
}
)
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
OPENPGM_LIBRARIES
}
)
#Force link with forms, regardless XFORMS option
#Force link with forms, regardless XFORMS option
target_link_libraries
(
oaisim forms
)
target_link_libraries
(
oaisim forms
)
target_link_libraries
(
oaisim
${
T_LIB
}
)
...
@@ -1713,8 +1739,7 @@ target_link_libraries (oaisim_nos1 pthread m ${CONFIG_LIBRARIES} rt crypt ${CRYP
...
@@ -1713,8 +1739,7 @@ target_link_libraries (oaisim_nos1 pthread m ${CONFIG_LIBRARIES} rt crypt ${CRYP
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
OPENPGM_LIBRARIES
}
)
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
OPENPGM_LIBRARIES
}
)
#Force link with forms, regardless XFORMS option
#Force link with forms, regardless XFORMS option
target_link_libraries
(
oaisim_nos1 forms
)
target_link_libraries
(
oaisim_nos1 forms
)
target_link_libraries
(
oaisim_nos1
${
T_LIB
}
)
target_link_libraries
(
lte-softmodem
${
T_LIB
}
)
# Unitary tests for each piece of L1: example, mbmssim is MBMS L1 simulator
# Unitary tests for each piece of L1: example, mbmssim is MBMS L1 simulator
#####################################
#####################################
...
@@ -1724,10 +1749,11 @@ foreach(myExe dlsim ulsim pbchsim scansim mbmssim pdcchsim pucchsim prachsim syn
...
@@ -1724,10 +1749,11 @@ foreach(myExe dlsim ulsim pbchsim scansim mbmssim pdcchsim pucchsim prachsim syn
${
OPENAIR_BIN_DIR
}
/messages_xml.h
${
OPENAIR_BIN_DIR
}
/messages_xml.h
${
OPENAIR1_DIR
}
/SIMULATION/LTE_PHY/
${
myExe
}
.c
${
OPENAIR1_DIR
}
/SIMULATION/LTE_PHY/
${
myExe
}
.c
${
XFORMS_SOURCE
}
${
XFORMS_SOURCE
}
${
T_SOURCE
}
)
)
target_link_libraries
(
${
myExe
}
target_link_libraries
(
${
myExe
}
-Wl,--start-group SIMU UTIL SCHED_LIB PHY LFDS
${
ITTI_LIB
}
-Wl,--end-group
-Wl,--start-group SIMU UTIL SCHED_LIB PHY LFDS
${
ITTI_LIB
}
-Wl,--end-group
pthread m rt
${
CONFIG_LIBRARIES
}
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
pthread m rt
${
CONFIG_LIBRARIES
}
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
T_LIB
}
)
)
endforeach
(
myExe
)
endforeach
(
myExe
)
...
@@ -1770,8 +1796,23 @@ endforeach(myExe)
...
@@ -1770,8 +1796,23 @@ endforeach(myExe)
#../targets/TEST/PDCP/test_pdcp.c
#../targets/TEST/PDCP/test_pdcp.c
#../targets/TEST/PDCP/with_rlc/test_pdcp_rlc.c
#../targets/TEST/PDCP/with_rlc/test_pdcp_rlc.c
#ensure that the T header files are generated before targets depending on them
if
(
${
T_TRACER
}
)
add_dependencies
(
lte-softmodem generate_T
)
add_dependencies
(
lte-softmodem-nos1 generate_T
)
add_dependencies
(
rrh_gw generate_T
)
add_dependencies
(
oaisim generate_T
)
add_dependencies
(
oaisim_nos1 generate_T
)
add_dependencies
(
dlsim generate_T
)
add_dependencies
(
ulsim generate_T
)
add_dependencies
(
pbchsim generate_T
)
add_dependencies
(
scansim generate_T
)
add_dependencies
(
mbmssim generate_T
)
add_dependencies
(
pdcchsim generate_T
)
add_dependencies
(
pucchsim generate_T
)
add_dependencies
(
prachsim generate_T
)
add_dependencies
(
syncsim generate_T
)
endif
(
${
T_TRACER
}
)
##################################################
##################################################
# Generated specific cases is not regular code
# Generated specific cases is not regular code
...
...
cmake_targets/build_oai
View file @
91e57c8a
...
@@ -57,6 +57,7 @@ CFLAGS_PROCESSOR_USER=""
...
@@ -57,6 +57,7 @@ CFLAGS_PROCESSOR_USER=""
RUN_GROUP
=
0
RUN_GROUP
=
0
TEST_CASE_GROUP
=
""
TEST_CASE_GROUP
=
""
BUILD_DOXYGEN
=
0
BUILD_DOXYGEN
=
0
T_TRACER
=
"False"
trap
handle_ctrl_c INT
trap
handle_ctrl_c INT
function
print_help
()
{
function
print_help
()
{
...
@@ -125,6 +126,8 @@ Options
...
@@ -125,6 +126,8 @@ Options
Disables deadline scheduler of Linux kernel (>=3.14.x).
Disables deadline scheduler of Linux kernel (>=3.14.x).
--enable-deadline
--enable-deadline
Disables deadline scheduler of Linux kernel (>=3.14.x).
Disables deadline scheduler of Linux kernel (>=3.14.x).
--T-tracer
Enables the T tracer.
Usage (first build):
Usage (first build):
oaisim (eNB + UE): ./build_oai -I -g --oaisim -x --install-system-files
oaisim (eNB + UE): ./build_oai -I -g --oaisim -x --install-system-files
Eurecom EXMIMO + COTS UE : ./build_oai -I -g --eNB -x --install-system-files
Eurecom EXMIMO + COTS UE : ./build_oai -I -g --eNB -x --install-system-files
...
@@ -263,6 +266,10 @@ function main() {
...
@@ -263,6 +266,10 @@ function main() {
FORCE_LOWLATENCY_FLAG_USER
=
"True"
FORCE_LOWLATENCY_FLAG_USER
=
"True"
echo_info
"Enabling the usage of deadline scheduler"
echo_info
"Enabling the usage of deadline scheduler"
shift
1
;;
shift
1
;;
--T-tracer
)
T_TRACER
=
"True"
echo_info
"Enabling the T tracer"
shift
1
;;
-h
|
--help
)
-h
|
--help
)
print_help
print_help
exit
1
;;
exit
1
;;
...
@@ -421,6 +428,7 @@ function main() {
...
@@ -421,6 +428,7 @@ function main() {
echo
"set ( TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
"set ( TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
"set(PACKAGE_NAME
\"
${
lte_exec
}
\"
)"
>>
$cmake_file
echo
"set(PACKAGE_NAME
\"
${
lte_exec
}
\"
)"
>>
$cmake_file
echo
"set (LOWLATENCY
\"
${
LOWLATENCY_FLAG_USER
}
\"
)"
>>
$cmake_file
echo
"set (LOWLATENCY
\"
${
LOWLATENCY_FLAG_USER
}
\"
)"
>>
$cmake_file
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$lte_build_dir
/build
cd
$DIR
/
$lte_build_dir
/build
cmake ..
cmake ..
...
@@ -549,6 +557,7 @@ function main() {
...
@@ -549,6 +557,7 @@ function main() {
echo
"set ( PRINT_STATS
$PRINT_STATS
)"
>>
$cmake_file
echo
"set ( PRINT_STATS
$PRINT_STATS
)"
>>
$cmake_file
echo
"set ( RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
echo
"set ( RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
echo
"set ( ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set ( ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/
$oaisim_build_dir
/build
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/
$oaisim_build_dir
/build
mkdir
-p
$DIR
/
$oaisim_build_dir
/build
mkdir
-p
$DIR
/
$oaisim_build_dir
/build
...
@@ -614,6 +623,7 @@ function main() {
...
@@ -614,6 +623,7 @@ function main() {
echo
"set(XFORMS
$XFORMS
)"
>>
$cmake_file
echo
"set(XFORMS
$XFORMS
)"
>>
$cmake_file
echo
"set(RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
echo
"set(RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
echo
"set(ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set(ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
#[ "$CLEAN" = "1" ] && rm -rf $DIR/oaisim_mme_build_oai/build
#[ "$CLEAN" = "1" ] && rm -rf $DIR/oaisim_mme_build_oai/build
#mkdir -p $DIR/oaisim_mme_build_oai/build
#mkdir -p $DIR/oaisim_mme_build_oai/build
...
@@ -643,6 +653,7 @@ function main() {
...
@@ -643,6 +653,7 @@ function main() {
echo
"set(TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
"set(TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
'set(PACKAGE_NAME "\"rrh_gw\"")'
>>
$cmake_file
echo
'set(PACKAGE_NAME "\"rrh_gw\"")'
>>
$cmake_file
echo
"set (LOWLATENCY
\"
${
LOWLATENCY_FLAG_USER
}
\"
)"
>>
$cmake_file
echo
"set (LOWLATENCY
\"
${
LOWLATENCY_FLAG_USER
}
\"
)"
>>
$cmake_file
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$rrh_build_dir
/build
cd
$DIR
/
$rrh_build_dir
/build
cmake ..
cmake ..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment