From: Radu Nicolau Date: Thu, 26 Oct 2017 14:15:13 +0000 (+0100) Subject: examples/ipsec-secgw: fix build without security lib X-Git-Tag: spdx-start~1082 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1b028d5e81be5a76cc6ee615695866d53d9e5b47;p=dpdk.git examples/ipsec-secgw: fix build without security lib Build fails when rte_security is disabled; make rte_security mandatory Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Signed-off-by: Radu Nicolau Tested-by: David Marchand --- diff --git a/examples/Makefile b/examples/Makefile index 418383a978..d31c9fde9d 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -50,7 +50,7 @@ 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) +ifeq ($(CONFIG_RTE_LIBRTE_ACL)$(CONFIG_RTE_LIBRTE_HASH)$(CONFIG_RTE_LIBRTE_LPM)$(CONFIG_RTE_LIBRTE_SECURITY),yyyy) DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw endif DIRS-$(CONFIG_RTE_LIBRTE_HASH) += ipv4_multicast diff --git a/examples/ipsec-secgw/Makefile b/examples/ipsec-secgw/Makefile index 17e9155102..9fd33cb7f2 100644 --- a/examples/ipsec-secgw/Makefile +++ b/examples/ipsec-secgw/Makefile @@ -38,6 +38,12 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc include $(RTE_SDK)/mk/rte.vars.mk +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y) +$(error "RTE_LIBRTE_SECURITY is required to build ipsec-secgw") +endif +endif + APP = ipsec-secgw CFLAGS += -O3 -gdwarf-2