[EXPERIMENTAL,2/3] helper: platform: dpdk: build l2fwd as well

Message ID 1470323563-32164-2-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss Aug. 4, 2016, 3:12 p.m.
This could be useful for testing DPDK itself.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 helper/platform/dpdk | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/helper/platform/dpdk b/helper/platform/dpdk
index 209105e..192a305 100644
--- a/helper/platform/dpdk
+++ b/helper/platform/dpdk
@@ -45,6 +45,10 @@  dpdk_build() {
 # You'll probably need to specify the kernel sources for the kernel modules
 #    export RTE_KERNELDIR="/usr/src/linux-headers-3.19.0-33-generic/"
     make -j ${NUM_CPUS} build T="${dpdk_target}" O="${dpdk_target}" EXTRA_CFLAGS="-fPIC -g -O3"
+    cd examples/l2fwd
+    export RTE_SDK=$ROOT_DIR_DPDK
+    export RTE_TARGET=${dpdk_target}
+    make -j ${NUM_CPUS} T="${dpdk_target}" EXTRA_CFLAGS="-fPIC -g -O3"
     RETVAL=$?
     popd >/dev/null
     return $RETVAL