Commit d2ac6c9a authored by wangyongshou's avatar wangyongshou

all pkg vppe and n4

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