From: Anatoly Burakov Date: Fri, 13 Jun 2014 14:52:40 +0000 (+0100) Subject: igb_uio: make compilation optional X-Git-Tag: spdx-start~10734 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=f058c9ba63673e9231635602161747a0cb11e33e igb_uio: make compilation optional Currently, igb_uio is always compiled. Some Linux distributions may not want to include igb_uio with DPDK, so we need to make sure that igb_uio compilation for Linuxapp targets can be optional. Signed-off-by: Anatoly Burakov Tested-by: HuilongX Xu Tested-by: Waterman Cao Acked-by: Thomas Monjalon --- diff --git a/config/common_linuxapp b/config/common_linuxapp index 9f935698a7..d84a64c647 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -123,6 +123,7 @@ CONFIG_RTE_LOG_HISTORY=256 CONFIG_RTE_LIBEAL_USE_HPET=n CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n +CONFIG_RTE_EAL_IGB_UIO=y # # Compile Environment Abstraction Layer for linux diff --git a/lib/librte_eal/linuxapp/Makefile b/lib/librte_eal/linuxapp/Makefile index 9ff167cbfc..8fcfdf67ce 100644 --- a/lib/librte_eal/linuxapp/Makefile +++ b/lib/librte_eal/linuxapp/Makefile @@ -31,7 +31,9 @@ include $(RTE_SDK)/mk/rte.vars.mk +ifeq ($(CONFIG_RTE_EAL_IGB_UIO),y) DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += igb_uio +endif DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += kni