Message ID | 1458302396-24984-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Superseded |
Headers | show |
On 03/18/16 16:38, Nikolay Nikolaev wrote: > On Fri, Mar 18, 2016 at 1:59 PM, Maxim Uvarov <maxim.uvarov@linaro.org> wrote: >> Add script to quickly build odp with dpdk pktio support. >> >> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> >> --- >> .gitignore | 1 + >> scripts/builddpdk | 26 ++++++++++++++++++++++++++ >> 2 files changed, 27 insertions(+) >> create mode 100755 scripts/builddpdk >> >> diff --git a/.gitignore b/.gitignore >> index b4c146b..4945d25 100644 >> --- a/.gitignore >> +++ b/.gitignore >> @@ -31,6 +31,7 @@ core >> cscope.out >> depcomp >> doc/output >> +dpdk/ >> install-sh >> lib/ >> libtool >> diff --git a/scripts/builddpdk b/scripts/builddpdk >> new file mode 100755 >> index 0000000..b178c19 >> --- /dev/null >> +++ b/scripts/builddpdk >> @@ -0,0 +1,26 @@ >> +#!/bin/bash >> + >> +TARGET="x86_64-native-linuxapp-gcc" > You can use this form to allow setting the target externaly (e.g. if > you need to compile for ARM): > > TARGET=${TARGET:-"x86_64-native-linuxapp-gcc"} > echo "Building DPDK with target ${TARGET}" ok >> + >> +git clone http://dpdk.org/git/dpdk dpdk > this will result in a terrible output of git status. Maybe you can > clone to ".dpdk" (note the dot), > which will be ignored by git AFAIK. I added directory to .gitignore which looks like works good. >> +cd dpdk > You may use bash's pushd/popd for going back and forth between the > folders instead of cd. what is the difference? >> +git checkout -b bv2.2.0 v2.2.0 >> + >> +#Make and edit DPDK configuration >> +make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc > Maybe you want: > make config T=${TARGET} O=${TARGET} yes :) will send v2. Maxim. > regards, > Nikolay Nikolaev > >> +cd x86_64-native-linuxapp-gcc >> +sed -ri 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' .config >> +#To use I/O without DPDK supported NIC's enable pcap pmd: >> +sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config >> +cd .. >> + >> +#Build DPDK >> +make install T=${TARGET} EXTRA_CFLAGS="-fPIC" >> +cd .. >> + >> +#Build ODP >> +./bootstrap; >> +./configure --enable-test-vald --enable-test-perf --enable-test-cpp \ >> + --enable-debug --enable-debug-print \ >> + --with-dpdk-path=`pwd`/dpdk/${TARGET}/include >> +make >> -- >> 2.7.1.250.gff4ea60 >> >> _______________________________________________ >> lng-odp mailing list >> lng-odp@lists.linaro.org >> https://lists.linaro.org/mailman/listinfo/lng-odp
diff --git a/.gitignore b/.gitignore index b4c146b..4945d25 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ core cscope.out depcomp doc/output +dpdk/ install-sh lib/ libtool diff --git a/scripts/builddpdk b/scripts/builddpdk new file mode 100755 index 0000000..b178c19 --- /dev/null +++ b/scripts/builddpdk @@ -0,0 +1,26 @@ +#!/bin/bash + +TARGET="x86_64-native-linuxapp-gcc" + +git clone http://dpdk.org/git/dpdk dpdk +cd dpdk +git checkout -b bv2.2.0 v2.2.0 + +#Make and edit DPDK configuration +make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc +cd x86_64-native-linuxapp-gcc +sed -ri 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' .config +#To use I/O without DPDK supported NIC's enable pcap pmd: +sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config +cd .. + +#Build DPDK +make install T=${TARGET} EXTRA_CFLAGS="-fPIC" +cd .. + +#Build ODP +./bootstrap; +./configure --enable-test-vald --enable-test-perf --enable-test-cpp \ + --enable-debug --enable-debug-print \ + --with-dpdk-path=`pwd`/dpdk/${TARGET}/include +make
Add script to quickly build odp with dpdk pktio support. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- .gitignore | 1 + scripts/builddpdk | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 scripts/builddpdk