Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UPF
Commits
d2ac6c9a
Commit
d2ac6c9a
authored
Jul 14, 2021
by
wangyongshou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all pkg vppe and n4
parent
13941ce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
13 deletions
+39
-13
scripts/build_upf.sh
scripts/build_upf.sh
+39
-13
No files found.
scripts/build_upf.sh
View file @
d2ac6c9a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment