X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf.d%2Fcmake%2Fconfig.cmake;h=30d2b46734bec47cf7707049e727c197c6ce872f;hb=4780c23547407f6bafb7e14fb70aaeeca0a1257d;hp=e6da31a0f35a52de8bdc93d75badfd3340655c0f;hpb=82b45e3de8c92816c8080178224c5bd4be60a091;p=apps%2Fagl-service-can-low-level.git diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index e6da31a0..30d2b467 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -53,8 +53,28 @@ else() message("Feature J1939 enabled") set(WITH_FEATURE_J1939 ON) add_definitions(-DUSE_FEATURE_J1939) + # Define name for ECU + set(J1939_NAME_ECU 0x1239) + 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