From b346ed47d63d28a61f7a44ffcd60ff6ec16c0744 Mon Sep 17 00:00:00 2001 From: Sergio Gonzalez Monroy Date: Fri, 11 Mar 2016 15:32:30 +0000 Subject: [PATCH] examples: fix build dependencies Building examples fails with CONFIG_RTE_LIBRTE_LPM=n The error is caused by the new app ipsec-secgw that gets build without checking for configuration dependencies. Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") The patch also reorders a couple entries to maintain alphabetic order. Reported-by: Jan Viktorin Signed-off-by: Sergio Gonzalez Monroy --- examples/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index acd93b822a..4373d4dc29 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -51,9 +51,13 @@ ifeq ($(CONFIG_RTE_LIBRTE_LPM),y) DIRS-$(CONFIG_RTE_IP_FRAG) += ip_reassembly DIRS-$(CONFIG_RTE_IP_FRAG) += ip_fragmentation endif +ifeq ($(CONFIG_RTE_LIBRTE_ACL)$(CONFIG_RTE_LIBRTE_HASH)$(CONFIG_RTE_LIBRTE_LPM),yyy) +DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw +endif DIRS-y += ipv4_multicast DIRS-$(CONFIG_RTE_LIBRTE_KNI) += kni DIRS-y += l2fwd +DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += l2fwd-crypto DIRS-$(CONFIG_RTE_LIBRTE_IVSHMEM) += l2fwd-ivshmem DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += l2fwd-jobstats DIRS-y += l2fwd-keepalive @@ -81,7 +85,5 @@ DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += vhost_xen DIRS-y += vmdq DIRS-y += vmdq_dcb DIRS-$(CONFIG_RTE_LIBRTE_POWER) += vm_power_manager -DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += l2fwd-crypto -DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw include $(RTE_SDK)/mk/rte.extsubdir.mk -- 2.20.1