Binding for PCIe transport, starting point
Beginning of PCIe VDM binding implementation for aspeed AST2600.
Only stubs for initialization routines, api and callbacks.
This implementation depends on AST600 mctp driver (work in progress).
We don't plan to extend this implementation to other HW platforms.
Tests initialization routine with assert checks of crucial parameters.
Change-Id: I885ce82d68345bdcf06f99005c40ea2f7bdcbd4b
Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0cace7..bca9136 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@
add_definitions (-DMCTP_HAVE_STDIO)
add_definitions (-DMCTP_DEFAULT_ALLOC)
-add_library (mctp STATIC alloc.c astlpc.c core.c log.c libmctp.h serial.c)
+add_library (mctp STATIC alloc.c astlpc.c core.c log.c libmctp.h serial.c astpcie.c)
target_include_directories (mctp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
@@ -33,6 +33,10 @@
target_link_libraries (test_serial mctp)
add_test (NAME serial COMMAND test_serial)
+add_executable (test_astpcie tests/test_astpcie.c)
+target_link_libraries (test_astpcie mctp)
+add_test (NAME astpcie COMMAND test_astpcie)
+
install (TARGETS mctp DESTINATION lib)
install (FILES libmctp.h DESTINATION include)