2017-07-26 17:40:18 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017, NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2018-05-16 07:52:23 +08:00
|
|
|
zephyr_library()
|
2017-07-26 17:40:18 +08:00
|
|
|
|
2018-05-16 07:52:23 +08:00
|
|
|
zephyr_library_sources(soc.c)
|
|
|
|
|
2019-09-13 01:23:03 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ARM_MPU arm_mpu_regions.c)
|
|
|
|
|
2019-10-24 23:08:21 +08:00
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
|
|
|
|
2018-05-16 07:52:23 +08:00
|
|
|
if (CONFIG_SLAVE_CORE_MCUX)
|
|
|
|
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
|
|
|
|
string(CONFIGURE ${CONFIG_SLAVE_IMAGE_MCUX} core_m0_image)
|
|
|
|
|
|
|
|
add_custom_target(core_m0_inc_target DEPENDS ${gen_dir}/core-m0.inc)
|
|
|
|
|
|
|
|
generate_inc_file_for_gen_target(${ZEPHYR_CURRENT_LIBRARY}
|
|
|
|
${core_m0_image}
|
|
|
|
${gen_dir}/core-m0.inc
|
|
|
|
core_m0_inc_target)
|
|
|
|
endif()
|