X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf.d%2Fcmake%2Fconfig.cmake;h=0f678433a25eacd5b8e1c19437734976ea862268;hb=368c69724971ec73ac47bd1072204cddcc888355;hp=f6573671c70c3a6f67ffb059065bdf1031519572;hpb=22e1fe8db6686ee6ae32cfe58a10aad9f7dfb3a7;p=apps%2Fagl-service-can-low-level.git diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index f6573671..0f678433 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 @@ -108,7 +125,6 @@ set(COMPILE_OPTIONS -Wno-sign-compare -Wno-sign-conversion -Werror=maybe-uninitialized - -Werror=implicit-function-declaration -ffunction-sections -fdata-sections -fPIC