Skip to content

Commit

Permalink
scripts: update devbuild script
Browse files Browse the repository at this point in the history
Script should use the supported dpdk and odp-dpdk versions
for the current version of ofp.

Signed-off-by: Bogdan Pricope <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
  • Loading branch information
bogdanPricope authored and MatiasElo committed May 19, 2020
1 parent f895ea8 commit 8ffef20
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/devbuild_ofp_odp_dpdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo '#include "pcap.h"' | cpp -H -o /dev/null 2>&1 || \
echo '#include "numa.h"' | cpp -H -o /dev/null 2>&1 || \
echo "Warning: NUMA library is not installed. You need to install libnuma-dev"

git -c advice.detachedHead=false clone -q --depth=1 --branch=17.11 http://dpdk.org/git/dpdk-stable dpdk
git -c advice.detachedHead=false clone -q --depth=1 --branch=18.11 http://dpdk.org/git/dpdk-stable dpdk
pushd dpdk
git log --oneline --decorate

Expand All @@ -27,21 +27,20 @@ sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config
popd

#Build DPDK
make -j${JOBS} build O=${TARGET} EXTRA_CFLAGS="-fPIC"
make install O=${TARGET} DESTDIR=${TARGET}
make -j${JOBS} install T=${TARGET} DESTDIR=./install EXTRA_CFLAGS="-fPIC"
popd

# Clone odp-dpdk
git clone -q https://github.com/Linaro/odp-dpdk
git clone -q https://github.com/OpenDataPlane/odp-dpdk
pushd odp-dpdk
git checkout v1.19.0.2_DPDK_17.11
git checkout -b v1.23.1 d25d47b3c5b1dcde440960c259d5066c2dec0a2d

export CONFIGURE_FLAGS="--enable-shared=yes --enable-helper-linux"

#Build ODP
./bootstrap
./configure --enable-debug --enable-debug-print \
--with-dpdk-path=`pwd`/../dpdk/${TARGET}/usr/local --prefix=$(pwd)/install
--with-dpdk-path=`pwd`/../dpdk/install --prefix=$(pwd)/install
make -j${JOBS} install
popd

Expand Down

0 comments on commit 8ffef20

Please sign in to comment.