Commit d2ac6c9a authored by wangyongshou's avatar wangyongshou

all pkg vppe and n4

parent 13941ce0
...@@ -70,11 +70,11 @@ function make_vpp_package() ...@@ -70,11 +70,11 @@ function make_vpp_package()
then then
cd $VPPPATH; cd $VPPPATH;
./pre_install.sh > /dev/null 2>&1; ./pre_install.sh > /dev/null 2>&1;
echo "vpp pre install finished!!!" echo "pre install vppe finished!!!"
make rebuild > /dev/null 2>&1; make rebuild > /dev/null 2>&1;
echo "vpp build finished!!!" echo "build vppe finished!!!"
make pkg-deb-debug > /dev/null 2>&1; make pkg-deb-debug > /dev/null 2>&1;
echo "vpp pkg finished!!!" echo "pkg vppe finished!!!"
cd ..; cd ..;
elif [ $1 = "release" ] elif [ $1 = "release" ]
then then
...@@ -108,7 +108,7 @@ function make_vpp_package() ...@@ -108,7 +108,7 @@ function make_vpp_package()
cp -f $VPPINSTALL/$PKG_NAME $UPFINSTALL/pkg cp -f $VPPINSTALL/$PKG_NAME $UPFINSTALL/pkg
echo "vpp buptvppe.tar.gz finished!!!" echo "pkg buptvppe.tar.gz finished!!!"
#clear #clear
find $VPPPATH/${BUILD_ROOT}/ -name '*.c' -type f -print -exec rm -rf {} \ > /dev/null 2>&1; find $VPPPATH/${BUILD_ROOT}/ -name '*.c' -type f -print -exec rm -rf {} \ > /dev/null 2>&1;
...@@ -137,6 +137,31 @@ function n4(){ ...@@ -137,6 +137,31 @@ function n4(){
mv $N4SRC/main $N4PATH mv $N4SRC/main $N4PATH
} }
function make_n4_package()
{
N4_NAME="buptn4.tar.gz"
echo "start build 5GN4"
cd $N4SRC
go build
echo "build 5GN4 success"
#mkdir -p $N4PATH
if [ -f $UPFINSTALL/pkg/$N4_NAME ] ; then
rm -f $UPFINSTALL/pkg/$N4_NAME
fi
cd $UPFINSTALL/pkg;
mkdir n4 ;
mv $N4SRC/main n4 > /dev/null 2>&1 ;
tar -zcvf $N4_NAME n4 > /dev/null 2>&1 ;
rm -rf n4
cd .. ;
echo "pkg buptn4.tar.gz finished!!!"
}
function clear_all() function clear_all()
{ {
cd $VPPPATH cd $VPPPATH
...@@ -185,6 +210,12 @@ function main() { ...@@ -185,6 +210,12 @@ function main() {
vpp vpp
shift shift
;; ;;
--all-dp)
pre_create
make_n4_package
make_vpp_package debug
shift;
;;
--vpp-dp | --vpp-debug-pkg) --vpp-dp | --vpp-debug-pkg)
pre_create pre_create
make_vpp_package debug make_vpp_package debug
...@@ -197,14 +228,9 @@ function main() { ...@@ -197,14 +228,9 @@ function main() {
;; ;;
--n4-dp | --vpp-debug-pkg) --n4-dp | --vpp-debug-pkg)
pre_create pre_create
make_n4_package debug make_n4_package
shift; shift;
;; ;;
--n4-rp | --vpp-release-pkg)
pre_create
make_n4_package release
shift;
;;
--n4) --n4)
n4 n4
shift shift
......
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