1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_middleware_baremetal)
5# Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component
6
7message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9if(CONFIG_USE_COMPONENT_CONFIGURATION)
10  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
11
12  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
13    -DSDK_OS_BAREMETAL
14  )
15
16endif()
17
18
19endif()
20
21
22if (CONFIG_USE_utilities_misc_utilities)
23# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component
24
25message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.")
26
27if(CONFIG_TOOLCHAIN STREQUAL armgcc)
28  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
29      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c
30      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c
31  )
32endif()
33
34if(CONFIG_CORE STREQUAL cm7f AND (CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux))
35  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
36      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_memcpy.S
37  )
38endif()
39
40
41endif()
42
43
44if (CONFIG_USE_driver_phy-common)
45# Add set(CONFIG_USE_driver_phy-common true) in config.cmake to use this component
46
47message("driver_phy-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
48
49target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
50  ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/.
51)
52
53
54endif()
55
56
57if (CONFIG_USE_driver_srtm)
58# Add set(CONFIG_USE_driver_srtm true) in config.cmake to use this component
59
60message("driver_srtm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
61
62target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
63  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_channel.c
64  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_dispatcher.c
65  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_message.c
66  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_peercore.c
67  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_service.c
68  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_message_pool.c
69)
70
71target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
72  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/include
73  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm
74  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port
75)
76
77
78endif()
79
80
81if (CONFIG_USE_DEVICES_Project_Template_MIMX8ML8)
82# Add set(CONFIG_USE_DEVICES_Project_Template_MIMX8ML8 true) in config.cmake to use this component
83
84message("DEVICES_Project_Template_MIMX8ML8 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
85
86if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_device_MIMX8ML8_CMSIS AND CONFIG_USE_device_MIMX8ML8_startup AND CONFIG_USE_driver_audiomix AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_iuart AND CONFIG_USE_driver_rdc AND ((CONFIG_USE_utility_assert AND CONFIG_USE_utility_debug_console) OR (CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite)))
87
88add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
89add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
90add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
91add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
92add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
93add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
94add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
95add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMX8ML8.MIMX8ML8)
96
97target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
98  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
99)
100
101else()
102
103message(SEND_ERROR "DEVICES_Project_Template_MIMX8ML8.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
104
105endif()
106
107endif()
108
109
110if (CONFIG_USE_device_MIMX8ML8_CMSIS)
111# Add set(CONFIG_USE_device_MIMX8ML8_CMSIS true) in config.cmake to use this component
112
113message("device_MIMX8ML8_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.")
114
115if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
116
117target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
118  ${CMAKE_CURRENT_LIST_DIR}/./.
119)
120
121else()
122
123message(SEND_ERROR "device_MIMX8ML8_CMSIS.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
124
125endif()
126
127endif()
128
129
130if (CONFIG_USE_RTE_Device)
131# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component
132
133message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.")
134
135if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
136
137add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMX8ML8)
138
139target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
140  ${CMAKE_CURRENT_LIST_DIR}/template/.
141)
142
143else()
144
145message(SEND_ERROR "RTE_Device.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
146
147endif()
148
149endif()
150
151
152if (CONFIG_USE_driver_clock)
153# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component
154
155message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.")
156
157if(CONFIG_USE_driver_common)
158
159target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
160  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c
161)
162
163target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
164  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
165)
166
167else()
168
169message(SEND_ERROR "driver_clock.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
170
171endif()
172
173endif()
174
175
176if (CONFIG_USE_driver_audiomix)
177# Add set(CONFIG_USE_driver_audiomix true) in config.cmake to use this component
178
179message("driver_audiomix component is included from ${CMAKE_CURRENT_LIST_FILE}.")
180
181if(CONFIG_USE_driver_common)
182
183target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
184  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_audiomix.c
185)
186
187target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
188  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
189)
190
191else()
192
193message(SEND_ERROR "driver_audiomix.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
194
195endif()
196
197endif()
198
199
200if (CONFIG_USE_driver_enet)
201# Add set(CONFIG_USE_driver_enet true) in config.cmake to use this component
202
203message("driver_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.")
204
205if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
206
207target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
208  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/fsl_enet.c
209)
210
211target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
212  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/.
213)
214
215else()
216
217message(SEND_ERROR "driver_enet.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
218
219endif()
220
221endif()
222
223
224if (CONFIG_USE_driver_sdma)
225# Add set(CONFIG_USE_driver_sdma true) in config.cmake to use this component
226
227message("driver_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
228
229if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
230
231target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
232  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sdma/fsl_sdma.c
233)
234
235target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
236  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sdma/.
237)
238
239else()
240
241message(SEND_ERROR "driver_sdma.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
242
243endif()
244
245endif()
246
247
248if (CONFIG_USE_driver_cache_armv7_m7)
249# Add set(CONFIG_USE_driver_cache_armv7_m7 true) in config.cmake to use this component
250
251message("driver_cache_armv7_m7 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
252
253if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common)
254
255target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
256  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/fsl_cache.c
257)
258
259target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
260  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/.
261)
262
263else()
264
265message(SEND_ERROR "driver_cache_armv7_m7.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
266
267endif()
268
269endif()
270
271
272if (CONFIG_USE_driver_ecspi_sdma)
273# Add set(CONFIG_USE_driver_ecspi_sdma true) in config.cmake to use this component
274
275message("driver_ecspi_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
276
277if(CONFIG_USE_driver_sdma AND CONFIG_USE_driver_ecspi)
278
279target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
280  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/fsl_ecspi_sdma.c
281)
282
283target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
284  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/.
285)
286
287else()
288
289message(SEND_ERROR "driver_ecspi_sdma.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
290
291endif()
292
293endif()
294
295
296if (CONFIG_USE_driver_iuart_sdma)
297# Add set(CONFIG_USE_driver_iuart_sdma true) in config.cmake to use this component
298
299message("driver_iuart_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
300
301if(CONFIG_USE_driver_sdma AND CONFIG_USE_driver_iuart)
302
303target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
304  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/fsl_uart_sdma.c
305)
306
307target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
308  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/.
309)
310
311else()
312
313message(SEND_ERROR "driver_iuart_sdma.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
314
315endif()
316
317endif()
318
319
320if (CONFIG_USE_driver_sai_sdma)
321# Add set(CONFIG_USE_driver_sai_sdma true) in config.cmake to use this component
322
323message("driver_sai_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
324
325if(CONFIG_USE_driver_sdma AND CONFIG_USE_driver_sai)
326
327target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
328  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai_sdma.c
329)
330
331target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
332  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/.
333)
334
335else()
336
337message(SEND_ERROR "driver_sai_sdma.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
338
339endif()
340
341endif()
342
343
344if (CONFIG_USE_component_serial_manager_uart)
345# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component
346
347message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
348
349if(CONFIG_USE_component_iuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_iuart))
350
351target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
352  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c
353)
354
355target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
356  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
357)
358
359if(CONFIG_USE_COMPONENT_CONFIGURATION)
360  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
361
362  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
363    -DSERIAL_PORT_TYPE_UART=1
364  )
365
366endif()
367
368else()
369
370message(SEND_ERROR "component_serial_manager_uart.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
371
372endif()
373
374endif()
375
376
377if (CONFIG_USE_utility_debug_console_lite)
378# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component
379
380message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
381
382if(CONFIG_USE_component_iuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
383
384target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
385  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
386  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c
387)
388
389target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
390  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
391  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite
392)
393
394else()
395
396message(SEND_ERROR "utility_debug_console_lite.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
397
398endif()
399
400endif()
401
402
403if (CONFIG_USE_driver_iomuxc)
404# Add set(CONFIG_USE_driver_iomuxc true) in config.cmake to use this component
405
406message("driver_iomuxc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
407
408if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
409
410target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
411  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
412)
413
414else()
415
416message(SEND_ERROR "driver_iomuxc.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
417
418endif()
419
420endif()
421
422
423if (CONFIG_USE_driver_memory)
424# Add set(CONFIG_USE_driver_memory true) in config.cmake to use this component
425
426message("driver_memory component is included from ${CMAKE_CURRENT_LIST_FILE}.")
427
428if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
429
430target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
431  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
432)
433
434else()
435
436message(SEND_ERROR "driver_memory.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
437
438endif()
439
440endif()
441
442
443if (CONFIG_USE_device_MIMX8ML8_system)
444# Add set(CONFIG_USE_device_MIMX8ML8_system true) in config.cmake to use this component
445
446message("device_MIMX8ML8_system component is included from ${CMAKE_CURRENT_LIST_FILE}.")
447
448if(CONFIG_USE_device_MIMX8ML8_CMSIS)
449
450target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
451  ${CMAKE_CURRENT_LIST_DIR}/./system_MIMX8ML8_cm7.c
452)
453
454target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
455  ${CMAKE_CURRENT_LIST_DIR}/./.
456)
457
458else()
459
460message(SEND_ERROR "device_MIMX8ML8_system.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
461
462endif()
463
464endif()
465
466
467if (CONFIG_USE_device_MIMX8ML8_startup)
468# Add set(CONFIG_USE_device_MIMX8ML8_startup true) in config.cmake to use this component
469
470message("device_MIMX8ML8_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.")
471
472if(CONFIG_USE_device_MIMX8ML8_system)
473
474if(CONFIG_TOOLCHAIN STREQUAL armgcc)
475  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
476      ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMX8ML8_cm7.S
477  )
478endif()
479
480if(CONFIG_TOOLCHAIN STREQUAL mcux)
481  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
482      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_MIMX8ML8_cm7.c
483      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_MIMX8ML8_cm7.cpp
484  )
485endif()
486
487else()
488
489message(SEND_ERROR "device_MIMX8ML8_startup.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
490
491endif()
492
493endif()
494
495
496if (CONFIG_USE_utility_assert)
497# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component
498
499message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.")
500
501if(CONFIG_USE_utility_debug_console)
502
503target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
504  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
505)
506
507else()
508
509message(SEND_ERROR "utility_assert.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
510
511endif()
512
513endif()
514
515
516if (CONFIG_USE_utility_assert_lite)
517# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component
518
519message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
520
521if(CONFIG_USE_utility_debug_console_lite)
522
523target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
524  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
525)
526
527else()
528
529message(SEND_ERROR "utility_assert_lite.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
530
531endif()
532
533endif()
534
535
536if (CONFIG_USE_utility_str)
537# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component
538
539message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.")
540
541if(CONFIG_USE_driver_common)
542
543target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
544  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
545)
546
547target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
548  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
549)
550
551else()
552
553message(SEND_ERROR "utility_str.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
554
555endif()
556
557endif()
558
559
560if (CONFIG_USE_utility_debug_console)
561# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component
562
563message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.")
564
565if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
566
567target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
568  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
569  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c
570)
571
572target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
573  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
574  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console
575)
576
577else()
578
579message(SEND_ERROR "utility_debug_console.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
580
581endif()
582
583endif()
584
585
586if (CONFIG_USE_driver_cmsis_ecspi)
587# Add set(CONFIG_USE_driver_cmsis_ecspi true) in config.cmake to use this component
588
589message("driver_cmsis_ecspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
590
591if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_ecspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device)
592
593target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
594  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ecspi/fsl_ecspi_cmsis.c
595)
596
597target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
598  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ecspi/.
599)
600
601else()
602
603message(SEND_ERROR "driver_cmsis_ecspi.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
604
605endif()
606
607endif()
608
609
610if (CONFIG_USE_driver_cmsis_enet)
611# Add set(CONFIG_USE_driver_cmsis_enet true) in config.cmake to use this component
612
613message("driver_cmsis_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.")
614
615if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_enet AND CONFIG_USE_CMSIS_Driver_Include_Ethernet_MAC AND CONFIG_USE_CMSIS_Driver_Include_Ethernet_PHY AND CONFIG_USE_CMSIS_Driver_Include_Ethernet AND CONFIG_USE_RTE_Device AND CONFIG_USE_driver_phy-common)
616
617target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
618  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_cmsis.c
619  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_phy_cmsis.c
620)
621
622target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
623  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/.
624)
625
626else()
627
628message(SEND_ERROR "driver_cmsis_enet.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
629
630endif()
631
632endif()
633
634
635if (CONFIG_USE_driver_cmsis_ii2c)
636# Add set(CONFIG_USE_driver_cmsis_ii2c true) in config.cmake to use this component
637
638message("driver_cmsis_ii2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
639
640if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_ii2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device)
641
642target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
643  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ii2c/fsl_i2c_cmsis.c
644)
645
646target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
647  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ii2c/.
648)
649
650else()
651
652message(SEND_ERROR "driver_cmsis_ii2c.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
653
654endif()
655
656endif()
657
658
659if (CONFIG_USE_driver_cmsis_iuart)
660# Add set(CONFIG_USE_driver_cmsis_iuart true) in config.cmake to use this component
661
662message("driver_cmsis_iuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
663
664if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_iuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device)
665
666target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
667  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/iuart/fsl_uart_cmsis.c
668)
669
670target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
671  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/iuart/.
672)
673
674else()
675
676message(SEND_ERROR "driver_cmsis_iuart.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
677
678endif()
679
680endif()
681
682
683if (CONFIG_USE_driver_codec)
684# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component
685
686message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.")
687
688if(CONFIG_USE_driver_common AND (CONFIG_USE_component_wm8960_adapter OR CONFIG_USE_component_codec_adapters))
689
690target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
691  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c
692)
693
694target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
695  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/.
696)
697
698if(CONFIG_USE_COMPONENT_CONFIGURATION)
699  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
700
701  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
702    -DSDK_I2C_BASED_COMPONENT_USED=1
703  )
704
705endif()
706
707else()
708
709message(SEND_ERROR "driver_codec.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
710
711endif()
712
713endif()
714
715
716if (CONFIG_USE_component_codec_adapters)
717# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component
718
719message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.")
720
721if((CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8960_adapter))
722
723target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
724  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c
725)
726
727target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
728  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
729)
730
731if(CONFIG_USE_COMPONENT_CONFIGURATION)
732  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
733
734  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
735    -DCODEC_MULTI_ADAPTERS=1
736  )
737
738endif()
739
740else()
741
742message(SEND_ERROR "component_codec_adapters.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
743
744endif()
745
746endif()
747
748
749if (CONFIG_USE_component_wm8960_adapter)
750# Add set(CONFIG_USE_component_wm8960_adapter true) in config.cmake to use this component
751
752message("component_wm8960_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
753
754if(CONFIG_USE_driver_wm8960 AND CONFIG_USE_driver_codec)
755
756target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
757  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960/fsl_codec_wm8960_adapter.c
758)
759
760target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
761  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960
762  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
763)
764
765else()
766
767message(SEND_ERROR "component_wm8960_adapter.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
768
769endif()
770
771endif()
772
773
774if (CONFIG_USE_component_codec_i2c)
775# Add set(CONFIG_USE_component_codec_i2c true) in config.cmake to use this component
776
777message("component_codec_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
778
779if(CONFIG_USE_driver_common AND (CONFIG_USE_component_ii2c_adapter))
780
781target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
782  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/fsl_codec_i2c.c
783)
784
785target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
786  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/.
787)
788
789if(CONFIG_USE_COMPONENT_CONFIGURATION)
790  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
791
792  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
793    -DSDK_I2C_BASED_COMPONENT_USED=1
794  )
795
796endif()
797
798else()
799
800message(SEND_ERROR "component_codec_i2c.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
801
802endif()
803
804endif()
805
806
807if (CONFIG_USE_component_ii2c_adapter)
808# Add set(CONFIG_USE_component_ii2c_adapter true) in config.cmake to use this component
809
810message("component_ii2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
811
812if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ii2c)
813
814target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
815  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_ii2c.c
816)
817
818target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
819  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/.
820)
821
822else()
823
824message(SEND_ERROR "component_ii2c_adapter.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
825
826endif()
827
828endif()
829
830
831if (CONFIG_USE_component_lists)
832# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component
833
834message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.")
835
836if(CONFIG_USE_driver_common)
837
838target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
839  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c
840)
841
842target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
843  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/.
844)
845
846else()
847
848message(SEND_ERROR "component_lists.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
849
850endif()
851
852endif()
853
854
855if (CONFIG_USE_driver_phy-device-rtl8211f)
856# Add set(CONFIG_USE_driver_phy-device-rtl8211f true) in config.cmake to use this component
857
858message("driver_phy-device-rtl8211f component is included from ${CMAKE_CURRENT_LIST_FILE}.")
859
860if(CONFIG_USE_driver_phy-common)
861
862target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
863  ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyrtl8211f/fsl_phyrtl8211f.c
864)
865
866target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
867  ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyrtl8211f/.
868)
869
870else()
871
872message(SEND_ERROR "driver_phy-device-rtl8211f.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
873
874endif()
875
876endif()
877
878
879if (CONFIG_USE_component_serial_manager)
880# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component
881
882message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
883
884if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_virtual OR CONFIG_USE_component_serial_manager_swo))
885
886target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
887  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c
888)
889
890target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
891  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
892)
893
894else()
895
896message(SEND_ERROR "component_serial_manager.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
897
898endif()
899
900endif()
901
902
903if (CONFIG_USE_component_serial_manager_virtual)
904# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component
905
906message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.")
907
908if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
909
910target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
911  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c
912)
913
914target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
915  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
916)
917
918if(CONFIG_USE_COMPONENT_CONFIGURATION)
919  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
920
921  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
922    -DSERIAL_PORT_TYPE_VIRTUAL=1
923    -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING
924  )
925
926endif()
927
928else()
929
930message(SEND_ERROR "component_serial_manager_virtual.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
931
932endif()
933
934endif()
935
936
937if (CONFIG_USE_component_serial_manager_swo)
938# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component
939
940message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.")
941
942if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager)
943
944target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
945  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c
946)
947
948target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
949  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
950)
951
952if(CONFIG_USE_COMPONENT_CONFIGURATION)
953  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
954
955  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
956    -DSERIAL_PORT_TYPE_SWO=1
957  )
958
959endif()
960
961else()
962
963message(SEND_ERROR "component_serial_manager_swo.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
964
965endif()
966
967endif()
968
969
970if (CONFIG_USE_component_silicon_id_imx8)
971# Add set(CONFIG_USE_component_silicon_id_imx8 true) in config.cmake to use this component
972
973message("component_silicon_id_imx8 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
974
975if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_component_silicon_id)
976
977target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
978  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/imx8/fsl_silicon_id_soc.c
979)
980
981target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
982  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/imx8/..
983)
984
985else()
986
987message(SEND_ERROR "component_silicon_id_imx8.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
988
989endif()
990
991endif()
992
993
994if (CONFIG_USE_component_silicon_id)
995# Add set(CONFIG_USE_component_silicon_id true) in config.cmake to use this component
996
997message("component_silicon_id component is included from ${CMAKE_CURRENT_LIST_FILE}.")
998
999if((CONFIG_USE_driver_common AND CONFIG_USE_component_silicon_id_imx8))
1000
1001target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1002  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/fsl_silicon_id.c
1003)
1004
1005target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1006  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/.
1007)
1008
1009else()
1010
1011message(SEND_ERROR "component_silicon_id.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1012
1013endif()
1014
1015endif()
1016
1017
1018if (CONFIG_USE_driver_srtm_freertos)
1019# Add set(CONFIG_USE_driver_srtm_freertos true) in config.cmake to use this component
1020
1021message("driver_srtm_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1022
1023if(CONFIG_USE_driver_srtm)
1024
1025target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1026  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_heap_freertos.c
1027  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_mutex_freertos.c
1028  ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_sem_freertos.c
1029)
1030
1031else()
1032
1033message(SEND_ERROR "driver_srtm_freertos.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1034
1035endif()
1036
1037endif()
1038
1039
1040if (CONFIG_USE_component_iuart_adapter)
1041# Add set(CONFIG_USE_component_iuart_adapter true) in config.cmake to use this component
1042
1043message("component_iuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1044
1045if(CONFIG_USE_driver_common AND CONFIG_USE_driver_iuart)
1046
1047target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1048  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_iuart.c
1049)
1050
1051target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1052  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
1053)
1054
1055else()
1056
1057message(SEND_ERROR "component_iuart_adapter.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1058
1059endif()
1060
1061endif()
1062
1063
1064if (CONFIG_USE_driver_wm8960)
1065# Add set(CONFIG_USE_driver_wm8960 true) in config.cmake to use this component
1066
1067message("driver_wm8960 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1068
1069if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
1070
1071target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1072  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/fsl_wm8960.c
1073)
1074
1075target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1076  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/.
1077)
1078
1079if(CONFIG_USE_COMPONENT_CONFIGURATION)
1080  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1081
1082  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1083    -DSDK_I2C_BASED_COMPONENT_USED=1
1084    -DBOARD_USE_CODEC=1
1085    -DCODEC_WM8960_ENABLE
1086  )
1087
1088endif()
1089
1090else()
1091
1092message(SEND_ERROR "driver_wm8960.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1093
1094endif()
1095
1096endif()
1097
1098
1099if (CONFIG_USE_driver_common)
1100# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component
1101
1102message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1103
1104if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMX8ML8_CMSIS)
1105
1106target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1107  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c
1108)
1109
1110if(CONFIG_CORE STREQUAL cm7f)
1111  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1112      ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c
1113  )
1114endif()
1115
1116target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1117  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/.
1118)
1119
1120else()
1121
1122message(SEND_ERROR "driver_common.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1123
1124endif()
1125
1126endif()
1127
1128
1129if (CONFIG_USE_driver_easrc)
1130# Add set(CONFIG_USE_driver_easrc true) in config.cmake to use this component
1131
1132message("driver_easrc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1133
1134if(CONFIG_USE_driver_common)
1135
1136target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1137  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/fsl_asrc.c
1138)
1139
1140target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1141  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/.
1142)
1143
1144else()
1145
1146message(SEND_ERROR "driver_easrc.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1147
1148endif()
1149
1150endif()
1151
1152
1153if (CONFIG_USE_driver_easrc_sdma)
1154# Add set(CONFIG_USE_driver_easrc_sdma true) in config.cmake to use this component
1155
1156message("driver_easrc_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1157
1158if(CONFIG_USE_driver_easrc AND CONFIG_USE_driver_sdma AND CONFIG_USE_driver_common)
1159
1160target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1161  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/fsl_asrc_sdma.c
1162)
1163
1164target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1165  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/.
1166)
1167
1168else()
1169
1170message(SEND_ERROR "driver_easrc_sdma.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1171
1172endif()
1173
1174endif()
1175
1176
1177if (CONFIG_USE_driver_ecspi)
1178# Add set(CONFIG_USE_driver_ecspi true) in config.cmake to use this component
1179
1180message("driver_ecspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1181
1182if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1183
1184target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1185  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/fsl_ecspi.c
1186)
1187
1188target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1189  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/.
1190)
1191
1192else()
1193
1194message(SEND_ERROR "driver_ecspi.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1195
1196endif()
1197
1198endif()
1199
1200
1201if (CONFIG_USE_driver_ecspi_freertos)
1202# Add set(CONFIG_USE_driver_ecspi_freertos true) in config.cmake to use this component
1203
1204message("driver_ecspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1205
1206if(CONFIG_USE_driver_ecspi AND CONFIG_USE_middleware_freertos-kernel)
1207
1208target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1209  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/fsl_ecspi_freertos.c
1210)
1211
1212target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1213  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/.
1214)
1215
1216else()
1217
1218message(SEND_ERROR "driver_ecspi_freertos.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1219
1220endif()
1221
1222endif()
1223
1224
1225if (CONFIG_USE_driver_flexcan)
1226# Add set(CONFIG_USE_driver_flexcan true) in config.cmake to use this component
1227
1228message("driver_flexcan component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1229
1230if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1231
1232target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1233  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan.c
1234)
1235
1236target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1237  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/.
1238)
1239
1240else()
1241
1242message(SEND_ERROR "driver_flexcan.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1243
1244endif()
1245
1246endif()
1247
1248
1249if (CONFIG_USE_driver_gpc_2)
1250# Add set(CONFIG_USE_driver_gpc_2 true) in config.cmake to use this component
1251
1252message("driver_gpc_2 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1253
1254if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1255
1256target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1257  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_2/fsl_gpc.c
1258)
1259
1260target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1261  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_2/.
1262)
1263
1264else()
1265
1266message(SEND_ERROR "driver_gpc_2.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1267
1268endif()
1269
1270endif()
1271
1272
1273if (CONFIG_USE_driver_gpt)
1274# Add set(CONFIG_USE_driver_gpt true) in config.cmake to use this component
1275
1276message("driver_gpt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1277
1278if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1279
1280target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1281  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/fsl_gpt.c
1282)
1283
1284target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1285  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/.
1286)
1287
1288else()
1289
1290message(SEND_ERROR "driver_gpt.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1291
1292endif()
1293
1294endif()
1295
1296
1297if (CONFIG_USE_driver_igpio)
1298# Add set(CONFIG_USE_driver_igpio true) in config.cmake to use this component
1299
1300message("driver_igpio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1301
1302if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1303
1304target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1305  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/fsl_gpio.c
1306)
1307
1308target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1309  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/.
1310)
1311
1312else()
1313
1314message(SEND_ERROR "driver_igpio.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1315
1316endif()
1317
1318endif()
1319
1320
1321if (CONFIG_USE_driver_ii2c)
1322# Add set(CONFIG_USE_driver_ii2c true) in config.cmake to use this component
1323
1324message("driver_ii2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1325
1326if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
1327
1328target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1329  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/fsl_i2c.c
1330)
1331
1332target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1333  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/.
1334)
1335
1336else()
1337
1338message(SEND_ERROR "driver_ii2c.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1339
1340endif()
1341
1342endif()
1343
1344
1345if (CONFIG_USE_driver_ii2c_freertos)
1346# Add set(CONFIG_USE_driver_ii2c_freertos true) in config.cmake to use this component
1347
1348message("driver_ii2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1349
1350if(CONFIG_USE_driver_ii2c AND CONFIG_USE_middleware_freertos-kernel)
1351
1352target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1353  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/fsl_i2c_freertos.c
1354)
1355
1356target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1357  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/.
1358)
1359
1360else()
1361
1362message(SEND_ERROR "driver_ii2c_freertos.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1363
1364endif()
1365
1366endif()
1367
1368
1369if (CONFIG_USE_driver_ipwm)
1370# Add set(CONFIG_USE_driver_ipwm true) in config.cmake to use this component
1371
1372message("driver_ipwm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1373
1374if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
1375
1376target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1377  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ipwm/fsl_pwm.c
1378)
1379
1380target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1381  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ipwm/.
1382)
1383
1384else()
1385
1386message(SEND_ERROR "driver_ipwm.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1387
1388endif()
1389
1390endif()
1391
1392
1393if (CONFIG_USE_driver_iuart)
1394# Add set(CONFIG_USE_driver_iuart true) in config.cmake to use this component
1395
1396message("driver_iuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1397
1398if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
1399
1400target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1401  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/fsl_uart.c
1402)
1403
1404target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1405  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/.
1406)
1407
1408else()
1409
1410message(SEND_ERROR "driver_iuart.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1411
1412endif()
1413
1414endif()
1415
1416
1417if (CONFIG_USE_driver_iuart_freertos)
1418# Add set(CONFIG_USE_driver_iuart_freertos true) in config.cmake to use this component
1419
1420message("driver_iuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1421
1422if(CONFIG_USE_driver_iuart AND CONFIG_USE_middleware_freertos-kernel)
1423
1424target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1425  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/fsl_uart_freertos.c
1426)
1427
1428target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1429  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/.
1430)
1431
1432else()
1433
1434message(SEND_ERROR "driver_iuart_freertos.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1435
1436endif()
1437
1438endif()
1439
1440
1441if (CONFIG_USE_driver_mu)
1442# Add set(CONFIG_USE_driver_mu true) in config.cmake to use this component
1443
1444message("driver_mu component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1445
1446if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1447
1448target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1449  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/fsl_mu.c
1450)
1451
1452target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1453  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/.
1454)
1455
1456else()
1457
1458message(SEND_ERROR "driver_mu.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1459
1460endif()
1461
1462endif()
1463
1464
1465if (CONFIG_USE_driver_pdm)
1466# Add set(CONFIG_USE_driver_pdm true) in config.cmake to use this component
1467
1468message("driver_pdm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1469
1470if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1471
1472target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1473  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/fsl_pdm.c
1474)
1475
1476target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1477  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/.
1478)
1479
1480else()
1481
1482message(SEND_ERROR "driver_pdm.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1483
1484endif()
1485
1486endif()
1487
1488
1489if (CONFIG_USE_driver_pdm_sdma)
1490# Add set(CONFIG_USE_driver_pdm_sdma true) in config.cmake to use this component
1491
1492message("driver_pdm_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1493
1494if(CONFIG_USE_driver_pdm AND (CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ))
1495
1496target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1497  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/fsl_pdm_sdma.c
1498)
1499
1500target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1501  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/.
1502)
1503
1504else()
1505
1506message(SEND_ERROR "driver_pdm_sdma.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1507
1508endif()
1509
1510endif()
1511
1512
1513if (CONFIG_USE_driver_rdc)
1514# Add set(CONFIG_USE_driver_rdc true) in config.cmake to use this component
1515
1516message("driver_rdc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1517
1518if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1519
1520target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1521  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc/fsl_rdc.c
1522)
1523
1524target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1525  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc/.
1526)
1527
1528else()
1529
1530message(SEND_ERROR "driver_rdc.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1531
1532endif()
1533
1534endif()
1535
1536
1537if (CONFIG_USE_driver_rdc_sema42)
1538# Add set(CONFIG_USE_driver_rdc_sema42 true) in config.cmake to use this component
1539
1540message("driver_rdc_sema42 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1541
1542if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1543
1544target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1545  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc_sema42/fsl_rdc_sema42.c
1546)
1547
1548target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1549  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc_sema42/.
1550)
1551
1552else()
1553
1554message(SEND_ERROR "driver_rdc_sema42.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1555
1556endif()
1557
1558endif()
1559
1560
1561if (CONFIG_USE_driver_sai)
1562# Add set(CONFIG_USE_driver_sai true) in config.cmake to use this component
1563
1564message("driver_sai component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1565
1566if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1567
1568target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1569  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai.c
1570)
1571
1572target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1573  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/.
1574)
1575
1576else()
1577
1578message(SEND_ERROR "driver_sai.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1579
1580endif()
1581
1582endif()
1583
1584
1585if (CONFIG_USE_driver_sema4)
1586# Add set(CONFIG_USE_driver_sema4 true) in config.cmake to use this component
1587
1588message("driver_sema4 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1589
1590if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1591
1592target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1593  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema4/fsl_sema4.c
1594)
1595
1596target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1597  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema4/.
1598)
1599
1600else()
1601
1602message(SEND_ERROR "driver_sema4.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1603
1604endif()
1605
1606endif()
1607
1608
1609if (CONFIG_USE_driver_tmu_2)
1610# Add set(CONFIG_USE_driver_tmu_2 true) in config.cmake to use this component
1611
1612message("driver_tmu_2 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1613
1614if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1615
1616target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1617  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tmu_2/fsl_tmu.c
1618)
1619
1620target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1621  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tmu_2/.
1622)
1623
1624else()
1625
1626message(SEND_ERROR "driver_tmu_2.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1627
1628endif()
1629
1630endif()
1631
1632
1633if (CONFIG_USE_driver_wdog01)
1634# Add set(CONFIG_USE_driver_wdog01 true) in config.cmake to use this component
1635
1636message("driver_wdog01 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1637
1638if((CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxLZ OR CONFIG_DEVICE_ID STREQUAL MIMX8ML8xxxKZ) AND CONFIG_USE_driver_common)
1639
1640target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1641  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/fsl_wdog.c
1642)
1643
1644target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1645  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/.
1646)
1647
1648else()
1649
1650message(SEND_ERROR "driver_wdog01.MIMX8ML8 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1651
1652endif()
1653
1654endif()
1655
1656