]> git.proxmox.com Git - mirror_ovs.git/commit
dpdkstrip: add a preprocessor tool for stripping dpdk blocks
authoraaron conole <aconole@redhat.com>
Fri, 4 Aug 2017 17:00:55 +0000 (13:00 -0400)
committerRussell Bryant <russell@ovn.org>
Tue, 8 Aug 2017 17:40:56 +0000 (13:40 -0400)
commit3828b456124b85093b414984daacbc8fae39dfca
tree948c222f4cf70406b770bc41ec74b91431e66a02
parentac416a3ab2d200284b4eeba0544056694850e65d
dpdkstrip: add a preprocessor tool for stripping dpdk blocks

Normally, in C code, pre-processing macros can be used to enable/disable
specific functionality based on switches passed to configure.  This works
for DPDK using the --with-dpdk flag, which sets the DPDK_NETDEV define to
the appropriate value.

However, not all files are processed with the C pre-processor.  For those
files which are not, this commit adds a new pre-processor tool for .in
files to either include or exclude those stanzas as appropriate.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
Makefile.am
build-aux/dpdkstrip.pl [new file with mode: 0644]