Commit a970c019 authored by kaltenbe's avatar kaltenbe
Browse files

small update for build script that fixes bug when only calling only with -w EXMIMO option


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7839 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 280a3c4e
...@@ -291,8 +291,8 @@ function main() { ...@@ -291,8 +291,8 @@ function main() {
lte_exec=lte-softmodem lte_exec=lte-softmodem
fi fi
# first generate the CMakefile in the right directory
if [ "$eNB" = "1" -o "$UE" = "1" ] ; then if [ "$eNB" = "1" -o "$UE" = "1" -o "$HW" = "EXMIMO" ] ; then
# LTE softmodem compilation # LTE softmodem compilation
[ "$CLEAN" = "1" ] && rm -rf $DIR/$lte_build_dir/build [ "$CLEAN" = "1" ] && rm -rf $DIR/$lte_build_dir/build
...@@ -310,6 +310,9 @@ function main() { ...@@ -310,6 +310,9 @@ function main() {
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 ..
fi
if [ "$eNB" = "1" ] ; then
echo_info "Compiling $lte_exec" echo_info "Compiling $lte_exec"
compilations \ compilations \
$lte_build_dir $lte_exec \ $lte_build_dir $lte_exec \
...@@ -330,7 +333,7 @@ function main() { ...@@ -330,7 +333,7 @@ function main() {
# ue_ip driver compilation # ue_ip driver compilation
echo_info "Compiling UE specific part" echo_info "Compiling UE specific part"
compilations \ compilations \
lte_build_oai ue_ip \ $lte_build_dir ue_ip \
CMakeFiles/ue_ip/ue_ip.ko $dbin/ue_ip.ko CMakeFiles/ue_ip/ue_ip.ko $dbin/ue_ip.ko
# mkdir -p $DIR/at_commands/build # mkdir -p $DIR/at_commands/build
...@@ -398,10 +401,6 @@ function main() { ...@@ -398,10 +401,6 @@ function main() {
if [ "$HW" = "EXMIMO" -a "$EPC" = "0" ] ; then if [ "$HW" = "EXMIMO" -a "$EPC" = "0" ] ; then
echo_info "Compiling Express MIMO 2 board drivers" echo_info "Compiling Express MIMO 2 board drivers"
[ "$CLEAN" = "1" ] && rm -rf $DIR/$lte_build_dir/build
mkdir -p $DIR/$lte_build_dir/build
cd $DIR/$lte_build_dir/build
cmake ..
compilations \ compilations \
$lte_build_dir openair_rf \ $lte_build_dir openair_rf \
CMakeFiles/openair_rf/openair_rf.ko $dbin/openair_rf.ko CMakeFiles/openair_rf/openair_rf.ko $dbin/openair_rf.ko
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment