Commit 212e4b48 authored by Navid Nikaein's avatar Navid Nikaein

few updates for the autobuild

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6360 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent f5403672
...@@ -20,6 +20,7 @@ EXTRA_CFLAGS += -DKVERSION=$(KVERSION_LAST_DIGIT) ...@@ -20,6 +20,7 @@ EXTRA_CFLAGS += -DKVERSION=$(KVERSION_LAST_DIGIT)
all: xtlib all: xtlib
echo "Building for Kernel Version: $(KVERSION_LAST_DIGIT)" echo "Building for Kernel Version: $(KVERSION_LAST_DIGIT)"
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
chmod 777 xt_GTPUAH.ko
mv xt_GTPUAH.ko $(BIN_DIR)/ mv xt_GTPUAH.ko $(BIN_DIR)/
clean: libclean clean: libclean
......
...@@ -21,6 +21,7 @@ EXTRA_CFLAGS += -DKVERSION=$(KVERSION_LAST_DIGIT) ...@@ -21,6 +21,7 @@ EXTRA_CFLAGS += -DKVERSION=$(KVERSION_LAST_DIGIT)
all: xtlib all: xtlib
echo "Building for Kernel Version: $(KVERSION_LAST_DIGIT)" echo "Building for Kernel Version: $(KVERSION_LAST_DIGIT)"
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
chmod 777 xt_GTPURH.ko
mv xt_GTPURH.ko $(BIN_DIR)/ mv xt_GTPURH.ko $(BIN_DIR)/
clean: libclean clean: libclean
......
...@@ -305,6 +305,12 @@ check_install_freediamter(){ ...@@ -305,6 +305,12 @@ check_install_freediamter(){
} }
test_is_host_reachable() {
ping -c 1 $1 > /dev/null || { echo_fatal "$1 does not respond to ping" >&2 ; }
}
check_epc_s6a_certificate() { check_epc_s6a_certificate() {
if [ -d /usr/local/etc/freeDiameter ] if [ -d /usr/local/etc/freeDiameter ]
then then
...@@ -324,8 +330,9 @@ check_epc_s6a_certificate() { ...@@ -324,8 +330,9 @@ check_epc_s6a_certificate() {
./make_certs.sh ${1:-'eur'} ./make_certs.sh ${1:-'eur'}
if [ $# -lt 2 ] ; then if [ $# -lt 2 ] ; then
check_epc_s6a_certificate ${1:-'eur'} 2 check_epc_s6a_certificate ${1:-'eur'} 2
fi else
exit 1 exit 1
fi
} }
......
...@@ -814,13 +814,15 @@ if [ $RUN -ne 0 ]; then ...@@ -814,13 +814,15 @@ if [ $RUN -ne 0 ]; then
'EPC') 'EPC')
echo "############# running EPC #############" echo "############# running EPC #############"
#test_is_host_reachable
if [ $RUN_GDB -eq 0 ]; then if [ $RUN_GDB -eq 0 ]; then
$SUDO $OPENAIR_TARGETS/bin/oai_epc `echo $EXE_ARGUMENTS` $SUDO $OPENAIR_TARGETS/bin/oai_epc `echo $EXE_ARGUMENTS`
else else
$SUDO touch ~/.gdb_epc touch ~/.gdb_epc
$SUDO echo "file $OPENAIR_TARGETS/bin/oai_epc" > ~/.gdb_epc chmod 777 ~/.gdb_epc
$SUDO echo "set args $EXE_ARGUMENTS" >> ~/.gdb_epc echo "file $OPENAIR_TARGETS/bin/oai_epc" > ~/.gdb_epc
$SUDO echo "run" >> ~/.gdb_epc echo "set args $EXE_ARGUMENTS" >> ~/.gdb_epc
echo "run" >> ~/.gdb_epc
$SUDO gdb -nh -x ~/.gdb_epc 2>&1 $SUDO gdb -nh -x ~/.gdb_epc 2>&1
fi fi
;; ;;
...@@ -832,10 +834,11 @@ if [ $RUN -ne 0 ]; then ...@@ -832,10 +834,11 @@ if [ $RUN -ne 0 ]; then
if [ $RUN_GDB -eq 0 ]; then if [ $RUN_GDB -eq 0 ]; then
$SUDO exec ./openair-hss -c conf/hss.local.conf $SUDO exec ./openair-hss -c conf/hss.local.conf
else else
$SUDO touch ~/.gdb_hss touch ~/.gdb_hss
$SUDO echo "file ./openair-hss" > ~/.gdb_hss chmod 777 ~/.gdb_hss
$SUDO echo "set args -c conf/hss.local.conf" >> ~/.gdb_hss echo "file ./openair-hss" > ~/.gdb_hss
$SUDO echo "run" >> ~/.gdb_hss echo "set args -c conf/hss.local.conf" >> ~/.gdb_hss
echo "run" >> ~/.gdb_hss
$SUDO gdb -nh -x ~/.gdb_hss 2>&1 $SUDO gdb -nh -x ~/.gdb_hss 2>&1
fi fi
;; ;;
......
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