Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Conflicts: cmake/modules/BuildDPDK.cmake
this change is not cherry-picked from master, because master has
picked up an updated SPDK which is in turn using a DPDK containing fixes like
a385972c,
3370975b,
74f27710 and
e5e193ac and
a36b40dd. these changes either
disables the"address-of-packed-member" warnings or addresses
"error=stringop-truncation" warnings.
"\"${target}\" not listed in ${supported_targets}")
endif()
+ set(EXTRA_CFLAGS "-Wno-unknown-warning-option -Wno-stringop-truncation -Wno-address-of-packed-member -fPIC")
+
include(ExternalProject)
ExternalProject_Add(dpdk-ext
SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/spdk/dpdk
CONFIGURE_COMMAND $(MAKE) config O=${dpdk_dir} T=${target}
- BUILD_COMMAND env CC=${CMAKE_C_COMPILER} $(MAKE) O=${dpdk_dir} EXTRA_CFLAGS=-fPIC
+ BUILD_COMMAND env CC=${CMAKE_C_COMPILER} $(MAKE) O=${dpdk_dir} EXTRA_CFLAGS=${EXTRA_CFLAGS}
BUILD_IN_SOURCE 1
INSTALL_COMMAND "true")
ExternalProject_Add_Step(dpdk-ext patch-config