Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) 2024 Intel Corporation.
#
# SPDX-License-Identifier: BSD-3-Clause

if(CONFIG_MCTP)
set(MCTP_SRC ${CMAKE_CURRENT_SOURCE_DIR}/..)

zephyr_interface_library_named(mctp)
target_link_libraries(zephyr_interface INTERFACE mctp)
target_include_directories(mctp INTERFACE ${MCTP_SRC})

zephyr_library_named(modules_mctp)
zephyr_library_link_libraries(mctp)

zephyr_library_sources_ifdef(
CONFIG_MCTP
${MCTP_SRC}/alloc.c
${MCTP_SRC}/crc32.c
${MCTP_SRC}/core.c
${MCTP_SRC}/log.c
${MCTP_SRC}/libmctp.h
${MCTP_SRC}/crc-16-ccitt.c
)
endif()
3 changes: 3 additions & 0 deletions zephyr/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: libmctp
build:
cmake: zephyr