autodeploy.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_Ge3.xml"
  3. cd ../../
  4. app_name=(
  5. #driver_lidar_rs16
  6. #driver_gps_hcp2
  7. driver_gps_ins550d
  8. driver_can_nvidia_agx
  9. #driver_can_kvaser
  10. driver_map_trace
  11. detection_radar_delphi_esr
  12. detection_lidar_distributed_server
  13. #detection_lidar_grid
  14. #view_pointcloud
  15. view_gps
  16. view_rawcan
  17. view_radar
  18. IVSysMan
  19. ivmapmake
  20. view_ivlog
  21. tool_querymsg
  22. detection_chassis
  23. ui_ads_hmi
  24. decition_brain
  25. #decition_brain_ge3
  26. controller_ge3
  27. driver_map_xodrload
  28. tool_xodrobj
  29. ivlog_record
  30. adciv_record
  31. )
  32. for x in ${app_name[@]}
  33. do
  34. echo "deploy $x"
  35. cp ./bin/${x} ./
  36. ./deploy.sh $x
  37. rm ${x}
  38. done
  39. lib_name=(
  40. libmodulecomm.so
  41. libndt_cpu.so
  42. libxmlparam.so
  43. libivfault.so
  44. libivlog.so
  45. libplatformif.so
  46. libivbacktrace.so
  47. libivexit.so
  48. )
  49. for x in ${lib_name[@]}
  50. do
  51. echo "link lib $x"
  52. patchelf --set-rpath '$ORIGIN' ./bin/$x
  53. done
  54. echo "creat IVSysMan.xml"
  55. cp ./other/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  56. cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  57. sed -i "s|xxxxxx|$PRO_DIR/deploy/app|g" ./deploy/app/IVSysMan.xml
  58. cp ./bin/*.so ./deploy/app/lib/
  59. echo ""
  60. echo "***************"
  61. echo "*** done! ***"
  62. echo "***************"