2019-04-24 16:52:51 +03:00
|
|
|
#
|
|
|
|
# Copyright (c) 2019, NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
zephyr_library()
|
|
|
|
|
|
|
|
zephyr_library_sources(soc.c)
|
2019-10-25 00:08:21 +09:00
|
|
|
|
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
2020-12-16 18:48:33 +02:00
|
|
|
|
2021-07-22 14:41:21 -05:00
|
|
|
zephyr_linker_sources_ifdef(CONFIG_USB_DEVICE_DRIVER
|
|
|
|
SECTIONS usb.ld)
|
|
|
|
|
2020-12-16 18:48:33 +02:00
|
|
|
if (CONFIG_SECOND_CORE_MCUX)
|
|
|
|
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
|
|
|
|
string(CONFIGURE ${CONFIG_SECOND_IMAGE_MCUX} second_core_image)
|
|
|
|
|
|
|
|
add_custom_target(second_core_inc_target DEPENDS ${gen_dir}/second-core.inc)
|
|
|
|
|
|
|
|
generate_inc_file_for_gen_target(${ZEPHYR_CURRENT_LIBRARY}
|
|
|
|
${second_core_image}
|
|
|
|
${gen_dir}/second-core.inc
|
|
|
|
second_core_inc_target)
|
|
|
|
endif()
|