From aa6920e0a80d8271be1dda59f613a1d2b0e1d3e6 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 27 Jun 2016 09:25:13 -0400 Subject: More janitorial work Install vpp api header files in /usr/include/vpp-api, instead of /usr/include/api. Someone will eventually complain if we continue with the status quo. Generate /usr/bin/vpp_plugin_configure, to correctly configure standalone plugin compilation against header files installed from the dev package. If a plugin's CFLAGS don't precisely match the installed vpp engine binary, subtle misbehavior can and will occur. Example: the ip4/ip6 main_t structure size / member offsets depend on DPDK=[0|1]. Screw that one up, and your brand-new configurable ip feature will mysteriously fail to appear, even though the plugin loads perfectly. Change-Id: I20c97fe1042808a79935863209d995c31953b98c Signed-off-by: Dave Barach --- vpp-api/python/Makefile.am | 4 ++-- vpp-api/python/pneum/pneum.c | 8 ++++---- vpp-api/python/pneum/test_pneum.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'vpp-api/python') diff --git a/vpp-api/python/Makefile.am b/vpp-api/python/Makefile.am index b96ff3d9..4d2d221d 100644 --- a/vpp-api/python/Makefile.am +++ b/vpp-api/python/Makefile.am @@ -33,11 +33,11 @@ libpneum_la_CPPFLAGS = BUILT_SOURCES += vpp_papi.py -vpp_papi.py: $(prefix)/../vpp/api/vpe.api pneum/api-gen.py +vpp_papi.py: $(prefix)/../vpp/vpp-api/vpe.api pneum/api-gen.py @echo " PYTHON API"; \ $(CC) $(CPPFLAGS) -E -P -C -x c $< \ | vppapigen --input - --python defs_$@; \ - echo "#include " \ + echo "#include " \ | $(CC) $(CPPFLAGS) -E -P -x c - | grep VL_API \ | @srcdir@/pneum/api-gen.py -i defs_$@ > @srcdir@/vpp_papi/$@ diff --git a/vpp-api/python/pneum/pneum.c b/vpp-api/python/pneum/pneum.c index 971c79bf..ac518493 100644 --- a/vpp-api/python/pneum/pneum.c +++ b/vpp-api/python/pneum/pneum.c @@ -31,16 +31,16 @@ #include #include -#include +#include #include "pneum.h" #define vl_typedefs /* define message structures */ -#include +#include #undef vl_typedefs #define vl_endianfun /* define message structures */ -#include +#include #undef vl_endianfun typedef struct { @@ -63,7 +63,7 @@ void vlib_cli_output (struct vlib_main_t * vm, char * fmt, ...) } #define vl_api_version(n,v) static u32 vpe_api_version = v; -#include +#include #undef vl_api_version void vl_client_add_api_signatures (vl_api_memclnt_create_t *mp) diff --git a/vpp-api/python/pneum/test_pneum.c b/vpp-api/python/pneum/test_pneum.c index 18627b3f..b3131953 100644 --- a/vpp-api/python/pneum/test_pneum.c +++ b/vpp-api/python/pneum/test_pneum.c @@ -36,13 +36,13 @@ #include #include -#include +#include #include #include #include "pneum.h" #define vl_typedefs /* define message structures */ -#include +#include #undef vl_typedefs volatile int sigterm_received = 0; -- cgit 1.2.3-korg