forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdo.sh
executable file
·27 lines (22 loc) · 812 Bytes
/
do.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
MY_OVS_BUILD_ROOT=`pwd`
export DPDK_DIR="$MY_OVS_BUILD_ROOT/../anlaneg_dpdk"
export DPDK_TARGET='x86_64-native-linuxapp-gcc'
export OVS_DIR="$MY_OVS_BUILD_ROOT"
export DPDK_BUILD="$DPDK_DIR/$DPDK_TARGET"
#function compile_dpdk()
#{
# (echo "compile dpdk";cd $DPDK_DIR;make EXTRA_CFLAGS="-O0 -g" install T=$DPDK_TARGET DESTDIR=install);
#}
function compile_dpdk_ovs()
{
#apt-get install automake libtool libnuma-dev libpcap-dev
(echo 'compile ovs';cd $OVS_DIR;./boot.sh;./configure --with-dpdk=$DPDK_BUILD --with-debug CFLAGS='-g' ; make -j4 1>/dev/null);
}
function compile_ovs()
{
#apt-get install automake libtool libnuma-dev libpcap-dev
(echo 'compile ovs';cd $OVS_DIR;./boot.sh;./configure --with-debug --prefix='/' CFLAGS='-g' ; make );
}
#compile_dpdk_ovs
compile_ovs