[qca-ssdk]: add MP macro in ssdk.
Change-Id: Iaf429d20b7ca805e4522e66d8b3499f0e2f38edb
Signed-off-by: zhongjia <zhongjia@codeaurora.org>
diff --git a/config b/config
index f018508..1e819b0 100755
--- a/config
+++ b/config
@@ -154,7 +154,7 @@
#FAL=FALSE or not define FAL, FAL will not be included in SSDK
FAL=TRUE
-#CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS, HPPE, CPPE and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS and HPPE CPPE)
+#CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS, HPPE, CPPE, MP and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS and HPPE CPPE MP)
ifndef CHIP_TYPE
CHIP_TYPE=ALL_CHIP
endif
diff --git a/make/config.mk b/make/config.mk
index 9b2e93e..310cb30 100755
--- a/make/config.mk
+++ b/make/config.mk
@@ -64,11 +64,15 @@
SUPPORT_CHIP = HPPE CPPE
endif
+ ifeq (MP, $(CHIP_TYPE))
+ SUPPORT_CHIP = SCOMPHY MP
+ endif
+
ifeq (ALL_CHIP, $(CHIP_TYPE))
ifneq (TRUE, $(FAL))
$(error FAL must be TRUE when CHIP_TYPE is defined as ALL_CHIP!)
endif
- SUPPORT_CHIP = ISIS ISISC SHIVA DESS HPPE CPPE SCOMPHY
+ SUPPORT_CHIP = ISIS ISISC SHIVA DESS HPPE CPPE SCOMPHY MP
endif
ifeq (NONHK_CHIP, $(CHIP_TYPE))
diff --git a/make/linux_opt.mk b/make/linux_opt.mk
index e233e3f..2c4fd9a 100755
--- a/make/linux_opt.mk
+++ b/make/linux_opt.mk
@@ -323,6 +323,10 @@
MODULE_CFLAG += -DHPPE
endif
+ifneq (,$(findstring MP, $(SUPPORT_CHIP)))
+ MODULE_CFLAG += -DMP
+endif
+
ifneq (,$(findstring CPPE, $(SUPPORT_CHIP)))
MODULE_INC += -I$(PRJ_PATH)/include/hsl/cppe
MODULE_INC += -I$(PRJ_PATH)/include/adpt/cppe