Makefile 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. core\utils\core_auth.c \
  11. core\utils\core_diag.c \
  12. core\utils\core_global.c \
  13. core\utils\core_http.c \
  14. core\utils\core_sha256.c \
  15. core\utils\core_string.c \
  16. core\utils\core_log.c \
  17. core\aiot_http_api.c \
  18. core\aiot_mqtt_api.c \
  19. core\aiot_state_api.c \
  20. core\sysdep\core_sysdep.c \
  21. external\ali_ca_cert.c \
  22. portfiles\adapt_ql_port.c \
  23. components\bootstrap\aiot_bootstrap_api.c \
  24. components\data-model\aiot_dm_api.c \
  25. components\devinfo\aiot_devinfo_api.c \
  26. components\logpost\aiot_logpost_api.c \
  27. components\ntp\aiot_ntp_api.c \
  28. components\ota\aiot_ota_api.c \
  29. components\ota\ota_md5.c \
  30. components\shadow\aiot_shadow_api.c \
  31. components\diag\aiot_diag_api.c \
  32. components\das\src\core\proto\lsoc.pb.c \
  33. components\das\src\core\proto\pb_common.c \
  34. components\das\src\core\proto\pb_decode.c \
  35. components\das\src\core\proto\pb_encode.c \
  36. components\das\src\core\das_core.c \
  37. components\das\src\core\das_attest.c \
  38. components\das\src\core\sha1.c \
  39. components\das\src\core\utils.c \
  40. components\das\src\service\service.c \
  41. components\das\src\service\service_lwip_nfi.c \
  42. components\das\src\service\service_rom.c \
  43. components\das\src\service\service_sys.c \
  44. components\das\aiot_das_api.c \
  45. components\dynreg\aiot_dynreg_api.c \
  46. components\dynreg-mqtt\aiot_dynregmq_api.c \
  47. components\subdev\aiot_subdev_api.c \
  48. #-------------------------------------------------------------------------------
  49. # the include directories
  50. #-------------------------------------------------------------------------------
  51. INC_DIRS+= \
  52. -I${TOP_DIR} \
  53. -I${TOP_DIR}\common\include \
  54. -I${TOP_DIR}\third_party\LinkSDK\core \
  55. -I${TOP_DIR}\third_party\LinkSDK\core\utils \
  56. -I${TOP_DIR}\third_party\LinkSDK\core\sysdep \
  57. -I${TOP_DIR}\third_party\LinkSDK\components\bootstrap \
  58. -I${TOP_DIR}\third_party\LinkSDK\components\data-model \
  59. -I${TOP_DIR}\third_party\LinkSDK\components\devinfo \
  60. -I${TOP_DIR}\third_party\LinkSDK\components\logpost \
  61. -I${TOP_DIR}\third_party\LinkSDK\components\ntp \
  62. -I${TOP_DIR}\third_party\LinkSDK\components\ota \
  63. -I${TOP_DIR}\third_party\LinkSDK\components\shadow \
  64. -I${TOP_DIR}\third_party\LinkSDK\components\diag \
  65. -I${TOP_DIR}\third_party\LinkSDK\components\das \
  66. -I${TOP_DIR}\third_party\LinkSDK\components\das\inc \
  67. -I${TOP_DIR}\third_party\LinkSDK\components\das\inc\das \
  68. -I${TOP_DIR}\third_party\LinkSDK\components\das\src\board\freertos \
  69. -I${TOP_DIR}\third_party\LinkSDK\components\dynreg \
  70. -I${TOP_DIR}\third_party\LinkSDK\components\dynreg-mqtt \
  71. -I${TOP_DIR}\third_party\LinkSDK\components\subdev \
  72. -I${TOP_DIR}\third_party\mbedtls\include \
  73. -I${TOP_DIR}\network\sockets\inc \
  74. -I${TOP_DIR}\network\data_call\inc \
  75. -I${TOP_DIR}\fs\inc \
  76. #-------------------------------------------------------------------------------
  77. # Configure compile flag for C
  78. #-------------------------------------------------------------------------------
  79. U_FLAGS+= \
  80. #-------------------------------------------------------------------------------
  81. # Configure compile flag for C++
  82. #-------------------------------------------------------------------------------
  83. U_CPPFLAGS+=
  84. #-------------------------------------------------------------------------------
  85. # Configure default macro define
  86. #-------------------------------------------------------------------------------
  87. DFLAGS+= \
  88. -DCMUX_ENABLE \
  89. -DLWIP_IPNETBUF_SUPPORT \
  90. -D_TAVOR_B0_SILICON_ \
  91. -DFEATURE_SHMEM \
  92. -D"NO_APLP=0" \
  93. -DL1_RX_DIV_SUPPORT \
  94. -DRUN_XIP_MODE \
  95. -DENABLE_MAC_TX_DATA_LOGGING \
  96. -DINTEL_UPGRADE_EGPRS_M \
  97. -DNO_OPENSSL \
  98. -DPLAT_TEST \
  99. -DYMODEM_EEH_DUMP \
  100. -DCAPT_PARAMS_OPTIMIZE \
  101. -D_DDR_INIT_ \
  102. -DSILICON_TTC_CORE_SEAGULL \
  103. -DUPGRADE_EGPRS_M \
  104. -DTV_FNAME="\"SW_PLATFORM=PMD2NONE PHS_SW_DEMO PHS_SW_DEMO_PM SRCNUCLEUS FULL_SYSTEM NOACRTC PDFLT PLAT_TEST PV2 DIAGOSHMEM NVM WITHL1V\"" \
  105. -DFLAVOR_DUALCORE \
  106. -DCODE_IN_PSRAM \
  107. -DTAVOR_D2_WB_L1_SUPPORT \
  108. -DCRANE_MCU_DONGLE \
  109. -DPHS_L1_SW_UPDATE_R7 \
  110. -DINTEL_HERMON_SAC \
  111. -DUPGRADE_PLMS_3G \
  112. -DPM_DEBUG_MODE_ENABLED \
  113. -DINTEL_UPGRADE_R99 \
  114. -DENV_XSCALE \
  115. -DEXT_AT_MODEM_SUPPORT \
  116. -DFRBD_CALIB_NVM \
  117. -DUPGRADE_LTE \
  118. -DPLAT_USE_THREADX \
  119. -DFG_PLMS_URR \
  120. -DNO_BIP \
  121. -DL1_UPGRADE_R7 \
  122. -DDIAG_NEWPP \
  123. -DCA_LONG_IPC_MSG \
  124. -DPCAC_INCLUDE \
  125. -DHL_LWG \
  126. -DTDL1C_SPY_ENABLE \
  127. -DMRAT_NAS \
  128. -DL1_SW_UPDATE_FOR_DIGRF \
  129. -DPPP_ENABLE \
  130. -DCRANE_SD_NOT_SUPPORT \
  131. -DAPLP_SPY_ENABLE \
  132. -DMIPS_TEST_RAM \
  133. -D_DDR_INIT_ \
  134. -DUPGRADE_PLMS_SEARCH_API \
  135. -DINTEL_UPGRADE_RF_PARAMS_IN_CF_TDS \
  136. -DNTP \
  137. -DINTEL_UPGRADE_GSM_CRL_IF \
  138. -DUPGRADE_PLMS_L1 \
  139. -DENABLE_CAT1_LG \
  140. -DURR_MRAT_ICS_SEARCH \
  141. -DPHS_SW_DEMO \
  142. -DINTEL_UPGRADE_UNIFIED_VOICE_TASK \
  143. -DTV_FDESC="\"SW_DESCRIPTION=\"" \
  144. -DUSE_TTPCOM_CSR_BLUETOOTH_AUDIO_GAIN_CONTROL \
  145. -DFLAVOR_DDR12MB_GB1MB5 \
  146. -DUPGRADE_R4_FS1 \
  147. -DCRANE_CUST_BUILD \
  148. -DL1_UPGRADE_R5 \
  149. -DINTEL_2CHIP_PLAT \
  150. -DINTEL_UPGRADE_EE_HANDLER_SUPPORT \
  151. -DLFS_FILE_SYS \
  152. -DUPGRADE_FG_PLMS \
  153. -DNO_MBEDTLS \
  154. -DPHS_SW_DEMO_TTC_PM \
  155. -DCRANE_CAMERA_SUPPORT \
  156. -DPM_D2FULL_MODE \
  157. -DL1_WIFI_LOCATION \
  158. -DSUPPORT_GPLC2_RSSI_WITH_L1A1 \
  159. -DINTEL_UPGRADE_DUAL_RAT \
  160. -DL1V_NEW_RSSI \
  161. -DENABLE_ACIPC \
  162. -DL1_SW_UPDATE_FOR_DIGRF \
  163. -D_DIAG_USE_COMMSTACK_ \
  164. -DLTE_GSMMULTIBCCH \
  165. -DLTE_DSDS_GSMMULTIBCCH \
  166. -DUPGRADE_DSDS \
  167. -DTAVOR \
  168. -DSILICON_PV2 \
  169. -DNO_XML \
  170. -DRUN_WIRELESS_MODEM \
  171. -DDEBUG_D2_MOR_REG_RESEREVED_ENABLE \
  172. -DUPGRADE_PLMS_STAGE_2 \
  173. -DFRBD_DSDS_L1 \
  174. -DI_2CHIP_PLAT \
  175. -DMAP_NSS \
  176. -DNEZHA3_1826 \
  177. -DCRANE_Z2 \
  178. -DUPGRADE_DIGRF3G_SUPPORT \
  179. -DFULL_SYSTEM \
  180. -DCRANE_Z1 \
  181. -DUPGRADE_ENHANCED_QUAD_BAND \
  182. -DRELIABLE_DATA \
  183. -D_DATAOMSL_ENABLED_ \
  184. -DNEZHA3 \
  185. -DMSL_INCLUDE \
  186. -DSULOG_DISABLE \
  187. -DNO_PAHO_MQTT \
  188. -DL1_UPGRADE_R8 \
  189. -DUPGRADE_ARBEL_PLATFORM \
  190. -DINTEL_UPGRADE_GPRS_CIPHER_FLUSH \
  191. -DL1_DDR_HIGH_FREQ \
  192. -DENABLE_OOS_HANDLING \
  193. -DUPGRADE_HERMON_DUAL \
  194. -DFLAVOR_COM \
  195. -DUPGRADE_MBCCH \
  196. -DMP3_DECODE \
  197. -D_FDI_USE_OSA_ \
  198. -DREL5_CLEANUP_FEATURE \
  199. -DW_PS_PLUS_G_PAGING \
  200. -DL1_FEATURE_CPC_CRX \
  201. -DHSPA_MPR \
  202. -DACIPC_ENABLE_NEW_CALLBACK_MECHANISM \
  203. -DOSA_USED \
  204. -DFEATURE_WB_AMR_PS \
  205. -D_TAVOR_HARBELL_ \
  206. -DSILICON_SEAGULL \
  207. -DUPGRADE_DSDSLTE \
  208. -DUPGRDE_TAVOR_COMMUNICATION \
  209. -DOPTIMIZE_FOR_2G_BCCH \
  210. -DAT_OVER_UART \
  211. -DINTEL_UPGRADE_2SAMPLES_PER_SYMBOL \
  212. -DUPGRADE_PLMS \
  213. -DPM_EXT_DBG_INT_ARR \
  214. -DNO_LWM2M \
  215. -D"GPRS_MULTISLOT_CLASS=12" \
  216. -DMULTI_BCCH_READY_IND \
  217. -DMARVELL_UPGRADE_BSIC_REDESIGN \
  218. -DOSA_QUEUE_NAMES \
  219. -DICS_MBCCH_2G_RSSI \
  220. -DDLM_TAVOR \
  221. -DCHARGE_DM \
  222. -DL1_SW_UPDATE_FOR_DIGRF \
  223. -DGPLC_LTE_RSSI_SCAN \
  224. -D_TAVOR_DIAG_ \
  225. -DDISABLE_NVRAM_ACCESS \
  226. -DOSA_NUCLEUS \
  227. -D__TARGET_FEATURE_DOUBLEWORD \
  228. -DFLAVOR_DIET_RAM \
  229. -DICS_MBCCH \
  230. -DUPGRADE_ICS \
  231. -DFRBD_FDT_CALIB \
  232. -DL1_UPGRADE_R6 \
  233. -DUPGRADE_L1A_FG_PLMS \
  234. -DNVM_INCLUDE \
  235. -DFRBD_AGC_CALIB \
  236. -DPSM_ENABLE \
  237. -DWHOLE_UMTS_STACK \
  238. -DMIPS_TEST \
  239. -DMACRO_FOR_LWG \
  240. -DPHS_SW_DEMO_TTC \
  241. -DMSL_POOL_MEM \
  242. -DGPIO_TRACE \
  243. -DUPGRADE_PLMS_SR \
  244. -DUSB_CABLE_DETECTION_VIA_PMIC \
  245. -DUPGRADE_EDGE \
  246. -DNO_DIALER \
  247. -D"EGPRS_MULTISLOT_CLASS=12" \
  248. -DCRANE_LCD_SUPPORT \
  249. -DL1_DUAL_MODE \
  250. -DPM_D2NONE_MODE \
  251. -D_DIAG_DISABLE_USB_ \
  252. -DLTE_W_PS \
  253. #-------------------------------------------------------------------------------
  254. # Configure link library
  255. #-------------------------------------------------------------------------------
  256. U_LIBS:=
  257. #-------------------------------------------------------------------------------
  258. # include mk file
  259. #-------------------------------------------------------------------------------
  260. include ${TOP_DIR}\config\common\makefile.mk