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.
16 lines
740 B
16 lines
740 B
# Copyright 2025 NXP |
|
# |
|
# SPDX-License-Identifier: Apache-2.0 |
|
|
|
# SDK driver headers are also used out of hal_nxp module, for example |
|
# <zephyr>/soc/nxp/imxrt/imxrt118x/soc.c includes fsl_clock.h, fsl_pmu.h. |
|
# So expose the driver header include path, make the shim driver can use them. |
|
get_target_property(MCUXSDK_INCLUDE_DIRS ${MCUX_SDK_PROJECT_NAME} INTERFACE_INCLUDE_DIRECTORIES) |
|
if(NOT MCUXSDK_INCLUDE_DIRS STREQUAL MCUXSDK_INCLUDE_DIRS-NOTFOUND) |
|
zephyr_include_directories(${MCUXSDK_INCLUDE_DIRS}) |
|
endif() |
|
|
|
get_target_property(MCUXSDK_COMPILE_DEFS ${MCUX_SDK_PROJECT_NAME} INTERFACE_COMPILE_DEFINITIONS) |
|
if(NOT MCUXSDK_COMPILE_DEFS STREQUAL MCUXSDK_COMPILE_DEFS-NOTFOUND) |
|
zephyr_compile_definitions(${MCUXSDK_COMPILE_DEFS}) |
|
endif()
|
|
|