Makefile 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. #-------------------------------------------------------------------------------
  2. # Configure variable
  3. #-------------------------------------------------------------------------------
  4. TOP_DIR:=${TOP_DIR}
  5. MAKEFILE_PATH :=$(subst $(strip \),/,$(abspath $(lastword $(MAKEFILE_LIST))))
  6. #-------------------------------------------------------------------------------
  7. # Configure source code files
  8. #-------------------------------------------------------------------------------
  9. SRC_FILES+= \
  10. bootstrap_posix_demo.c \
  11. cota_basic_demo.c \
  12. data_model_basic_demo.c \
  13. devinfo_posix_demo.c \
  14. diag_basic_demo.c \
  15. dynregmq_basic_demo.c \
  16. dynreg_basic_demo.c \
  17. das_basic_demo.c \
  18. fota_basic_demo.c \
  19. http_basic_demo.c \
  20. logpost_basic_demo.c \
  21. mqtt_basic_demo.c \
  22. mqtt_broadcast_demo.c \
  23. mqtt_rrpc_demo.c \
  24. ntp_posix_demo.c \
  25. shadow_basic_demo.c
  26. #-------------------------------------------------------------------------------
  27. # the include directories
  28. #-------------------------------------------------------------------------------
  29. INC_DIRS+= \
  30. -I${TOP_DIR} \
  31. -I${TOP_DIR}\common\include \
  32. -I${TOP_DIR}\third_party\LinkSDK\core \
  33. -I${TOP_DIR}\third_party\LinkSDK\core\utils \
  34. -I${TOP_DIR}\third_party\LinkSDK\core\sysdep \
  35. -I${TOP_DIR}\third_party\LinkSDK\components\bootstrap \
  36. -I${TOP_DIR}\third_party\LinkSDK\components\data-model \
  37. -I${TOP_DIR}\third_party\LinkSDK\components\devinfo \
  38. -I${TOP_DIR}\third_party\LinkSDK\components\logpost \
  39. -I${TOP_DIR}\third_party\LinkSDK\components\ntp \
  40. -I${TOP_DIR}\third_party\LinkSDK\components\ota \
  41. -I${TOP_DIR}\third_party\LinkSDK\components\shadow \
  42. -I${TOP_DIR}\third_party\LinkSDK\components\das \
  43. -I${TOP_DIR}\third_party\LinkSDK\components\das\inc \
  44. -I${TOP_DIR}\third_party\LinkSDK\components\das\inc\das \
  45. -I${TOP_DIR}\third_party\LinkSDK\components\diag \
  46. -I${TOP_DIR}\third_party\LinkSDK\components\dynreg \
  47. -I${TOP_DIR}\third_party\LinkSDK\components\dynreg-mqtt \
  48. -I${TOP_DIR}\third_party\LinkSDK\components\subdev \
  49. -I${TOP_DIR}\third_party\mbedtls\include \
  50. -I${TOP_DIR}\network\sockets\inc \
  51. -I${TOP_DIR}\network\data_call\inc \
  52. -I${TOP_DIR}\fs\inc \
  53. #-------------------------------------------------------------------------------
  54. # Configure compile flag for C
  55. #-------------------------------------------------------------------------------
  56. U_FLAGS+= \
  57. #-------------------------------------------------------------------------------
  58. # Configure compile flag for C++
  59. #-------------------------------------------------------------------------------
  60. U_CPPFLAGS+=
  61. #-------------------------------------------------------------------------------
  62. # Configure default macro define
  63. #-------------------------------------------------------------------------------
  64. DFLAGS+= \
  65. -DCMUX_ENABLE \
  66. -DLWIP_IPNETBUF_SUPPORT \
  67. -D_TAVOR_B0_SILICON_ \
  68. -DCONFIG_QUECTEL_PROJECT_EC100YCN_AA \
  69. -DFEATURE_SHMEM \
  70. -D"NO_APLP=0" \
  71. -DL1_RX_DIV_SUPPORT \
  72. -DRUN_XIP_MODE \
  73. -DENABLE_MAC_TX_DATA_LOGGING \
  74. -DINTEL_UPGRADE_EGPRS_M \
  75. -DNO_OPENSSL \
  76. -DPLAT_TEST \
  77. -DYMODEM_EEH_DUMP \
  78. -DCAPT_PARAMS_OPTIMIZE \
  79. -D_DDR_INIT_ \
  80. -DSILICON_TTC_CORE_SEAGULL \
  81. -DUPGRADE_EGPRS_M \
  82. -DTV_FNAME="\"SW_PLATFORM=PMD2NONE PHS_SW_DEMO PHS_SW_DEMO_PM SRCNUCLEUS FULL_SYSTEM NOACRTC PDFLT PLAT_TEST PV2 DIAGOSHMEM NVM WITHL1V\"" \
  83. -DFLAVOR_DUALCORE \
  84. -DCODE_IN_PSRAM \
  85. -DTAVOR_D2_WB_L1_SUPPORT \
  86. -DCRANE_MCU_DONGLE \
  87. -DPHS_L1_SW_UPDATE_R7 \
  88. -DINTEL_HERMON_SAC \
  89. -DUPGRADE_PLMS_3G \
  90. -DPM_DEBUG_MODE_ENABLED \
  91. -DCONFIG_QUECTEL_PROJECT_REV="\"EC100YCNAAR01A03M16_OCPU_BETA0429\"" \
  92. -DINTEL_UPGRADE_R99 \
  93. -DENV_XSCALE \
  94. -DEXT_AT_MODEM_SUPPORT \
  95. -DFRBD_CALIB_NVM \
  96. -DUPGRADE_LTE \
  97. -DPLAT_USE_THREADX \
  98. -DFG_PLMS_URR \
  99. -DNO_BIP \
  100. -DCRANE_KEYPAD_SUPPORT \
  101. -DL1_UPGRADE_R7 \
  102. -DDIAG_NEWPP \
  103. -DCA_LONG_IPC_MSG \
  104. -DPCAC_INCLUDE \
  105. -DHL_LWG \
  106. -DCONFIG_QUECTEL_PROJECT_NAME="\"EC100YCNAA\"" \
  107. -DTDL1C_SPY_ENABLE \
  108. -DMRAT_NAS \
  109. -DL1_SW_UPDATE_FOR_DIGRF \
  110. -DPPP_ENABLE \
  111. -DCRANE_SD_NOT_SUPPORT \
  112. -DAPLP_SPY_ENABLE \
  113. -DMIPS_TEST_RAM \
  114. -DUPGRADE_PLMS_SEARCH_API \
  115. -DINTEL_UPGRADE_RF_PARAMS_IN_CF_TDS \
  116. -DNTP \
  117. -DINTEL_UPGRADE_GSM_CRL_IF \
  118. -DUPGRADE_PLMS_L1 \
  119. -DENABLE_CAT1_LG \
  120. -DURR_MRAT_ICS_SEARCH \
  121. -DPHS_SW_DEMO \
  122. -DINTEL_UPGRADE_UNIFIED_VOICE_TASK \
  123. -DTV_FDESC="\"SW_DESCRIPTION=\"" \
  124. -DUSE_TTPCOM_CSR_BLUETOOTH_AUDIO_GAIN_CONTROL \
  125. -DFLAVOR_DDR12MB_GB1MB5 \
  126. -DUPGRADE_R4_FS1 \
  127. -DCRANE_CUST_BUILD \
  128. -DL1_UPGRADE_R5 \
  129. -DINTEL_2CHIP_PLAT \
  130. -DINTEL_UPGRADE_EE_HANDLER_SUPPORT \
  131. -DLFS_FILE_SYS \
  132. -DUPGRADE_FG_PLMS \
  133. -DNO_MBEDTLS \
  134. -DPHS_SW_DEMO_TTC_PM \
  135. -DCRANE_CAMERA_SUPPORT \
  136. -DPM_D2FULL_MODE \
  137. -DL1_WIFI_LOCATION \
  138. -DSUPPORT_GPLC2_RSSI_WITH_L1A1 \
  139. -DINTEL_UPGRADE_DUAL_RAT \
  140. -DL1V_NEW_RSSI \
  141. -DENABLE_ACIPC \
  142. -DL1_SW_UPDATE_FOR_DIGRF \
  143. -D_DIAG_USE_COMMSTACK_ \
  144. -DLTE_GSMMULTIBCCH \
  145. -DLTE_DSDS_GSMMULTIBCCH \
  146. -DUPGRADE_DSDS \
  147. -DTAVOR \
  148. -DSILICON_PV2 \
  149. -DNO_XML \
  150. -DRUN_WIRELESS_MODEM \
  151. -DDEBUG_D2_MOR_REG_RESEREVED_ENABLE \
  152. -DUPGRADE_PLMS_STAGE_2 \
  153. -DFRBD_DSDS_L1 \
  154. -DI_2CHIP_PLAT \
  155. -DMAP_NSS \
  156. -DNEZHA3_1826 \
  157. -DCRANE_Z2 \
  158. -DUPGRADE_DIGRF3G_SUPPORT \
  159. -DFULL_SYSTEM \
  160. -DCRANE_Z1 \
  161. -DUPGRADE_ENHANCED_QUAD_BAND \
  162. -DRELIABLE_DATA \
  163. -D_DATAOMSL_ENABLED_ \
  164. -DNEZHA3 \
  165. -DMSL_INCLUDE \
  166. -DSULOG_DISABLE \
  167. -DL1_UPGRADE_R8 \
  168. -DNO_PAHO_MQTT \
  169. -DUPGRADE_ARBEL_PLATFORM \
  170. -DINTEL_UPGRADE_GPRS_CIPHER_FLUSH \
  171. -DL1_DDR_HIGH_FREQ \
  172. -DENABLE_OOS_HANDLING \
  173. -DUPGRADE_HERMON_DUAL \
  174. -DFLAVOR_COM \
  175. -DUPGRADE_MBCCH \
  176. -DMP3_DECODE \
  177. -D_FDI_USE_OSA_ \
  178. -DREL5_CLEANUP_FEATURE \
  179. -DW_PS_PLUS_G_PAGING \
  180. -DL1_FEATURE_CPC_CRX \
  181. -DHSPA_MPR \
  182. -DACIPC_ENABLE_NEW_CALLBACK_MECHANISM \
  183. -DOSA_USED \
  184. -DFEATURE_WB_AMR_PS \
  185. -D_TAVOR_HARBELL_ \
  186. -DUPGRADE_DSDSLTE \
  187. -DSILICON_SEAGULL \
  188. -DUPGRDE_TAVOR_COMMUNICATION \
  189. -DOPTIMIZE_FOR_2G_BCCH \
  190. -DAT_OVER_UART \
  191. -DINTEL_UPGRADE_2SAMPLES_PER_SYMBOL \
  192. -DUPGRADE_PLMS \
  193. -DPM_EXT_DBG_INT_ARR \
  194. -DNO_LWM2M \
  195. -D"GPRS_MULTISLOT_CLASS=12" \
  196. -DMULTI_BCCH_READY_IND \
  197. -DMARVELL_UPGRADE_BSIC_REDESIGN \
  198. -DOSA_QUEUE_NAMES \
  199. -DICS_MBCCH_2G_RSSI \
  200. -DDLM_TAVOR \
  201. -DCHARGE_DM \
  202. -DGPLC_LTE_RSSI_SCAN \
  203. -D_TAVOR_DIAG_ \
  204. -DDISABLE_NVRAM_ACCESS \
  205. -DOSA_NUCLEUS \
  206. -D__TARGET_FEATURE_DOUBLEWORD \
  207. -DFLAVOR_DIET_RAM \
  208. -DICS_MBCCH \
  209. -DUPGRADE_ICS \
  210. -DFRBD_FDT_CALIB \
  211. -DL1_UPGRADE_R6 \
  212. -DUPGRADE_L1A_FG_PLMS \
  213. -DNVM_INCLUDE \
  214. -DFRBD_AGC_CALIB \
  215. -DPSM_ENABLE \
  216. -DWHOLE_UMTS_STACK \
  217. -DMIPS_TEST \
  218. -DMACRO_FOR_LWG \
  219. -DPHS_SW_DEMO_TTC \
  220. -DMSL_POOL_MEM \
  221. -DUPGRADE_PLMS_SR \
  222. -DUSB_CABLE_DETECTION_VIA_PMIC \
  223. -DUPGRADE_EDGE \
  224. -DNO_DIALER \
  225. -D"EGPRS_MULTISLOT_CLASS=12" \
  226. -DCRANE_LCD_SUPPORT \
  227. -DL1_DUAL_MODE \
  228. -DPM_D2NONE_MODE \
  229. -D_DIAG_DISABLE_USB_ \
  230. -DLTE_W_PS \
  231. #-------------------------------------------------------------------------------
  232. # Configure link library
  233. #-------------------------------------------------------------------------------
  234. U_LIBS:=
  235. #-------------------------------------------------------------------------------
  236. # include mk file
  237. #-------------------------------------------------------------------------------
  238. include ${TOP_DIR}\config\common\makefile.mk