1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_utility_xmcd_evkmimxrt1180)
5# Add set(CONFIG_USE_utility_xmcd_evkmimxrt1180 true) in config.cmake to use this component
6
7message("utility_xmcd_evkmimxrt1180 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9
10endif()
11
12
13if (CONFIG_USE_utility_jlinkscript_evkmimxrt1180)
14# Add set(CONFIG_USE_utility_jlinkscript_evkmimxrt1180 true) in config.cmake to use this component
15
16message("utility_jlinkscript_evkmimxrt1180 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
17
18
19endif()
20
21
22if (CONFIG_USE_BOARD_Project_Template_evkmimxrt1180)
23# Add set(CONFIG_USE_BOARD_Project_Template_evkmimxrt1180 true) in config.cmake to use this component
24
25message("BOARD_Project_Template_evkmimxrt1180 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
26
27if((CONFIG_DEVICE_ID STREQUAL MIMXRT1189xxxxx) AND CONFIG_USE_device_MIMXRT1189_startup AND CONFIG_USE_device_MIMXRT1189_mcux_scripts AND CONFIG_USE_driver_common AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_rgpio AND CONFIG_USE_driver_iomuxc AND CONFIG_USE_driver_misc AND CONFIG_USE_driver_lpuart AND CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_driver_dcdc_soc AND CONFIG_USE_driver_pmu_1 AND CONFIG_USE_driver_xip_board_evkmimxrt1180 AND CONFIG_USE_driver_xip_device AND (CONFIG_USE_driver_cache_armv7_m7 OR CONFIG_USE_driver_cache_xcache) AND ((CONFIG_USE_utility_debug_console AND CONFIG_USE_utility_assert AND CONFIG_USE_component_serial_manager) OR (CONFIG_USE_utility_debug_console_lite AND CONFIG_USE_utility_assert_lite)) AND (CONFIG_BOARD STREQUAL evkmimxrt1180))
28
29target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
30  ${CMAKE_CURRENT_LIST_DIR}/project_template/board.c
31  ${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c
32  ${CMAKE_CURRENT_LIST_DIR}/project_template/project_template/peripherals.c
33)
34
35if(CONFIG_CORE STREQUAL cm7f)
36  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
37      ${CMAKE_CURRENT_LIST_DIR}/project_template/cm7/pin_mux.c
38  )
39endif()
40
41if(CONFIG_CORE STREQUAL cm33)
42  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
43      ${CMAKE_CURRENT_LIST_DIR}/project_template/cm33/pin_mux.c
44  )
45endif()
46
47target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
48  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
49)
50
51if(CONFIG_CORE STREQUAL cm7f)
52target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
53  ${CMAKE_CURRENT_LIST_DIR}/project_template/cm7
54)
55endif()
56
57if(CONFIG_CORE STREQUAL cm33)
58target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
59  ${CMAKE_CURRENT_LIST_DIR}/project_template/cm33
60)
61endif()
62
63else()
64
65message(SEND_ERROR "BOARD_Project_Template_evkmimxrt1180 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
66
67endif()
68
69endif()
70
71
72if (CONFIG_USE_driver_xip_board_evkmimxrt1180)
73# Add set(CONFIG_USE_driver_xip_board_evkmimxrt1180 true) in config.cmake to use this component
74
75message("driver_xip_board_evkmimxrt1180 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
76
77if(CONFIG_USE_driver_common)
78
79target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
80  ${CMAKE_CURRENT_LIST_DIR}/xip/evkmimxrt1180_flexspi_nor_config.c
81)
82
83target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
84  ${CMAKE_CURRENT_LIST_DIR}/xip/.
85)
86
87else()
88
89message(SEND_ERROR "driver_xip_board_evkmimxrt1180 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
90
91endif()
92
93endif()
94
95