added option -C (build only conf files)
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7505 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -48,6 +48,7 @@ function help()
|
|||||||
echo_error "Options:"
|
echo_error "Options:"
|
||||||
echo_error "Mandatory arguments to long options are mandatory for short options too."
|
echo_error "Mandatory arguments to long options are mandatory for short options too."
|
||||||
echo_error " -c, --clean Clean the build generated files (build from scratch)"
|
echo_error " -c, --clean Clean the build generated files (build from scratch)"
|
||||||
|
echo_error " -C, --conf-files-only Generate only EPC configuration files (no build)"
|
||||||
echo_error " -d, --debug Compile with debug informations."
|
echo_error " -d, --debug Compile with debug informations."
|
||||||
echo_error " -h, --help Print this help."
|
echo_error " -h, --help Print this help."
|
||||||
echo_error " -g, --gtpu-easy-module Used for debugging GTPU (kernel module can be easily removed)"
|
echo_error " -g, --gtpu-easy-module Used for debugging GTPU (kernel module can be easily removed)"
|
||||||
@@ -67,6 +68,7 @@ function help()
|
|||||||
function main()
|
function main()
|
||||||
{
|
{
|
||||||
local -i clean=0
|
local -i clean=0
|
||||||
|
local -i conf_files_only=0
|
||||||
local -i verbose=0
|
local -i verbose=0
|
||||||
local -i s6a_server=0
|
local -i s6a_server=0
|
||||||
local cmake_args=" "
|
local cmake_args=" "
|
||||||
@@ -87,6 +89,11 @@ function main()
|
|||||||
echo "Clean the build generated files (build from scratch)"
|
echo "Clean the build generated files (build from scratch)"
|
||||||
shift;
|
shift;
|
||||||
;;
|
;;
|
||||||
|
-C | --conf-files-only)
|
||||||
|
conf_files_only=1
|
||||||
|
echo "Generate only conf files (no build)"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
-d | --debug)
|
-d | --debug)
|
||||||
cmake_args="$cmake_args -DDEBUG=1"
|
cmake_args="$cmake_args -DDEBUG=1"
|
||||||
echo "Compile with debug informations"
|
echo "Compile with debug informations"
|
||||||
@@ -250,27 +257,28 @@ function main()
|
|||||||
cd ./build
|
cd ./build
|
||||||
cmake $cmake_args ..
|
cmake $cmake_args ..
|
||||||
#make $make_args -j $NUM_CPU
|
#make $make_args -j $NUM_CPU
|
||||||
#make install
|
if [ $conf_files_only -eq 0 ]; then
|
||||||
compilations \
|
compilations \
|
||||||
epc_build_oai mme_gw \
|
epc_build_oai mme_gw \
|
||||||
mme_gw $dbin/mme_gw.$REL
|
mme_gw $dbin/mme_gw.$REL
|
||||||
# Only integrated mme+sgw+pgw is operational today
|
# Only integrated mme+sgw+pgw is operational today
|
||||||
# compilations \
|
# compilations \
|
||||||
# epc_build_oai oai_sgw \
|
# epc_build_oai oai_sgw \
|
||||||
# oai_sgw $dbin/oai_sgw.$REL
|
# oai_sgw $dbin/oai_sgw.$REL
|
||||||
compilations \
|
compilations \
|
||||||
epc_build_oai xt_GTPUAH_lib \
|
epc_build_oai xt_GTPUAH_lib \
|
||||||
libxt_GTPUAH_lib.so $dbin
|
libxt_GTPUAH_lib.so $dbin
|
||||||
compilations \
|
compilations \
|
||||||
epc_build_oai xt_GTPUAH \
|
epc_build_oai xt_GTPUAH \
|
||||||
CMakeFiles/xt_GTPUAH/xt_GTPUAH.ko $dbin
|
CMakeFiles/xt_GTPUAH/xt_GTPUAH.ko $dbin
|
||||||
|
|
||||||
echo_info "Copying iptables libraries into system directory: /lib/xtables"
|
echo_info "Copying iptables libraries into system directory: /lib/xtables"
|
||||||
if [ -f $dbin/libxt_GTPUAH_lib.so ] ; then
|
if [ -f $dbin/libxt_GTPUAH_lib.so ] ; then
|
||||||
$SUDO rm -f /lib/xtables/libxt_GTPUAH.so
|
$SUDO rm -f /lib/xtables/libxt_GTPUAH.so
|
||||||
$SUDO ln -s $dbin/libxt_GTPUAH_lib.so /lib/xtables/libxt_GTPUAH.so
|
$SUDO ln -s $dbin/libxt_GTPUAH_lib.so /lib/xtables/libxt_GTPUAH.so
|
||||||
else
|
else
|
||||||
echo_fatal "not installed GTP-U iptables: binaries not found"
|
echo_fatal "not installed GTP-U iptables: binaries not found"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Do EPC
|
# Do EPC
|
||||||
if [ -f $OPENAIR_DIR/cmake_targets/epc_build_oai/build/mme_fd.conf ] ; then
|
if [ -f $OPENAIR_DIR/cmake_targets/epc_build_oai/build/mme_fd.conf ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user