Thanks Dave!

From: Dave Barach (dbarach) [mailto:dbar...@cisco.com]
Sent: Tuesday, November 15, 2016 9:53 AM
To: Shravan Ambati <shravan.amb...@calix.com>
Cc: vpp-dev@lists.fd.io
Subject: RE: @DPDK@ in Makefile.am files

Dear Shravan,

You'll find something like this in the adjacent configure.ac:

AC_ARG_WITH(dpdk,
            AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
            [with_dpdk=1],
            [with_dpdk=0])

AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])

Autotools arranges for @DPDK@ in Makefile.am to turn into -DDPDK=[0|1] 
depending on whether the build system passes "--with-dpdk" [or 
"--without-dpdk"] when the generated configure script runs.

Here's how the build system decides:

.../build-data/platforms/vpp.mk has the following setting:

vnet_configure_args_vpp = --with-dpdk

while ../build-data/platforms/vpp_lite.mk has the following setting:

vnet_configure_args_vpp_lite =  # no dpdk


HTH... Dave

From: Shravan Ambati [mailto:shravan.amb...@calix.com]
Sent: Tuesday, November 15, 2016 12:17 PM
To: Dave Barach (dbarach) <dbar...@cisco.com<mailto:dbar...@cisco.com>>
Subject: @DPDK@ in Makefile.am files

Hi Dave,

I had a quick question on the Makefiles in vpp project.
Several the Makefile.am files use AM_CFLAGS = -Wall @DPDK@ ...
What do these @DPDK@ mean and what does it do.

I tried to google this but didn't get an answer.

Thanks
Shravan
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to