Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hal: tdk: cmakelist issue #1

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# Copyright (c) 2024 TDK Invensense
# SPDX-License-Identifier: Apache-2.0

zephyr_include_directories(
common
icm42x7x
)
if(CONFIG_ZEPHYR_HAL_TDK_MODULE)

if(CONFIG_USE_EMD_ICM42670P)
zephyr_include_directories(icm42x7x/icm42670p_h)
endif()
zephyr_library()

if(CONFIG_USE_EMD_ICM42670S OR CONFIG_USE_EMD_ICM42670P)

if(CONFIG_USE_EMD_ICM42670S)
zephyr_include_directories(icm42x7x/icm42670s_h)
endif()
zephyr_include_directories(
common
icm42x7x
)
zephyr_include_directories_ifdef(CONFIG_USE_EMD_ICM42670P icm42x7x/icm42670p_h)
zephyr_include_directories_ifdef(CONFIG_USE_EMD_ICM42670S icm42x7x/icm42670s_h)

zephyr_library()
zephyr_library_sources(
icm42x7x/imu/inv_imu_driver.c
icm42x7x/imu/inv_imu_transport.c
)
zephyr_library_sources_ifdef(CONFIG_TDK_APEX icm42x7x/imu/inv_imu_apex.c)

zephyr_library_sources(
icm42x7x/imu/inv_imu_driver.c
icm42x7x/imu/inv_imu_transport.c
)
endif()

zephyr_library_sources_ifdef(CONFIG_TDK_APEX icm42x7x/imu/inv_imu_apex.c)
endif()