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
wangjie
OpenXG-RAN
Commits
e6798f5b
Commit
e6798f5b
authored
Mar 28, 2017
by
Wilson Thong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#219 add build option for building eclipse project files
parent
5dfdec6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
cmake_targets/build_oai
cmake_targets/build_oai
+23
-10
cmake_targets/build_ue
cmake_targets/build_ue
+1
-0
No files found.
cmake_targets/build_oai
View file @
e6798f5b
...
@@ -55,6 +55,8 @@ T_TRACER="False"
...
@@ -55,6 +55,8 @@ T_TRACER="False"
DISABLE_HARDWARE_DEPENDENCY
=
"False"
DISABLE_HARDWARE_DEPENDENCY
=
"False"
CMAKE_BUILD_TYPE
=
""
CMAKE_BUILD_TYPE
=
""
UE_AUTOTEST_TRACE
=
"False"
UE_AUTOTEST_TRACE
=
"False"
BUILD_ECLIPSE
=
0
CMAKE_CMD
=
'cmake'
trap
handle_ctrl_c INT
trap
handle_ctrl_c INT
gen_nvram_path
=
$OPENAIR_DIR
/targets/bin
gen_nvram_path
=
$OPENAIR_DIR
/targets/bin
...
@@ -141,6 +143,8 @@ Options
...
@@ -141,6 +143,8 @@ Options
Disable HW dependency during installation
Disable HW dependency during installation
--ue-autotest-trace
--ue-autotest-trace
Enable specific traces for UE autotest framework
Enable specific traces for UE autotest framework
--build-eclipse
Build eclipse project files. Paths are auto corrected by fixprj.sh
Usage (first build):
Usage (first build):
oaisim (eNB + UE): ./build_oai -I --oaisim -x --install-system-files
oaisim (eNB + UE): ./build_oai -I --oaisim -x --install-system-files
Eurecom EXMIMO + COTS UE : ./build_oai -I --eNB -x --install-system-files
Eurecom EXMIMO + COTS UE : ./build_oai -I --eNB -x --install-system-files
...
@@ -179,6 +183,7 @@ function main() {
...
@@ -179,6 +183,7 @@ function main() {
GDB
=
1
GDB
=
1
CMAKE_BUILD_TYPE
=
"Debug"
CMAKE_BUILD_TYPE
=
"Debug"
echo_info
"Will Compile with gdb symbols and disable compiler optimization"
echo_info
"Will Compile with gdb symbols and disable compiler optimization"
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_BUILD_TYPE=Debug"
shift
;;
shift
;;
--eNB
)
--eNB
)
eNB
=
1
eNB
=
1
...
@@ -311,6 +316,11 @@ function main() {
...
@@ -311,6 +316,11 @@ function main() {
UHD_IMAGES_DIR
=
$2
UHD_IMAGES_DIR
=
$2
echo_info
"Downloading UHD images in the indicated location"
echo_info
"Downloading UHD images in the indicated location"
shift
2
;;
shift
2
;;
--build-eclipse
)
BUILD_ECLIPSE
=
1
CMAKE_CMD
=
"
$CMAKE_CMD
"
' -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -G"Eclipse CDT4 - Unix Makefiles"'
echo_info
"Enabling build eclipse project support"
shift
1
;;
-h
|
--help
)
-h
|
--help
)
print_help
print_help
exit
1
;;
exit
1
;;
...
@@ -321,6 +331,9 @@ function main() {
...
@@ -321,6 +331,9 @@ function main() {
esac
esac
done
done
CMAKE_CMD
=
"
$CMAKE_CMD
.."
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 RRH and eNB
#########################################################
#########################################################
...
@@ -495,7 +508,7 @@ function main() {
...
@@ -495,7 +508,7 @@ function main() {
fi
fi
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 ..
eval
$CMAKE_CMD
fi
fi
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
]
;
then
...
@@ -524,7 +537,7 @@ function main() {
...
@@ -524,7 +537,7 @@ function main() {
# mkdir -p $DIR/at_commands/build
# mkdir -p $DIR/at_commands/build
# cd $DIR/at_commands/build
# cd $DIR/at_commands/build
#
cmake ..
#
eval $CMAKE_CMD
# compilations \
# compilations \
# at_commands at_nas_ue \
# at_commands at_nas_ue \
# at_nas_ue $dbin/at_nas_ue
# at_nas_ue $dbin/at_nas_ue
...
@@ -533,7 +546,7 @@ function main() {
...
@@ -533,7 +546,7 @@ function main() {
mkdir
-p
$DIR
/nas_sim_tools/build
mkdir
-p
$DIR
/nas_sim_tools/build
cd
$DIR
/nas_sim_tools/build
cd
$DIR
/nas_sim_tools/build
cmake ..
eval
$CMAKE_CMD
compilations
\
compilations
\
nas_sim_tools usim
\
nas_sim_tools usim
\
usim
$dbin
/usim
usim
$dbin
/usim
...
@@ -562,7 +575,7 @@ function main() {
...
@@ -562,7 +575,7 @@ function main() {
mkdir
-p
build
mkdir
-p
build
cd
build
cd
build
rm
-f
*
sim
rm
-f
*
sim
cmake ..
eval
$CMAKE_CMD
fi
fi
if
[
"
$SIMUS_PHY
"
=
"1"
]
;
then
if
[
"
$SIMUS_PHY
"
=
"1"
]
;
then
...
@@ -640,7 +653,7 @@ function main() {
...
@@ -640,7 +653,7 @@ function main() {
[
"
$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
cd
$DIR
/
$oaisim_build_dir
/build
cd
$DIR
/
$oaisim_build_dir
/build
cmake ..
eval
$CMAKE_CMD
compilations
\
compilations
\
$oaisim_build_dir
$oaisim_exec
\
$oaisim_build_dir
$oaisim_exec
\
$oaisim_exec
$dbin
/
$oaisim_exec
.
$REL
$oaisim_exec
$dbin
/
$oaisim_exec
.
$REL
...
@@ -651,7 +664,7 @@ function main() {
...
@@ -651,7 +664,7 @@ function main() {
echo_info
"Compiling at_nas_ue"
echo_info
"Compiling at_nas_ue"
mkdir
-p
$DIR
/at_commands/build
mkdir
-p
$DIR
/at_commands/build
cd
$DIR
/at_commands/build
cd
$DIR
/at_commands/build
cmake ..
eval
$CMAKE_CMD
compilations
\
compilations
\
at_commands at_nas_ue
\
at_commands at_nas_ue
\
at_nas_ue
$dbin
/at_nas_ue
at_nas_ue
$dbin
/at_nas_ue
...
@@ -665,7 +678,7 @@ function main() {
...
@@ -665,7 +678,7 @@ function main() {
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/nas_sim_tools/build
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/nas_sim_tools/build
mkdir
-p
$DIR
/nas_sim_tools/build
mkdir
-p
$DIR
/nas_sim_tools/build
cd
$DIR
/nas_sim_tools/build
cd
$DIR
/nas_sim_tools/build
cmake ..
eval
$CMAKE_CMD
compilations
\
compilations
\
nas_sim_tools usim
\
nas_sim_tools usim
\
usim
$dbin
/usim
usim
$dbin
/usim
...
@@ -722,7 +735,7 @@ function main() {
...
@@ -722,7 +735,7 @@ function main() {
#[ "$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
#cd $DIR/oaisim_mme_build_oai/build
#cd $DIR/oaisim_mme_build_oai/build
#
cmake ..
#
eval $CMAKE_CMD
#compilations \
#compilations \
# oaisim_mme_build_oai oaisim_mme \
# oaisim_mme_build_oai oaisim_mme \
# oaisim_mme $dbin/oaisim_mme.$REL
# oaisim_mme $dbin/oaisim_mme.$REL
...
@@ -752,7 +765,7 @@ function main() {
...
@@ -752,7 +765,7 @@ function main() {
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$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 ..
eval
$CMAKE_CMD
compilations
\
compilations
\
rrh_gw rrh_gw
\
rrh_gw rrh_gw
\
rrh_gw
$dbin
/rrh_gw
rrh_gw
$dbin
/rrh_gw
...
@@ -847,7 +860,7 @@ fi
...
@@ -847,7 +860,7 @@ fi
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$OPENAIR_DIR
/cmake_targets/doxygen/build
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$OPENAIR_DIR
/cmake_targets/doxygen/build
mkdir
-p
$OPENAIR_DIR
/cmake_targets/doxygen/build
mkdir
-p
$OPENAIR_DIR
/cmake_targets/doxygen/build
cd
$OPENAIR_DIR
/cmake_targets/doxygen/build
cd
$OPENAIR_DIR
/cmake_targets/doxygen/build
cmake ..
eval
$CMAKE_CMD
make doc
make doc
)
>
&
$doxygen_log
)
>
&
$doxygen_log
fi
fi
...
...
cmake_targets/build_ue
View file @
e6798f5b
...
@@ -3,3 +3,4 @@
...
@@ -3,3 +3,4 @@
#sudo ./build_oai -c -C -I --install-optional-packages --UE -w USRP -V
#sudo ./build_oai -c -C -I --install-optional-packages --UE -w USRP -V
#sudo ./build_oai -c -C --UE -w USRP -V
#sudo ./build_oai -c -C --UE -w USRP -V
sudo
./build_oai
-c
-C
--UE
-w
USRP
sudo
./build_oai
-c
-C
--UE
-w
USRP
#sudo ./build_oai -c -C --UE -w USRP --build-eclipse
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