Skip to content
Open
5 changes: 4 additions & 1 deletion lmdk/cmake/build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ include(${CMAKE_CURRENT_LIST_DIR}/config.cmake)

# Build common module functions from sof to a static library
add_library(sof STATIC)
target_include_directories(sof PRIVATE "${SOF_BASE}/src/include")
target_include_directories(sof PRIVATE
"${SOF_BASE}/src/include"
"${LMDK_BASE}/include"
)
add_subdirectory("${SOF_BASE}/src/module" module_api)

foreach(MODULE ${MODULES_LIST})
Expand Down
23 changes: 23 additions & 0 deletions lmdk/include/rtos/panic.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2026 Intel Corporation. All rights reserved.
*
* Author: Piotr Hoppe <piotr.hoppe@intel.com>
*/

#ifndef __LMDK_RTOS_PANIC_H__
#define __LMDK_RTOS_PANIC_H__

#ifdef __cplusplus
extern "C" {
#endif

/* runtime assertion */
#define assert(x) do {if (!(x)) while (1);} while (0)

#ifdef __cplusplus
}
#endif

#endif /* __LMDK_RTOS_PANIC_H__ */

Loading
Loading