rte_vhost: include rte_config.h via compiler option
Some rte_vhost files use #ifdef RTE_LIBRTE_VHOST_NUMA, but they don't explicitly include rte_config.h, which defines this macro. Instruct the compiler to pre-include rte_config.h in the same way DPDK's build system does. Change-Id: Iddde76b8c3d0956ccd5f481956cede650d858586 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/377595 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
52ae747fe2
commit
96386d4d59
@ -36,6 +36,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||
|
||||
CFLAGS += -I.
|
||||
CFLAGS += $(ENV_CFLAGS)
|
||||
CFLAGS += -include rte_config.h
|
||||
|
||||
# These are the DPDK vhost files copied (for now) into SPDK
|
||||
C_SRCS += fd_man.c socket.c vhost_user.c vhost.c
|
||||
|
Loading…
Reference in New Issue
Block a user