-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile and test also with odp-dpdk. Signed-off-by: Jere Leppänen <[email protected]> Reviewed-by: Tuomas Taipale <[email protected]>
- Loading branch information
1 parent
cf466c0
commit f6580bb
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash -xe | ||
|
||
JOBS=${JOBS:-$(nproc)} | ||
|
||
if [ "${CC#clang}" != "${CC}" ] ; then | ||
export CXX="clang++" | ||
fi | ||
|
||
cd $(readlink -e $(dirname $0))/.. | ||
|
||
# Configure hugepages | ||
sysctl vm.nr_hugepages=1000 | ||
mkdir -p /mnt/huge | ||
mount -t hugetlbfs nodev /mnt/huge | ||
|
||
# Build ODP | ||
git clone https://github.com/OpenDataPlane/odp-dpdk --branch v1.35.0.0_DPDK_19.11 --depth 1 | ||
pushd odp-dpdk | ||
./bootstrap | ||
./configure --prefix=$(pwd)/install --enable-deprecated --without-tests --without-examples | ||
make -j${JOBS} install | ||
popd | ||
|
||
# Build OFP | ||
./bootstrap | ||
./configure --with-odp-lib=odp-dpdk --with-odp=$(pwd)/odp-dpdk/install --prefix=$(pwd)/install --enable-cunit | ||
make -j${JOBS} install | ||
|
||
# Test OFP | ||
make check |