From 10fafcef999e7032a62709d3b6002735e9eb0716 Mon Sep 17 00:00:00 2001 From: Michal Smola Date: Tue, 6 Aug 2024 10:51:38 +0200 Subject: [PATCH] mcux: MCXC242, 142, 141: Add cmake files Signed-off-by: Michal Smola --- mcux/mcux-sdk/devices/MCXC141/device_CMSIS.cmake | 13 +++++++++++++ mcux/mcux-sdk/devices/MCXC141/device_system.cmake | 14 ++++++++++++++ .../devices/MCXC141/drivers/driver_clock.cmake | 14 ++++++++++++++ .../devices/MCXC141/drivers/driver_reset.cmake | 12 ++++++++++++ mcux/mcux-sdk/devices/MCXC142/device_CMSIS.cmake | 13 +++++++++++++ mcux/mcux-sdk/devices/MCXC142/device_system.cmake | 14 ++++++++++++++ .../devices/MCXC142/drivers/driver_clock.cmake | 14 ++++++++++++++ .../devices/MCXC142/drivers/driver_reset.cmake | 12 ++++++++++++ mcux/mcux-sdk/devices/MCXC242/device_CMSIS.cmake | 13 +++++++++++++ mcux/mcux-sdk/devices/MCXC242/device_system.cmake | 14 ++++++++++++++ .../devices/MCXC242/drivers/driver_clock.cmake | 14 ++++++++++++++ .../devices/MCXC242/drivers/driver_reset.cmake | 12 ++++++++++++ 12 files changed, 159 insertions(+) create mode 100644 mcux/mcux-sdk/devices/MCXC141/device_CMSIS.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC141/device_system.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC141/drivers/driver_clock.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC141/drivers/driver_reset.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC142/device_CMSIS.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC142/device_system.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC142/drivers/driver_clock.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC142/drivers/driver_reset.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC242/device_CMSIS.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC242/device_system.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC242/drivers/driver_clock.cmake create mode 100644 mcux/mcux-sdk/devices/MCXC242/drivers/driver_reset.cmake diff --git a/mcux/mcux-sdk/devices/MCXC141/device_CMSIS.cmake b/mcux/mcux-sdk/devices/MCXC141/device_CMSIS.cmake new file mode 100644 index 000000000..719d2426b --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC141/device_CMSIS.cmake @@ -0,0 +1,13 @@ +#Description: device_CMSIS; user_visible: False +include_guard(GLOBAL) +message("device_CMSIS component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(CMSIS_Include_core_cm OPTIONAL) diff --git a/mcux/mcux-sdk/devices/MCXC141/device_system.cmake b/mcux/mcux-sdk/devices/MCXC141/device_system.cmake new file mode 100644 index 000000000..cd9034e29 --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC141/device_system.cmake @@ -0,0 +1,14 @@ +#Description: device_system; user_visible: False +include_guard(GLOBAL) +message("device_system component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/system_MCXC141.c +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(device_CMSIS) diff --git a/mcux/mcux-sdk/devices/MCXC141/drivers/driver_clock.cmake b/mcux/mcux-sdk/devices/MCXC141/drivers/driver_clock.cmake new file mode 100644 index 000000000..348471f89 --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC141/drivers/driver_clock.cmake @@ -0,0 +1,14 @@ +#Description: Clock Driver; user_visible: True +include_guard(GLOBAL) +message("driver_clock component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(driver_common) diff --git a/mcux/mcux-sdk/devices/MCXC141/drivers/driver_reset.cmake b/mcux/mcux-sdk/devices/MCXC141/drivers/driver_reset.cmake new file mode 100644 index 000000000..49eb2cb9f --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC141/drivers/driver_reset.cmake @@ -0,0 +1,12 @@ +#Description: Reset Driver; user_visible: False +include_guard(GLOBAL) +message("driver_reset component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + diff --git a/mcux/mcux-sdk/devices/MCXC142/device_CMSIS.cmake b/mcux/mcux-sdk/devices/MCXC142/device_CMSIS.cmake new file mode 100644 index 000000000..719d2426b --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC142/device_CMSIS.cmake @@ -0,0 +1,13 @@ +#Description: device_CMSIS; user_visible: False +include_guard(GLOBAL) +message("device_CMSIS component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(CMSIS_Include_core_cm OPTIONAL) diff --git a/mcux/mcux-sdk/devices/MCXC142/device_system.cmake b/mcux/mcux-sdk/devices/MCXC142/device_system.cmake new file mode 100644 index 000000000..b28a3066a --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC142/device_system.cmake @@ -0,0 +1,14 @@ +#Description: device_system; user_visible: False +include_guard(GLOBAL) +message("device_system component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/system_MCXC142.c +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(device_CMSIS) diff --git a/mcux/mcux-sdk/devices/MCXC142/drivers/driver_clock.cmake b/mcux/mcux-sdk/devices/MCXC142/drivers/driver_clock.cmake new file mode 100644 index 000000000..348471f89 --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC142/drivers/driver_clock.cmake @@ -0,0 +1,14 @@ +#Description: Clock Driver; user_visible: True +include_guard(GLOBAL) +message("driver_clock component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(driver_common) diff --git a/mcux/mcux-sdk/devices/MCXC142/drivers/driver_reset.cmake b/mcux/mcux-sdk/devices/MCXC142/drivers/driver_reset.cmake new file mode 100644 index 000000000..49eb2cb9f --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC142/drivers/driver_reset.cmake @@ -0,0 +1,12 @@ +#Description: Reset Driver; user_visible: False +include_guard(GLOBAL) +message("driver_reset component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + diff --git a/mcux/mcux-sdk/devices/MCXC242/device_CMSIS.cmake b/mcux/mcux-sdk/devices/MCXC242/device_CMSIS.cmake new file mode 100644 index 000000000..719d2426b --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC242/device_CMSIS.cmake @@ -0,0 +1,13 @@ +#Description: device_CMSIS; user_visible: False +include_guard(GLOBAL) +message("device_CMSIS component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(CMSIS_Include_core_cm OPTIONAL) diff --git a/mcux/mcux-sdk/devices/MCXC242/device_system.cmake b/mcux/mcux-sdk/devices/MCXC242/device_system.cmake new file mode 100644 index 000000000..6ab1eff1d --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC242/device_system.cmake @@ -0,0 +1,14 @@ +#Description: device_system; user_visible: False +include_guard(GLOBAL) +message("device_system component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/system_MCXC242.c +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(device_CMSIS) diff --git a/mcux/mcux-sdk/devices/MCXC242/drivers/driver_clock.cmake b/mcux/mcux-sdk/devices/MCXC242/drivers/driver_clock.cmake new file mode 100644 index 000000000..348471f89 --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC242/drivers/driver_clock.cmake @@ -0,0 +1,14 @@ +#Description: Clock Driver; user_visible: True +include_guard(GLOBAL) +message("driver_clock component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + + +include(driver_common) diff --git a/mcux/mcux-sdk/devices/MCXC242/drivers/driver_reset.cmake b/mcux/mcux-sdk/devices/MCXC242/drivers/driver_reset.cmake new file mode 100644 index 000000000..49eb2cb9f --- /dev/null +++ b/mcux/mcux-sdk/devices/MCXC242/drivers/driver_reset.cmake @@ -0,0 +1,12 @@ +#Description: Reset Driver; user_visible: False +include_guard(GLOBAL) +message("driver_reset component is included.") + +target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE +) + +target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/. +) + +