ql_app_feature_config.cmake 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
  2. # All rights reserved.
  3. #
  4. message("\n")
  5. if(CONFIG_QL_OPEN_EXPORT_PKG)
  6. ################################################################################################################
  7. # Quectel open sdk feature config
  8. ################################################################################################################
  9. if(CONFIG_QUEC_PROJECT_FEATURE_FTP)
  10. option(QL_APP_FEATURE_FTP "Enable FTP" ON)
  11. else()
  12. message(STATUS "FEATURE FTP is disabled at core!")
  13. option(QL_APP_FEATURE_FTP "Enable FTP" OFF)
  14. endif()
  15. message(STATUS "QL_APP_FEATURE_FTP ${QL_APP_FEATURE_FTP}")
  16. if(CONFIG_QUEC_PROJECT_FEATURE_HTTP)
  17. option(QL_APP_FEATURE_HTTP "Enable HTTP" ON)
  18. else()
  19. message(STATUS "FEATURE HTTP is disabled at core!")
  20. option(QL_APP_FEATURE_HTTP "Enable HTTP" OFF)
  21. endif()
  22. message(STATUS "QL_APP_FEATURE_HTTP ${QL_APP_FEATURE_HTTP}")
  23. if (CONFIG_QUEC_PROJECT_FEATURE_MMS)
  24. option(QL_APP_FEATURE_MMS "Enable MMS" ON)
  25. else()
  26. message(STATUS "FEATURE MMS is disabled at core!")
  27. option(QL_APP_FEATURE_MMS "Enable MMS" OFF)
  28. endif()
  29. message(STATUS "QL_APP_FEATURE_MMS ${QL_APP_FEATURE_MMS}")
  30. if(CONFIG_QUEC_PROJECT_FEATURE_MQTT)
  31. option(QL_APP_FEATURE_MQTT "Enable MQTT" ON)
  32. else()
  33. message(STATUS "FEATURE MQTT is disabled at core!")
  34. option(QL_APP_FEATURE_MQTT "Enable MQTT" OFF)
  35. endif()
  36. message(STATUS "QL_APP_FEATURE_MQTT ${QL_APP_FEATURE_MQTT}")
  37. if(CONFIG_QUEC_PROJECT_FEATURE_FIREWALL)
  38. option(QL_APP_FEATURE_FIREWALL "Enable FIREWALL" ON)
  39. else()
  40. message(STATUS "FIREWALL is disabled at core!")
  41. option(QL_APP_FEATURE_FIREWALL "Enable FIREWALL" OFF)
  42. endif()
  43. message(STATUS "QL_APP_FEATURE_FIREWALL ${QL_APP_FEATURE_FIREWALL}")
  44. if(CONFIG_QUEC_PROJECT_FEATURE_SSL)
  45. option(QL_APP_FEATURE_SSL "Enable SSL" ON)
  46. else()
  47. message(STATUS "FEATURE SSL is disabled at core!")
  48. option(QL_APP_FEATURE_SSL "Enable SSL" OFF)
  49. endif()
  50. message(STATUS "QL_APP_FEATURE_SSL ${QL_APP_FEATURE_SSL}")
  51. if(CONFIG_QUEC_PROJECT_FEATURE_PING)
  52. option(QL_APP_FEATURE_PING "Enable PING" ON)
  53. else()
  54. message(STATUS "FEATURE PING is disabled at core!")
  55. option(QL_APP_FEATURE_PING "Enable PING" OFF)
  56. endif()
  57. message(STATUS "QL_APP_FEATURE_PING ${QL_APP_FEATURE_PING}")
  58. if(CONFIG_QUEC_PROJECT_FEATURE_NTP)
  59. option(QL_APP_FEATURE_NTP "Enable NTP" ON)
  60. else()
  61. message(STATUS "FEATURE NTP is disabled at core!")
  62. option(QL_APP_FEATURE_NTP "Enable NTP" OFF)
  63. endif()
  64. message(STATUS "QL_APP_FEATURE_NTP ${QL_APP_FEATURE_NTP}")
  65. if(CONFIG_QUEC_PROJECT_FEATURE_SSL)
  66. option(QL_APP_FEATURE_ALI_LINKSDK "Enable ALI_LINKSDK" ON)
  67. else()
  68. message(STATUS "FEATURE ALI_LINKSDK is disabled at core!")
  69. option(QL_APP_FEATURE_ALI_LINKSDK "Enable ALI_LINKSDK" OFF)
  70. endif()
  71. message(STATUS "QL_APP_FEATURE_ALI_LINKSDK ${QL_APP_FEATURE_ALI_LINKSDK}")
  72. if(CONFIG_QUEC_PROJECT_FEATURE_SSL)
  73. option(QL_APP_FEATURE_QCLOUD_IOT "Enable QCLOUD_IOT" ON)
  74. else()
  75. message(STATUS "FEATURE QCLOUD_IOT is disabled at core!")
  76. option(QL_APP_FEATURE_QCLOUD_IOT "Enable QCLOUD_IOT" OFF)
  77. endif()
  78. message(STATUS "QL_APP_FEATURE_QCLOUD_IOT ${QL_APP_FEATURE_QCLOUD_IOT}")
  79. if(CONFIG_QUEC_PROJECT_FEATURE_LBS)
  80. option(QL_APP_FEATURE_LBS "Enable LBS" ON)
  81. else()
  82. message(STATUS "FEATURE LBS is disabled at core!")
  83. option(QL_APP_FEATURE_LBS "Enable LBS" OFF)
  84. endif()
  85. message(STATUS "QL_APP_FEATURE_LBS ${QL_APP_FEATURE_LBS}")
  86. if(CONFIG_QUEC_PROJECT_FEATURE_QTHSDK)
  87. option(QL_APP_FEATURE_QTHSDK "Enable QTHSDK" ON)
  88. else()
  89. message(STATUS "FEATURE QTHSDK is disabled at core!")
  90. option(QL_APP_FEATURE_QTHSDK "Disable QTHSDK" OFF)
  91. endif()
  92. message(STATUS "QL_APP_FEATURE_QTHSDK ${QL_APP_FEATURE_QTHSDK}")
  93. if(CONFIG_QUEC_PROJECT_FEATURE_SOCKET)
  94. option(QL_APP_FEATURE_SOCKET "Enable Socket" ON)
  95. else()
  96. message(STATUS "FEATURE SOCKET is disabled at core!")
  97. option(QL_APP_FEATURE_SOCKET "Enable Socket" OFF)
  98. endif()
  99. message(STATUS "QL_APP_FEATURE_SOCKET ${QL_APP_FEATURE_SOCKET}")
  100. if(CONFIG_QUEC_PROJECT_FEATURE_ALIIOTSMARTCARD)
  101. option(QL_APP_FEATURE_ALIOTSMARTCARD "Enable ALIOTSMARTCARD" ON)
  102. else()
  103. message(STATUS "FEATURE ALIOTSMARTCARD is disabled at core!")
  104. option(QL_APP_FEATURE_ALIOTSMARTCARD "Enable ALIOTSMARTCARD" OFF)
  105. endif()
  106. message(STATUS "QL_APP_FEATURE_ALIOTSMARTCARD ${QL_APP_FEATURE_ALIOTSMARTCARD}")
  107. if(CONFIG_QUEC_PROJECT_FEATURE_CTSREG)
  108. option(QL_APP_FEATURE_CTSREG "Enable CTSREG" ON)
  109. else()
  110. message(STATUS "FEATURE CTSREG is disabled at core!")
  111. option(QL_APP_FEATURE_CTSREG "Enable CTSREG" OFF)
  112. endif()
  113. message(STATUS "QL_APP_FEATURE_CTSREG ${QL_APP_FEATURE_CTSREG}")
  114. if(CONFIG_QUEC_PROJECT_FEATURE_FILE)
  115. option(QL_APP_FEATURE_FILE "Enable FILE" ON)
  116. else()
  117. message(STATUS "FEATURE FILE is disabled at core!")
  118. option(QL_APP_FEATURE_FILE "Enable FILE" OFF)
  119. endif()
  120. message(STATUS "QL_APP_FEATURE_FILE ${QL_APP_FEATURE_FILE}")
  121. if((CONFIG_QUEC_PROJECT_FEATURE_FILE_ZIP) AND (CONFIG_QUEC_PROJECT_FEATURE_FILE))
  122. option(QL_APP_FEATURE_FILE_ZIP "Enable FILE_ZIP" ON)
  123. else()
  124. message(STATUS "FEATURE FILE_ZIP is disabled at core!")
  125. option(QL_APP_FEATURE_FILE_ZIP "Enable FILE_ZIP" OFF)
  126. endif()
  127. message(STATUS "QL_APP_FEATURE_FILE_ZIP ${QL_APP_FEATURE_FILE_ZIP}")
  128. if(CONFIG_QUEC_PROJECT_FEATURE_AUDIO)
  129. option(QL_APP_FEATURE_AUDIO "Enable AUDIO" ON)
  130. else()
  131. message(STATUS "FEATURE AUDIO is disabled at core!")
  132. option(QL_APP_FEATURE_AUDIO "Enable AUDIO" OFF)
  133. endif()
  134. message(STATUS "QL_APP_FEATURE_AUDIO ${QL_APP_FEATURE_AUDIO}")
  135. if((QL_APP_FEATURE_AUDIO) AND (CONFIG_QUEC_PROJECT_FEATURE_AUDIO_RECORD))
  136. option(QL_APP_FEATURE_AUDIO_RECORD "Enable AUDIO_RECORD" ON)
  137. else()
  138. message(STATUS "APP FEATURE AUDIO is ${QL_APP_FEATURE_AUDIO}, FEATURE AUDIO_RECORD at core is ${CONFIG_QUEC_PROJECT_FEATURE_AUDIO_RECORD}")
  139. option(QL_APP_FEATURE_AUDIO_RECORD "Enable AUDIO_RECORD" OFF)
  140. endif()
  141. message(STATUS "QL_APP_FEATURE_AUDIO_RECORD ${QL_APP_FEATURE_AUDIO_RECORD}")
  142. if((QL_APP_FEATURE_AUDIO) AND (CONFIG_QUEC_PROJECT_FEATURE_HEADSET_DET))
  143. option(QL_APP_FEATURE_HEADSET_DET "Enable HEADSET_DET" ON)
  144. else()
  145. message(STATUS "FEATURE HEADSET_DET is disabled at core!")
  146. option(QL_APP_FEATURE_HEADSET_DET "Enable HEADSET_DET" OFF)
  147. endif()
  148. message(STATUS "QL_APP_FEATURE_HEADSET_DET ${QL_APP_FEATURE_HEADSET_DET}")
  149. if((QL_APP_FEATURE_AUDIO) AND (CONFIG_QUEC_PROJECT_FEATURE_TTS))
  150. option(QL_APP_FEATURE_TTS "Enable TTS" ON)
  151. else()
  152. message(STATUS "APP FEATURE AUDIO is ${QL_APP_FEATURE_AUDIO}, FEATURE TTS at core is ${CONFIG_QUEC_PROJECT_FEATURE_TTS}")
  153. option(QL_APP_FEATURE_TTS "Enable TTS" OFF)
  154. endif()
  155. message(STATUS "QL_APP_FEATURE_TTS ${QL_APP_FEATURE_TTS}")
  156. if((QL_APP_FEATURE_AUDIO) AND (CONFIG_QUEC_PROJECT_FEATURE_EXT_CODEC))
  157. option(QL_APP_FEATURE_EXT_CODEC "Enable EXT_CODEC" ON)
  158. else()
  159. message(STATUS "APP FEATURE AUDIO is ${QL_APP_FEATURE_AUDIO}, FEATURE EXT_CODEC at core is ${CONFIG_QUEC_PROJECT_FEATURE_EXT_CODEC}")
  160. option(QL_APP_FEATURE_EXT_CODEC "Enable EXT_CODEC" OFF)
  161. endif()
  162. message(STATUS "QL_APP_FEATURE_EXT_CODEC ${QL_APP_FEATURE_EXT_CODEC}")
  163. if(CONFIG_QUEC_PROJECT_FEATURE_WIFISCAN)
  164. option(QL_APP_FEATURE_WIFISCAN "Enable WIFI-Scan" ON)
  165. else()
  166. message(STATUS "FEATURE WIFISCAN is disabled at core!")
  167. option(QL_APP_FEATURE_WIFISCAN "Enable WIFI-Scan" OFF)
  168. endif()
  169. message(STATUS "QL_APP_FEATURE_WIFISCAN ${QL_APP_FEATURE_WIFISCAN}")
  170. if(CONFIG_QUEC_PROJECT_FEATURE_BT)
  171. option(QL_APP_FEATURE_BT "Enable BT" ON)
  172. else()
  173. message(STATUS "FEATURE BT is disabled at core!")
  174. option(QL_APP_FEATURE_BT "Enable BT" OFF)
  175. endif()
  176. message(STATUS "QL_APP_FEATURE_BT ${QL_APP_FEATURE_BT}")
  177. if(CONFIG_QUEC_PROJECT_FEATURE_BLE_GATT)
  178. option(QL_APP_FEATURE_BLE_GATT "Enable BLE GATT" ON)
  179. else()
  180. message(STATUS "FEATURE BLE GATT is disabled at core!")
  181. option(QL_APP_FEATURE_BLE_GATT "Enable BLE GATT" OFF)
  182. endif()
  183. message(STATUS "QL_APP_FEATURE_BLE_GATT ${QL_APP_FEATURE_BLE_GATT}")
  184. if(CONFIG_QUEC_PROJECT_FEATURE_INTERNAL_GNSS)
  185. option(QL_APP_FEATURE_GNSS "Enable GNSS" ON)
  186. else()
  187. message(STATUS "FEATURE GNSS is disabled at core!")
  188. option(QL_APP_FEATURE_GNSS "Enable GNSS" OFF)
  189. endif()
  190. message(STATUS "QL_APP_FEATURE_GNSS ${QL_APP_FEATURE_GNSS}")
  191. if(CONFIG_QUEC_PROJECT_FEATURE_HD_GNSS)
  192. option(QL_APP_FEATURE_HD_GNSS "Enable GNSS" ON)
  193. else()
  194. message(STATUS "FEATURE GNSS is disabled at core!")
  195. option(QL_APP_FEATURE_HD_GNSS "Enable GNSS" OFF)
  196. endif()
  197. message(STATUS "QL_APP_FEATURE_HD_GNSS ${QL_APP_FEATURE_HD_GNSS}")
  198. if(CONFIG_QUEC_PROJECT_FEATURE_LCD)
  199. option(QL_APP_FEATURE_LCD "Enable LCD" ON)
  200. option(QL_APP_FEATURE_LVGL "Enable LVGL" ON)
  201. else()
  202. message(STATUS "FEATURE LCD is disabled at core!")
  203. option(QL_APP_FEATURE_LCD "Enable LCD" OFF)
  204. option(QL_APP_FEATURE_LVGL "Enable LVGL" OFF)
  205. endif()
  206. message(STATUS "QL_APP_FEATURE_LCD ${QL_APP_FEATURE_LCD}")
  207. message(STATUS "QL_APP_FEATURE_LVGL ${QL_APP_FEATURE_LVGL}")
  208. if(CONFIG_QUEC_PROJECT_FEATURE_CAMERA)
  209. option(QL_APP_FEATURE_CAMERA "Enable CAMERA" ON)
  210. else()
  211. message(STATUS "FEATURE CAMERA is disabled at core!")
  212. option(QL_APP_FEATURE_CAMERA "Enable CAMERA" OFF)
  213. endif()
  214. message(STATUS "QL_APP_FEATURE_CAMERA ${QL_APP_FEATURE_CAMERA}")
  215. if(CONFIG_QUEC_PROJECT_FEATURE_SIM)
  216. option(QL_APP_FEATURE_SIM "Enable SIM" ON)
  217. else()
  218. message(STATUS "FEATURE SIM is disabled at core!")
  219. option(QL_APP_FEATURE_SIM "Enable SIM" OFF)
  220. endif()
  221. message(STATUS "QL_APP_FEATURE_SIM ${QL_APP_FEATURE_SIM}")
  222. if(CONFIG_QUEC_PROJECT_FEATURE_VSIM_ADAPT)
  223. option(QL_APP_FEATURE_VSIM_ADAPT "Enable VSIM ADAPT" ON)
  224. else()
  225. message(STATUS "FEATURE VSIM ADAPT is disabled at core!")
  226. option(QL_APP_FEATURE_VSIM_ADAPT "Enable VSIM ADAPT" OFF)
  227. endif()
  228. message(STATUS "QL_APP_FEATURE_VSIM_ADAPT ${QL_APP_FEATURE_VSIM_ADAPT}")
  229. if(CONFIG_QUEC_PROJECT_FEATURE_QDSIM)
  230. option(QL_APP_FEATURE_DSIM "Enable Dual SIM Dual Standby(DSDS)" ON)
  231. else()
  232. message(STATUS "FEATURE DOUBLE SIM is disabled at core!")
  233. option(QL_APP_FEATURE_DSIM "Enable Dual SIM Dual Standby(DSDS)" OFF)
  234. endif()
  235. message(STATUS "QL_APP_FEATURE_DSIM ${QL_APP_FEATURE_DSIM}")
  236. if(CONFIG_QUEC_PROJECT_FEATURE_DSSS)
  237. option(QL_APP_FEATURE_DSSS "Enable Dual SIM Single Standby(DSSS)" ON)
  238. else()
  239. message(STATUS "FEATURE DSSS is disabled at core!")
  240. option(QL_APP_FEATURE_DSSS "Enable Dual SIM Single Standby(DSSS)" OFF)
  241. endif()
  242. message(STATUS "QL_APP_FEATURE_DSSS ${QL_APP_FEATURE_DSSS}")
  243. if(CONFIG_QUEC_PROJECT_FEATURE_PBK)
  244. option(QL_APP_FEATURE_PBK "Enable PBK" ON)
  245. else()
  246. message(STATUS "FEATURE PBK is disabled at core!")
  247. option(QL_APP_FEATURE_PBK "Enable PBK" OFF)
  248. endif()
  249. message(STATUS "QL_APP_FEATURE_PBK ${QL_APP_FEATURE_PBK}")
  250. if((CONFIG_QUEC_PROJECT_FEATURE_STK) AND (NOT CONFIG_QUEC_PROJECT_FEATURE_STK_AT))
  251. option(QL_APP_FEATURE_STK "Enable STK" ON)
  252. else()
  253. message(STATUS "FEATURE STK is disabled at core!")
  254. option(QL_APP_FEATURE_STK "Enable STK" OFF)
  255. endif()
  256. message(STATUS "QL_APP_FEATURE_STK ${QL_APP_FEATURE_STK}")
  257. if(CONFIG_QUEC_PROJECT_FEATURE_SMS)
  258. option(QL_APP_FEATURE_SMS "Enable SMS" ON)
  259. else()
  260. message(STATUS "FEATURE SMS is disabled at core!")
  261. option(QL_APP_FEATURE_SMS "Enable SMS" OFF)
  262. endif()
  263. message(STATUS "QL_APP_FEATURE_SMS ${QL_APP_FEATURE_SMS}")
  264. if(CONFIG_QUEC_PROJECT_FEATURE_VOICE_CALL)
  265. option(QL_APP_FEATURE_VOICE_CALL "Enable VOICE CALL" ON)
  266. else()
  267. message(STATUS "FEATURE VOICE CALL is disabled at core!")
  268. option(QL_APP_FEATURE_VOICE_CALL "Enable VOICE CALL" OFF)
  269. endif()
  270. message(STATUS "QL_APP_FEATURE_VOICE_CALL ${QL_APP_FEATURE_VOICE_CALL}")
  271. if(CONFIG_QUEC_PROJECT_FEATURE_VOLTE)
  272. option(QL_APP_FEATURE_VOLTE "Enable VoLTE CALL" ON)
  273. else()
  274. message(STATUS "FEATURE VoLTE is disabled at core!")
  275. option(QL_APP_FEATURE_VOLTE "Enable VoLTE CALL" OFF)
  276. endif()
  277. message(STATUS "QL_APP_FEATURE_VOLTE ${QL_APP_FEATURE_VOLTE}")
  278. if((CONFIG_QUEC_PROJECT_FEATURE_SPI) AND (CONFIG_QUEC_PROJECT_FEATURE_GPIO))
  279. option(QL_APP_FEATURE_SPI "Enable SPI" ON)
  280. else()
  281. message(STATUS "FEATURE SPI is disabled at core!")
  282. option(QL_APP_FEATURE_SPI "Enable SPI" OFF)
  283. endif()
  284. message(STATUS "QL_APP_FEATURE_SPI ${QL_APP_FEATURE_SPI}")
  285. if((CONFIG_QUEC_PROJECT_FEATURE_SPI_NOR_FLASH) AND (CONFIG_QUEC_PROJECT_FEATURE_GPIO))
  286. option(QL_APP_FEATURE_SPI_NOR_FLASH "Enable SPI_NOR_FLASH" ON)
  287. else()
  288. message(STATUS "FEATURE SPI_NOR_FLASH is disabled at core!")
  289. option(QL_APP_FEATURE_SPI_NOR_FLASH "Enable SPI_NOR_FLASH" OFF)
  290. endif()
  291. message(STATUS "QL_APP_FEATURE_SPI_NOR_FLASH ${QL_APP_FEATURE_SPI_NOR_FLASH}")
  292. if((CONFIG_QUEC_PROJECT_FEATURE_SPI4_EXT_NOR_SFFS) AND (CONFIG_QUEC_PROJECT_FEATURE_GPIO))
  293. option(QL_APP_FEATURE_SPI4_EXT_NOR_SFFS "Enable SPI4_EXT_NOR_SFFS" ON)
  294. else()
  295. message(STATUS "FEATURE SPI4_EXT_NOR_SFFS is disabled at core!")
  296. option(QL_APP_FEATURE_SPI4_EXT_NOR_SFFS "Enable SPI4_EXT_NOR_SFFS" OFF)
  297. endif()
  298. message(STATUS "QL_APP_FEATURE_SPI4_EXT_NOR_SFFS ${QL_APP_FEATURE_SPI4_EXT_NOR_SFFS}")
  299. if(CONFIG_QUEC_PROJECT_FEATURE_SPI6_EXT_NOR)
  300. option(QL_APP_FEATURE_SPI6_EXT_NOR "Enable SPI6_EXT_NOR_FLASH" ON)
  301. else()
  302. message(STATUS "FEATURE SPI6_EXT_NOR_FLASH is disabled at core!")
  303. option(QL_APP_FEATURE_SPI6_EXT_NOR "Enable SPI6_EXT_NOR_FLASH" OFF)
  304. endif()
  305. message(STATUS "QL_APP_FEATURE_SPI6_EXT_NOR ${QL_APP_FEATURE_SPI6_EXT_NOR}")
  306. if((CONFIG_QUEC_PROJECT_FEATURE_SPI_NAND_FLASH) AND (CONFIG_QUEC_PROJECT_FEATURE_GPIO))
  307. option(QL_APP_FEATURE_SPI_NAND_FLASH "Enable SPI_NAND_FLASH" ON)
  308. else()
  309. message(STATUS "FEATURE SPI_NAND_FLASH is disabled at core!")
  310. option(QL_APP_FEATURE_SPI_NAND_FLASH "Enable SPI_NAND_FLASH" OFF)
  311. endif()
  312. message(STATUS "QL_APP_FEATURE_SPI_NAND_FLASH ${QL_APP_FEATURE_SPI_NAND_FLASH}")
  313. if((CONFIG_QUEC_PROJECT_FEATURE_SPI6_NAND_FLASH) AND (CONFIG_QUEC_PROJECT_FEATURE_GPIO))
  314. option(QL_APP_FEATURE_SPI6_NAND_FLASH "Enable SPI6_NAND_FLASH" ON)
  315. else()
  316. message(STATUS "FEATURE SPI6_NAND_FLASH is disabled at core!")
  317. option(QL_APP_FEATURE_SPI6_NAND_FLASH "Enable SPI6_NAND_FLASH" OFF)
  318. endif()
  319. message(STATUS "QL_APP_FEATURE_SPI6_NAND_FLASH ${QL_APP_FEATURE_SPI6_NAND_FLASH}")
  320. if(CONFIG_QUEC_PROJECT_FEATURE_UART)
  321. option(QL_APP_FEATURE_UART "Enable UART" ON)
  322. else()
  323. message(STATUS "FEATURE UART is disabled at core!")
  324. option(QL_APP_FEATURE_UART "Enable UART" OFF)
  325. endif()
  326. message(STATUS "QL_APP_FEATURE_UART ${QL_APP_FEATURE_UART}")
  327. if(CONFIG_QUEC_PROJECT_FEATURE_UART)
  328. option(QL_APP_FEATURE_RS485 "Enable RS485" ON)
  329. else()
  330. message(STATUS "FEATURE RS485 is disabled at core!")
  331. option(QL_APP_FEATURE_RS485 "Enable RS485" OFF)
  332. endif()
  333. message(STATUS "QL_APP_FEATURE_RS485 ${QL_APP_FEATURE_RS485}")
  334. if(CONFIG_QUEC_PROJECT_FEATURE_LEDCFG)
  335. option(QL_APP_FEATURE_LEDCFG "Enable LEDCFG" ON)
  336. else()
  337. message(STATUS "FEATURE LEDCFG is disabled at core!")
  338. option(QL_APP_FEATURE_LEDCFG "Enable LEDCFG" OFF)
  339. endif()
  340. message(STATUS "QL_APP_FEATURE_LEDCFG ${QL_APP_FEATURE_LEDCFG}")
  341. if(CONFIG_QUEC_PROJECT_FEATURE_KEYPAD)
  342. option(QL_APP_FEATURE_KEYPAD "Enable KEYPAD" ON)
  343. else()
  344. message(STATUS "FEATURE KEYPAD is disabled at core!")
  345. option(QL_APP_FEATURE_KEYPAD "Enable KEYPAD" OFF)
  346. endif()
  347. message(STATUS "QL_APP_FEATURE_KEYPAD ${QL_APP_FEATURE_KEYPAD}")
  348. option(QL_APP_FEATURE_DECODER "Enable DECODER" ON)
  349. message(STATUS "QL_APP_FEATURE_DECODER ${QL_APP_FEATURE_DECODER}")
  350. option(QL_APP_FEATURE_APP_IMG_AT "Enable APP IMG AT" ON)
  351. message(STATUS "QL_APP_FEATURE_APP_IMG_AT ${QL_APP_FEATURE_APP_IMG_AT}")
  352. if(CONFIG_QUEC_PROJECT_FEATURE_RTC)
  353. option(QL_APP_FEATURE_RTC "Enable RTC" ON)
  354. else()
  355. message(STATUS "FEATURE RTC is disabled at core!")
  356. option(QL_APP_FEATURE_RTC "Enable RTC" OFF)
  357. endif()
  358. message(STATUS "QL_APP_FEATURE_RTC ${QL_APP_FEATURE_RTC}")
  359. if(CONFIG_QUEC_PROJECT_FEATURE_SECURE_BOOT)
  360. option(QL_APP_FEATURE_SECURE_BOOT "Enable SECURE BOOT" OFF)
  361. else()
  362. message(STATUS "FEATURE SECURE BOOT is disabled at core!")
  363. option(QL_APP_FEATURE_SECURE_BOOT "Enable SECURE BOOT" OFF)
  364. endif()
  365. message(STATUS "QL_APP_FEATURE_SECURE_BOOT ${QL_APP_FEATURE_SECURE_BOOT}")
  366. if(CONFIG_QUEC_PROJECT_FEATURE_USB_CHARGE)
  367. option(QL_APP_FEATURE_USB_CHARGE "Enable USB CHARGE" ON)
  368. else()
  369. message(STATUS "FEATURE USB CHARGE is disabled at core!")
  370. option(QL_APP_FEATURE_USB_CHARGE "Enable USB CHARGE" OFF)
  371. endif()
  372. message(STATUS "QL_APP_FEATURE_USB_CHARGE ${QL_APP_FEATURE_USB_CHARGE}")
  373. if(CONFIG_QUEC_PROJECT_FEATURE_VIRT_AT)
  374. option(QL_APP_FEATURE_VIRT_AT "Enable VIRT AT" ON)
  375. else()
  376. message(STATUS "FEATURE VIRT AT is disabled at core!")
  377. option(QL_APP_FEATURE_VIRT_AT "Enable VIRT_AT" OFF)
  378. endif()
  379. message(STATUS "QL_APP_FEATURE_VIRT_AT ${QL_APP_FEATURE_VIRT_AT}")
  380. if(CONFIG_QUEC_PROJECT_FEATURE_FOTA)
  381. option(QL_APP_FEATURE_FOTA "Enable FOTA" ON)
  382. else()
  383. message(STATUS "FEATURE FOTA is disabled at core!")
  384. option(QL_APP_FEATURE_FOTA "Enable FOTA" OFF)
  385. endif()
  386. if(CONFIG_QUEC_PROJECT_FEATURE_I2C)
  387. option(QL_APP_FEATURE_I2C "Enable I2C" ON)
  388. else()
  389. message(STATUS "FEATURE I2C is disabled at core!")
  390. option(QL_APP_FEATURE_I2C "Enable I2C" OFF)
  391. endif()
  392. message(STATUS "QL_APP_FEATURE_I2C ${QL_APP_FEATURE_I2C}")
  393. if(CONFIG_QUEC_PROJECT_FEATURE_USB)
  394. option(QL_APP_FEATURE_USB "Enable USB" ON)
  395. else()
  396. message(STATUS "FEATURE USB is disabled at core!")
  397. option(QL_APP_FEATURE_USB "Enable USB" OFF)
  398. endif()
  399. message(STATUS "QL_APP_FEATURE_USB ${QL_APP_FEATURE_USB}")
  400. if(QL_APP_FEATURE_FOTA)
  401. if (CONFIG_QUEC_PROJECT_FEATURE_HTTP)
  402. option(QL_APP_FEATURE_HTTP_FOTA "Enable FOTA_HTTP" ON)
  403. else()
  404. option(QL_APP_FEATURE_HTTP_FOTA "Enable FOTA_HTTP" OFF)
  405. endif()
  406. message(STATUS "QL_APP_FEATURE_HTTP_FOTA ${QL_APP_FEATURE_HTTP_FOTA}")
  407. if (CONFIG_QUEC_PROJECT_FEATURE_FTP)
  408. option(QL_APP_FEATURE_FTP_FOTA "Enable FOTA_FTP" ON)
  409. else()
  410. option(QL_APP_FEATURE_FTP_FOTA "Enable FOTA_FTP" OFF)
  411. endif()
  412. message(STATUS "QL_APP_FEATURE_FTP_FOTA ${QL_APP_FEATURE_FTP_FOTA}")
  413. endif()
  414. if(CONFIG_QUEC_PROJECT_FEATURE_JAMDET)
  415. option(QL_APP_FEATURE_JAMDET "Enable JAMDET" ON)
  416. else()
  417. message(STATUS "FEATURE JAMDET is disabled at core!")
  418. option(QL_APP_FEATURE_JAMDET "Enable JAMDET" OFF)
  419. endif()
  420. message(STATUS "QL_APP_FEATURE_JAMDET ${QL_APP_FEATURE_JAMDET}")
  421. if(CONFIG_QUEC_PROJECT_FEATURE_SDMMC OR CONFIG_QUEC_PROJECT_FEATURE_EMMC OR CONFIG_QUEC_PROJECT_FEATURE_SDMMC2 OR CONFIG_QUEC_PROJECT_FEATURE_EMMC2)
  422. option(QL_APP_FEATURE_SDMMC "Enable SDMMC" ON)
  423. else()
  424. message(STATUS "FEATURE SDMMC is disabled at core!")
  425. option(QL_APP_FEATURE_SDMMC "Enable SDMMC" OFF)
  426. endif()
  427. message(STATUS "QL_APP_FEATURE_SDMMC ${QL_APP_FEATURE_SDMMC}")
  428. if(CONFIG_QUEC_PROJECT_FEATURE_PWK)
  429. option(QL_APP_FEATURE_PWK "Enable PWK" ON)
  430. else()
  431. message(STATUS "FEATURE PWK is disabled at core!")
  432. option(QL_APP_FEATURE_PWK "Enable PWK" OFF)
  433. endif()
  434. message(STATUS "QL_APP_FEATURE_PWK ${QL_APP_FEATURE_PWK}")
  435. if(CONFIG_QUEC_PROJECT_FEATURE_USBNET)
  436. option(QL_APP_FEATURE_USBNET "Enable USBNET" ON)
  437. else()
  438. message(STATUS "FEATURE USBNET is disabled at core!")
  439. option(QL_APP_FEATURE_USBNET "Enable USBNET" OFF)
  440. endif()
  441. message(STATUS "QL_APP_FEATURE_USBNET ${QL_APP_FEATURE_USBNET}")
  442. if(CONFIG_QUEC_PROJECT_FEATURE_FS_NAND_FLASH)
  443. option(QL_APP_FEATURE_FS_NAND_FLASH "Enable FS_NAND_FLASH" ON)
  444. else()
  445. message(STATUS "FEATURE FS_NAND_FLASH is disabled at core!")
  446. option(QL_APP_FEATURE_FS_NAND_FLASH "Enable FS_NAND_FLASH" OFF)
  447. endif()
  448. message(STATUS "QL_APP_FEATURE_FS_NAND_FLASH ${QL_APP_FEATURE_FS_NAND_FLASH}")
  449. if(CONFIG_QUEC_PROJECT_FEATURE_FS_NOR_FLASH)
  450. option(QL_APP_FEATURE_FS_NOR_FLASH "Enable FS_NOR_FLASH" ON)
  451. else()
  452. message(STATUS "FEATURE FS_NOR_FLASH is disabled at core!")
  453. option(QL_APP_FEATURE_FS_NOR_FLASH "Enable FS_NOR_FLASH" OFF)
  454. endif()
  455. message(STATUS "QL_APP_FEATURE_FS_NOR_FLASH ${QL_APP_FEATURE_FS_NOR_FLASH}")
  456. if((CONFIG_QUEC_PROJECT_FEATURE_SSH2) AND (CONFIG_QUEC_PROJECT_FEATURE_FTP))
  457. option(QL_APP_FEATURE_SFTP "Enable SFTP" ON)
  458. else()
  459. message(STATUS "FEATURE SFTP is disabled at core!")
  460. option(QL_APP_FEATURE_SFTP "Enable SFTP" OFF)
  461. endif()
  462. message(STATUS "QL_APP_FEATURE_SFTP ${QL_APP_FEATURE_SFTP}")
  463. option(QL_APP_FEATURE_MXML "Enable MXML" ON)
  464. message(STATUS "QL_APP_FEATURE_MXML ${QL_APP_FEATURE_MXML}")
  465. if(CONFIG_QUEC_PROJECT_FEATURE_EMBED_NOR_FLASH)
  466. option(QL_APP_FEATURE_EMBED_NOR_FLASH "Enable EMBED NOR FLASH" ON)
  467. else()
  468. message(STATUS "FEATURE EMBED NOR FLASH is disabled at core!")
  469. option(QL_APP_FEATURE_EMBED_NOR_FLASH "Disable EMBED NOR FLASH" OFF)
  470. endif()
  471. message(STATUS "QL_APP_FEATURE_EMBED_NOR_FLASH ${QL_APP_FEATURE_EMBED_NOR_FLASH}")
  472. if( NOT CONFIG_QUEC_PROJECT_FEATURE_EXT_NOR_SFFS_MOUNT)
  473. option(QL_APP_FEATURE_EXT_NOR_FLASH "Enable EXT NOR FLASH" ON)
  474. else()
  475. message(STATUS "FEATURE EXT NOR FLASH is disabled at core!")
  476. option(QL_APP_FEATURE_EXT_NOR_FLASH "Disable EXT NOR FLASH" OFF)
  477. endif()
  478. message(STATUS "QL_APP_FEATURE_EXT_NOR_FLASH ${QL_APP_FEATURE_EXT_NOR_FLASH}")
  479. if((CONFIG_QUEC_PROJECT_FEATURE_FOTA) AND (CONFIG_QUEC_PROJECT_FEATURE_HTTP) AND (CONFIG_QUEC_PROJECT_FEATURE_CLOUDOTA))
  480. option(QL_APP_FEATURE_CLOUDOTA "Enable CLOUDOTA" ON)
  481. else()
  482. message(STATUS "FEATURE CLOUDOTA is disabled at core!")
  483. option(QL_APP_FEATURE_CLOUDOTA "Enable CLOUDOTA" OFF)
  484. endif()
  485. message(STATUS "QL_APP_FEATURE_CLOUDOTA ${QL_APP_FEATURE_CLOUDOTA}")
  486. option(QL_APP_FEATURE_HILINK "Enable HILINK" ON)
  487. message(STATUS "QL_APP_FEATURE_HILINK ${QL_APP_FEATURE_HILINK}")
  488. if(CONFIG_QUEC_PROJECT_FEATURE_GPRS_DATA_TRANSFER)
  489. option(QL_APP_FEATURE_GPRS_DATA_TRANSFER "Enable GPRS_DATA_TRANSFER" ON)
  490. else()
  491. message(STATUS "FEATURE GPRS_DATA_TRANSFER is disabled at core!")
  492. option(QL_APP_FEATURE_GPRS_DATA_TRANSFER "Enable GPRS_DATA_TRANSFER" OFF)
  493. endif()
  494. message(STATUS "QL_APP_FEATURE_GPRS_DATA_TRANSFER ${QL_APP_FEATURE_GPRS_DATA_TRANSFER}")
  495. if(CONFIG_QUEC_PROJECT_FEATURE_PSM)
  496. option(QL_APP_FEATURE_PSM "Enable PSM" ON)
  497. else()
  498. message(STATUS "FEATURE PSM is disabled at core!")
  499. option(QL_APP_FEATURE_PSM "Enable PSM" OFF)
  500. endif()
  501. message(STATUS "QL_APP_FEATURE_PSM ${QL_APP_FEATURE_PSM}")
  502. if(CONFIG_QUEC_PROJECT_FEATURE_TP)
  503. option(QL_APP_FEATURE_TP "Enable TP" ON)
  504. else()
  505. message(STATUS "FEATURE TP is disabled at core!")
  506. option(QL_APP_FEATURE_TP "Enable TP " OFF)
  507. endif()
  508. message(STATUS "QL_APP_FEATURE_TP ${QL_APP_FEATURE_TP}")
  509. if(CONFIG_QUEC_PROJECT_FEATURE_ALIPAY_IOT_SDK)
  510. option(QL_APP_FEATURE_ALIPAY_IOT_SDK "Enable ALIPAY_IOT_SDK" ON)
  511. else()
  512. message(STATUS "FEATURE ALIPAY_IOT_SDK is disabled at core!")
  513. option(QL_APP_FEATURE_ALIPAY_IOT_SDK "Enable ALIPAY_IOT_SDK" OFF)
  514. endif()
  515. message(STATUS "QL_APP_FEATURE_ALIPAY_IOT_SDK ${QL_APP_FEATURE_ALIPAY_IOT_SDK}")
  516. if(CONFIG_QUEC_PROJECT_FEATURE_WEBSOCKET)
  517. option(QL_APP_FEATURE_WEBSOCKET "Enable WEBSOCKET" ON)
  518. else()
  519. message(STATUS "FEATURE WEBSOCKET is disabled at core!")
  520. option(QL_APP_FEATURE_WEBSOCKET "Enable WEBSOCKET" OFF)
  521. endif()
  522. message(STATUS "QL_APP_FEATURE_WEBSOCKET ${QL_APP_FEATURE_WEBSOCKET}")
  523. if(CONFIG_QUEC_PROJECT_FEATURE_NTRIP_RTK)
  524. option(QL_APP_FEATURE_NTRIP_RTK "Enable NTRIP RTK" ON)
  525. else()
  526. message(STATUS "FEATURE NTRIP_RTK is disabled at core!")
  527. option(QL_APP_FEATURE_NTRIP_RTK "Enable NTRIP RTK " OFF)
  528. endif()
  529. message(STATUS "QL_APP_FEATURE_NTRIP_RTK ${QL_APP_FEATURE_NTRIP_RTK}")
  530. if(CONFIG_QUEC_PROJECT_FEATURE_ETHERNET)
  531. option(QL_APP_FEATURE_ETHERNET "Enable ETHERNET" ON)
  532. else()
  533. message(STATUS "FEATURE ETHERNET is disabled at core!")
  534. option(QL_APP_FEATURE_ETHERNET "Enable ETHERNET" OFF)
  535. endif()
  536. message(STATUS "QL_APP_FEATURE_ETHERNET ${QL_APP_FEATURE_ETHERNET}")
  537. if(CONFIG_QUEC_PROJECT_FEATURE_APPIMG2)
  538. option(QL_APP_FEATURE_APPIMG2 "Enable APPIMG2" ON)
  539. else()
  540. message(STATUS "FEATURE APPIMG2 is disabled at core!")
  541. option(QL_APP_FEATURE_APPIMG2 "Enable APPIMG2" OFF)
  542. endif()
  543. message(STATUS "QL_APP_FEATURE_APPIMG2 ${QL_APP_FEATURE_APPIMG2}")
  544. if(CONFIG_QUEC_PROJECT_FEATURE_WIFI)
  545. option(QL_APP_FEATURE_WIFI "Enable WIFI" ON)
  546. else()
  547. message(STATUS "FEATURE WIFI is disabled at core!")
  548. option(QL_APP_FEATURE_WIFI "Enable WIFI" OFF)
  549. endif()
  550. message(STATUS "QL_APP_FEATURE_WIFI ${QL_APP_FEATURE_WIFI}")
  551. ################################################################################################################
  552. # Quectel open sdk package config
  553. ################################################################################################################
  554. if (QL_APP_FEATURE_TTS OR QL_APP_FEATURE_BT)
  555. option(QL_APP_PACK_FILE "Enable pack file to firmware package" ON)
  556. else()
  557. option(QL_APP_PACK_FILE "Enable pack file to firmware package" OFF)
  558. endif()
  559. if (QL_APP_PACK_FILE)
  560. if(QL_APP_FEATURE_TTS)
  561. if(QL_APP_FEATURE_BT)
  562. set(QL_APP_PACK_FILE_JSON_PATH components/ql-config/download/prepack/ql_prepack_tts_bt.json)
  563. else()
  564. set(QL_APP_PACK_FILE_JSON_PATH components/ql-config/download/prepack/ql_prepack_tts.json)
  565. endif()
  566. else()
  567. if(QL_APP_FEATURE_BT)
  568. set(QL_APP_PACK_FILE_JSON_PATH components/ql-config/download/prepack/ql_prepack_bt.json)
  569. endif()
  570. endif()
  571. file(WRITE ${BINARY_TOP_DIR}/ql_prepack.opt "Y")
  572. endif()
  573. message(STATUS "QL_APP_PACK_FILE ${QL_APP_PACK_FILE} @ ${QL_APP_PACK_FILE_JSON_PATH}")
  574. if (QL_APP_FEATURE_SECURE_BOOT)
  575. file(WRITE ${BINARY_TOP_DIR}/ql_secure.opt "Y")
  576. endif()
  577. message("\n")
  578. endif()