summaryrefslogtreecommitdiffstats
path: root/conf.d/cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-26 16:19:38 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-11-28 16:11:47 +0100
commit22b1864b72c2520fbc9d4e3d3332c28916b5a9ed (patch)
tree0d325c2a86751fe88ed046b448b783beec3cabbd /conf.d/cmake
parentfee3b49099fb39731e15f9e26ad5a873bc109f59 (diff)
Add feature ISO TP (multi frames and peer to peer)
This commit adds the ISO TP feature. The ISO TP protocol allows to communicate between two ECU. The protocol allows multi packets management. Bug-AGL : SPEC-2779 Bug-AGL: SPEC-2976 Change-Id: Ic222615b547f28e926930e6c1dea2c0265055afd Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/cmake')
-rw-r--r--conf.d/cmake/config.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index f6573671..30d2b467 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -58,6 +58,23 @@ else()
add_definitions(-DJ1939_NAME_ECU=${J1939_NAME_ECU})
endif()
+# Activate ISO TP
+# Need module in kernel
+# --------------
+
+execute_process(COMMAND ls /usr/include/linux/can/isotp.h RESULT_VARIABLE result2 OUTPUT_QUIET ERROR_QUIET)
+
+if(result2)
+ message("Feature ISO TP disabled")
+ set(WITH_FEATURE_ISOTP OFF)
+else()
+ message("Feature ISOTP enabled")
+ set(WITH_FEATURE_ISOTP ON)
+ add_definitions(-DUSE_FEATURE_ISOTP)
+endif()
+
+
+
# Kernel selection if needed. You can choose between a
# mandatory version to impose a minimal version.
# Or check Kernel minimal version and just print a Warning