config: Change default configuration file names
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 28 Nov 2019 15:42:42 +0000 (16:42 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 3 Dec 2019 18:46:26 +0000 (19:46 +0100)
Default file name doesn't fit when using on a target board because
the binder and app-framework choose another processus name than the
one chosen manually so binding doesn't find the JSON configuration file.

Change-Id: I287b0c2ffe571a49626663aa8abe69d928e2bbf6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
conf.d/cmake/config.cmake
conf.d/project/etc/control-agl-service-can-low-level.json [moved from conf.d/project/etc/control-low-can.json with 100% similarity]
conf.d/project/etc/control-low-can-j1939.json [new file with mode: 0644]

index 7031c7e..25ed463 100644 (file)
@@ -61,10 +61,10 @@ 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)
+invalid
+invalid_VARIABLE result2 OUTPUT_QUIET ERROR_QUIET)
+invalid
+invalid
     message("Feature ISO TP disabled")
     set(WITH_FEATURE_ISOTP OFF)
 else()
@@ -214,7 +214,7 @@ set(AFB_REMPORT "1234" CACHE STRING "Default binder listening port")
 
 # Print a helper message when every thing is finished
 # ----------------------------------------------------
-set(CLOSING_MESSAGE "Typical binding launch: afb-daemon --port=${AFB_REMPORT} --workdir=${CMAKE_BINARY_DIR}/package --ldpaths=lib --roothttp=htdocs  --token=\"${AFB_TOKEN}\" --tracereq=common --verbose")
+set(CLOSING_MESSAGE "Typical binding launch: afb-daemon --name=afbd-${PROJECT_NAME} --port=${AFB_REMPORT} --workdir=${CMAKE_BINARY_DIR}/package --ldpaths=lib --roothttp=htdocs  --token=\"${AFB_TOKEN}\" --tracereq=common --verbose")
 set(PACKAGE_MESSAGE "Install widget file using in the target : afm-util install ${PROJECT_NAME}.wgt")
 
 
diff --git a/conf.d/project/etc/control-low-can-j1939.json b/conf.d/project/etc/control-low-can-j1939.json
new file mode 100644 (file)
index 0000000..0b10d33
--- /dev/null
@@ -0,0 +1,24 @@
+{
+       "$schema": "",
+       "metadata": {
+               "uid": "Low Can",
+               "version": "1.0",
+               "api": "low-can",
+               "info": "Low can Configuration"
+       },
+       "config": {
+               "active_message_set": 0,
+               "dev-mapping": {
+                       "hs": "can0",
+                       "ls": "can0"
+               },
+               "diagnostic_bus": "hs"
+       },
+       "plugins": [
+               {
+                       "uid": "agl-vcar-signals",
+                       "info": "agl-vcar signals",
+                       "libs": "agl-vcar-signals.ctlso"
+               }
+       ]
+}