[Feature][T8TSK-289] add compile macro for autosuspend

Only Configure: No
Affected branch: LYNQ_PUBLIC
Affected module: autosuspend
Is it affected on both ZXIC and MTK: only MTK
Self-test: No
Doc Update: No

Change-Id: I756716713fd0be222ed7896ce52163abed13ec2c
diff --git a/IC_meta/mtk/2735/suspend-service/files/makefile b/IC_meta/mtk/2735/suspend-service/files/makefile
old mode 100644
new mode 100755
index 75e1102..e17db4e
--- a/IC_meta/mtk/2735/suspend-service/files/makefile
+++ b/IC_meta/mtk/2735/suspend-service/files/makefile
@@ -10,6 +10,9 @@
                 -D__LINUX_OS__ \
                 -DECALL_SUPPORT
 
+ifeq ($(strip $(MOBILETEK_SUSPEND_CFG)), GSW)
+    LOCAL_CFLAGS += -DGSW_SUSPEND_CFG
+endif
 
 
 
diff --git a/IC_meta/mtk/2735/suspend-service/lynq-autosuspend.bb b/IC_meta/mtk/2735/suspend-service/lynq-autosuspend.bb
old mode 100644
new mode 100755
index 97046eb..ccf4034
--- a/IC_meta/mtk/2735/suspend-service/lynq-autosuspend.bb
+++ b/IC_meta/mtk/2735/suspend-service/lynq-autosuspend.bb
@@ -23,6 +23,9 @@
 
 OBJECTS = "$(SOURCES:.c=.o)"
 
+MOBILETEK_SUSPEND_CFG ?= ""
+EXTRA_OEMAKE += "'MOBILETEK_SUSPEND_CFG = ${MOBILETEK_SUSPEND_CFG}'"
+
 EXECUTABLE = "autosuspend"
 S = "${WORKDIR}"
 TARGET_CC_ARCH += "${LDFLAGS}"