X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_efd%2FMakefile;h=35bb2bd64af0082d3fa12c4cc832ca579dba7707;hb=5f180ae32962f8b3d9a04a4c91f41e1484376793;hp=b9277bc5d79fb141d6df799de263b02cb7fad37b;hpb=c7fbc80fe60f2915ce6e718ac0f13cfd33e406d1;p=dpdk.git diff --git a/lib/librte_efd/Makefile b/lib/librte_efd/Makefile index b9277bc5d7..35bb2bd64a 100644 --- a/lib/librte_efd/Makefile +++ b/lib/librte_efd/Makefile @@ -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