[qca-ssdk] Add CPPE MACRO for cypress

Change-Id: Ied4f5c3bf7adae848fb3cb9ef46b6a81bca7f9cc
Signed-off-by: linchen <linchen@codeaurora.org>
diff --git a/config b/config
index 59c1e07..c917ed4 100755
--- a/config
+++ b/config
@@ -157,7 +157,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 and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS and HPPE)
+#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=ALL_CHIP
 
 #UK_IF=FALSE or not define UK_IF, UK_IF will not be included in SSDK
diff --git a/make/config.mk b/make/config.mk
index 828eb59..9b2e93e 100755
--- a/make/config.mk
+++ b/make/config.mk
@@ -60,11 +60,15 @@
      SUPPORT_CHIP = HPPE
   endif
 
+  ifeq (CPPE, $(CHIP_TYPE))
+     SUPPORT_CHIP = HPPE CPPE
+  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 SCOMPHY
+     SUPPORT_CHIP = ISIS ISISC SHIVA DESS HPPE CPPE SCOMPHY
   endif
 
   ifeq (NONHK_CHIP, $(CHIP_TYPE))
diff --git a/make/linux_opt.mk b/make/linux_opt.mk
index a0f6e21..06fb64f 100755
--- a/make/linux_opt.mk
+++ b/make/linux_opt.mk
@@ -288,10 +288,16 @@
 ifneq (,$(findstring HPPE, $(SUPPORT_CHIP)))
   MODULE_INC   += -I$(PRJ_PATH)/include/hsl/hppe
   MODULE_INC   += -I$(PRJ_PATH)/include/adpt/hppe
-  MODULE_INC   += -I$(PRJ_PATH)/include/adpt/cppe
   MODULE_CFLAG += -DHPPE
 endif
 
+ifneq (,$(findstring CPPE, $(SUPPORT_CHIP)))
+  MODULE_INC   += -I$(PRJ_PATH)/include/hsl/cppe
+  MODULE_INC   += -I$(PRJ_PATH)/include/adpt/cppe
+  MODULE_CFLAG += -DCPPE
+endif
+
+
 ifneq (,$(findstring SCOMPHY, $(SUPPORT_CHIP)))
   MODULE_INC   += -I$(PRJ_PATH)/include/hsl/scomphy
   MODULE_CFLAG += -DSCOMPHY
diff --git a/src/adpt/cppe/Makefile b/src/adpt/cppe/Makefile
index 27be22c..dda7038 100755
--- a/src/adpt/cppe/Makefile
+++ b/src/adpt/cppe/Makefile
@@ -9,7 +9,7 @@
   SRC_LIST += adpt_cppe_portctrl.c
 endif
 
-ifeq (, $(findstring HPPE, $(SUPPORT_CHIP)))
+ifeq (, $(findstring CPPE, $(SUPPORT_CHIP)))
   SRC_LIST=
 endif