Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.1 KiB

# Copyright 2025 NXP
#
# SPDX-License-Identifier: Apache-2.0
set(MCUX_SDK_NG_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk-ng)
# SdkRootDirPath is used by MCUX SDK NG CMake files.
set(SdkRootDirPath ${MCUX_SDK_NG_DIR})
if(CONFIG_CPU_CORTEX_A)
set(ACoreCmsisDirPath ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk/CMSIS)
endif()
# Functions for MCUX SDK cmake files
include(${MCUX_SDK_NG_DIR}/cmake/extension/logging.cmake)
include(${MCUX_SDK_NG_DIR}/cmake/extension/function.cmake)
include(${MCUX_SDK_NG_DIR}/cmake/extension/basic_settings_lite.cmake)
function(set_variable_ifdef feature_toggle variable)
if(${${feature_toggle}})
set(${variable} ON PARENT_SCOPE)
endif()
endfunction()
# mcux sdk ng cmake functions `mcux_add_xxx` support add content based on
# toolchains, like
#
# mcux_add_library(
# LIBS ../iar/iar_lib_fro_calib_cm33_core0.a
# TOOLCHAINS iar
# )
#
# CMake should set current toolchain in CMake Variable
# `CONFIG_TOOLCHAIN` to use this feature.
if (${COMPILER} STREQUAL iar)
set(CONFIG_TOOLCHAIN iar)
elseif (${COMPILER} STREQUAL xcc)
set(CONFIG_TOOLCHAIN xtensa)
else ()
set(CONFIG_TOOLCHAIN armgcc)
endif()