]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_efd/Makefile
efd: move AVX2 lookup in its own compilation unit
[dpdk.git] / lib / librte_efd / Makefile
index b9277bc5d79fb141d6df799de263b02cb7fad37b..35bb2bd64af0082d3fa12c4cc832ca579dba7707 100644 (file)
@@ -44,6 +44,12 @@ LIBABIVER := 1
 # all source are stored in SRCS-y
 SRCS-$(CONFIG_RTE_LIBRTE_EFD) := rte_efd.c
 
+# if the compiler supports AVX2, add efd x86 file
+ifneq ($(findstring CC_SUPPORT_AVX2,$(MACHINE_CFLAGS)),)
+SRCS-$(CONFIG_RTE_ARCH_X86) += rte_efd_x86.c
+CFLAGS_rte_efd_x86.o += -mavx2
+endif
+
 # install this header file
 SYMLINK-$(CONFIG_RTE_LIBRTE_EFD)-include := rte_efd.h