dpdkbuild: add EXTRA_DPDK_CFLAGS
Users can specify this flag on the make command line to pass extra CFLAGS to the DPDK submodule build. This can be used with older compilers that are not supported by DPDK, and require -fno-strict-aliasing to compile. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ib99e64297402c07395c009987ccffe29099dffab Reviewed-on: https://review.gerrithub.io/429489 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: <shahar.salzman@kaminario.com>
This commit is contained in:
parent
98e119f7a9
commit
e66d09029b
@ -98,6 +98,14 @@ else
|
||||
DPDK_CFLAGS += -Wno-error
|
||||
endif
|
||||
|
||||
ifdef EXTRA_DPDK_CFLAGS
|
||||
$(warning EXTRA_DPDK_CFLAGS defined, possibly to work around an unsupported compiler version)
|
||||
$(shell sleep 1)
|
||||
endif
|
||||
|
||||
# Allow users to specify EXTRA_DPDK_CFLAGS if they want to build DPDK using unsupported compiler versions
|
||||
DPDK_CFLAGS += $(EXTRA_DPDK_CFLAGS)
|
||||
|
||||
$(SPDK_ROOT_DIR)/dpdk/build: $(INTEL_IPSEC_MB_LIB)
|
||||
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/dpdk config T=$(DPDK_CONFIG) $(DPDK_OPTS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user