From 022a11234efa52d4b9e7d8c75b787bfc2c665ba8 Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Wed, 9 Apr 2025 14:00:34 -0400 Subject: [PATCH] nss-ecm: dynamically set frontend based on selection Only build frontend based on selected acceleration engine. ECM can build frontends for NSS/SFE/PPE, but for now only include option for NSS. Signed-off-by: Sean Khan --- qca-nss-ecm/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qca-nss-ecm/Makefile b/qca-nss-ecm/Makefile index 8454eef..0cadd29 100644 --- a/qca-nss-ecm/Makefile +++ b/qca-nss-ecm/Makefile @@ -70,15 +70,17 @@ EXTRA_CFLAGS+= \ -I$(STAGING_DIR)/usr/include/nat46 ifneq (, $(findstring $(CONFIG_TARGET_BOARD), "qualcommax" "ipq60xx")) -ECM_MAKE_OPTS+=ECM_FRONT_END_NSS_ENABLE=y \ - ECM_FRONT_END_SFE_ENABLE=n \ - ECM_NON_PORTED_SUPPORT_ENABLE=y \ +ECM_MAKE_OPTS+= ECM_NON_PORTED_SUPPORT_ENABLE=y \ ECM_INTERFACE_VLAN_ENABLE=y \ ECM_CLASSIFIER_MARK_ENABLE=y \ ECM_CLASSIFIER_DSCP_ENABLE=y \ ECM_CLASSIFIER_PCC_ENABLE=n endif +ifneq ($(CONFIG_PACKAGE_kmod-qca-nss-drv),) +ECM_MAKE_OPTS+=ECM_FRONT_END_NSS_ENABLE=y +endif + # Disable ECM IPv6 support when global IPv6 support is disabled. ifneq ($(CONFIG_IPV6),) ECM_MAKE_OPTS+=ECM_IPV6_ENABLE=y