Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
1935192e
Commit
1935192e
authored
Dec 09, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6220
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
ab0816d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
125 deletions
+136
-125
targets/build_helper.bash
targets/build_helper.bash
+112
-113
targets/build_oai.bash
targets/build_oai.bash
+24
-12
No files found.
targets/build_helper.bash
View file @
1935192e
...
@@ -36,17 +36,17 @@
...
@@ -36,17 +36,17 @@
# Helper Func
# Helper Func
######################################
######################################
ROOT_UID
=
0
declare
ROOT_UID
=
0
E_NOTROOT
=
67
declare
E_NOTROOT
=
67
NUM_CPU
=
`
cat
/proc/cpuinfo |
grep
processor |
wc
-l
`
declare
NUM_CPU
=
`
cat
/proc/cpuinfo |
grep
processor |
wc
-l
`
OAI_INSTALLED
=
1
declare
OAI_INSTALLED
=
1
PWD
=
`
pwd
`
declare
PWD
=
`
pwd
`
USER
=
`
whoami
`
declare
USER
=
`
whoami
`
BUILD_FROM_MAKEFILE
=
0
declare
BUILD_FROM_MAKEFILE
=
0
SUDO
=
''
declare
SUDO
=
''
PW
=
''
declare
PW
=
''
UBUNTU_REL
=
`
lsb_release
-r
|
cut
-f2
`
declare
UBUNTU_REL
=
`
lsb_release
-r
|
cut
-f2
`
UBUNTU_REL_NAME
=
`
lsb_release
-cs
`
declare
UBUNTU_REL_NAME
=
`
lsb_release
-cs
`
set_build_from_makefile
(){
set_build_from_makefile
(){
BUILD_FROM_MAKEFILE
=
$1
BUILD_FROM_MAKEFILE
=
$1
...
@@ -701,7 +701,6 @@ compile_ltesoftmodem() {
...
@@ -701,7 +701,6 @@ compile_ltesoftmodem() {
cd
$OPENAIR_TARGETS
/RT/USER
cd
$OPENAIR_TARGETS
/RT/USER
if
[
-f
Makefile
]
;
then
if
[
-f
Makefile
]
;
then
echo
"LTE softmodem compiling directives:
$SOFTMODEM_DIRECTIVES
"
echo
"LTE softmodem compiling directives:
$SOFTMODEM_DIRECTIVES
"
echo
"OAI_CLEAN:
$OAI_CLEAN
"
if
[
$OAI_CLEAN
-ne
0
]
;
then
if
[
$OAI_CLEAN
-ne
0
]
;
then
echo
"Cleaning LTE softmodem"
echo
"Cleaning LTE softmodem"
make cleanall
>
/dev/null 2>&1
make cleanall
>
/dev/null 2>&1
...
...
targets/build_oai.bash
View file @
1935192e
...
@@ -55,8 +55,8 @@ declare ENB_S1=1
...
@@ -55,8 +55,8 @@ declare ENB_S1=1
declare
REL
=
"REL8"
# REL8, REL10
declare
REL
=
"REL8"
# REL8, REL10
declare
RT
=
"NONE"
# RTAI, RT_PREMPT or RT_DISABLED, NONE
declare
RT
=
"NONE"
# RTAI, RT_PREMPT or RT_DISABLED, NONE
declare
DEBUG
=
0
declare
DEBUG
=
0
declare
CONFIG_FILE
=
""
declare
CONFIG_FILE
=
"
"
declare
EXE_ARGUMENTS
=
""
declare
EXE_ARGUMENTS
=
"
"
declare
RUN_GDB
=
0
declare
RUN_GDB
=
0
declare
DISABLE_CHECK_INSTALLED_SOFTWARE
=
0
declare
DISABLE_CHECK_INSTALLED_SOFTWARE
=
0
declare
OAI_CLEAN
=
0
declare
OAI_CLEAN
=
0
...
@@ -114,8 +114,20 @@ fi
...
@@ -114,8 +114,20 @@ fi
;;
;;
-C
|
--config-file
)
-C
|
--config-file
)
CONFIG_FILE
=
$2
CONFIG_FILE
=
$2
# may be relative path
if
[
-f
$(
dirname
$(
readlink
-f
$0
))
/
$CONFIG_FILE
]
;
then
CONFIG_FILE
=
$(
dirname
$(
readlink
-f
$0
))
/
$CONFIG_FILE
echo
"setting config file to:
$CONFIG_FILE
"
echo
"setting config file to:
$CONFIG_FILE
"
EXE_ARGUMENTS
=
"
$EXE_ARGUMENTS
-O
$CONFIG_FILE
"
else
# may be absolute path
if
[
-f
$CONFIG_FILE
]
;
then
echo
"setting config file to:
$CONFIG_FILE
"
else
echo
"config file not found"
exit
1
fi
fi
EXE_ARGUMENTS
=
"
$EXE_ARGUMENTS
-O
$CONFIG_FILE
"
shift
2
;
shift
2
;
;;
;;
-d
|
--debug
)
-d
|
--debug
)
...
@@ -137,7 +149,7 @@ fi
...
@@ -137,7 +149,7 @@ fi
DEBUG
=
1
DEBUG
=
1
RUN_GDB
=
1
RUN_GDB
=
1
echo
"Running with gdb"
echo
"Running with gdb"
shift
2
;
shift
;
;;
;;
-K
|
--itti-dump-file
)
-K
|
--itti-dump-file
)
ITTI_ANALYZER
=
1
ITTI_ANALYZER
=
1
...
@@ -414,7 +426,7 @@ build_enb(){
...
@@ -414,7 +426,7 @@ build_enb(){
echo_info
"7.1 finished ltesoftmodem target: check the installation log file bin/install_log.txt"
echo_info
"7.1 finished ltesoftmodem target: check the installation log file bin/install_log.txt"
if
[
$HW
==
"EXMIMO"
]
;
then
if
[
$HW
==
"EXMIMO"
]
;
then
compile_exmimo2_driver
output
=
$(
compile_exmimo2_driver
>>
bin/install_log.txt 2>&1
)
fi
fi
fi
fi
if
[
$TARGET
=
"OAISIM"
]
;
then
if
[
$TARGET
=
"OAISIM"
]
;
then
...
@@ -652,16 +664,16 @@ esac
...
@@ -652,16 +664,16 @@ esac
echo_info
"11. Running ... To be done"
echo_info
"11. Running ... To be done"
if
[
$TARGET
==
"SOFTMODEM"
]
;
then
if
[
$TARGET
==
"SOFTMODEM"
]
;
then
if
[
$HW
==
"EXMIMO"
]
;
then
if
[
$HW
==
"EXMIMO"
]
;
then
bash
$OPENAIR_TARGETS
/RT/USER/init_exmimo2.sh
chmod
777
$OPENAIR_TARGETS
/RT/USER/init_exmimo2.sh
$OPENAIR_TARGETS
/RT/USER/init_exmimo2.sh
fi
fi
echo
"############# running ltesoftmodem #############"
echo
"############# running ltesoftmodem #############"
$OPENAIR_TARGETS
/RT/USER/lte-softmodem
cd
$OPENAIR_TARGETS
/RT/USER
;
bash ./init_exmimo2.sh
;
if
[
$RUN_GDB
-eq
0
]
;
then
if
[
$RUN_GDB
-eq
0
]
;
then
$OPENAIR_TARGETS
/RT/USER/lte-softmodem
"
$EXE_ARGUMENTS
"
echo
"EXE_ARGUMENTS
$EXE_ARGUMENTS
"
exec
$OPENAIR_TARGETS
/bin/lte-softmodem
"
$EXE_ARGUMENTS
"
else
else
touch
~/.gdb_lte_softmodem
touch
~/.gdb_lte_softmodem
echo
"file
$OPENAIR_TARGETS
/
RT/USER
/lte-softmodem"
>
~/.gdb_lte_softmodem
echo
"file
$OPENAIR_TARGETS
/
bin
/lte-softmodem"
>
~/.gdb_lte_softmodem
echo
"set args
$EXE_ARGUMENTS
"
>>
~/.gdb_lte_softmodem
echo
"set args
$EXE_ARGUMENTS
"
>>
~/.gdb_lte_softmodem
echo
"run"
>>
~/.gdb_lte_softmodem
echo
"run"
>>
~/.gdb_lte_softmodem
gdb
-nh
-x
~/.gdb_lte_softmodem 2>&1
gdb
-nh
-x
~/.gdb_lte_softmodem 2>&1
...
...
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