autodeploy.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. )
  47. for x in ${lib_name[@]}
  48. do
  49. echo "link lib $x"
  50. patchelf --set-rpath '$ORIGIN' ./bin/$x
  51. done
  52. echo "creat IVSysMan.xml"
  53. cp ./other/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  54. cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  55. sed -i "s|xxxxxx|$PRO_DIR/deploy/app|g" ./deploy/app/IVSysMan.xml
  56. cp ./bin/*.so ./deploy/app/lib/
  57. echo ""
  58. echo "***************"
  59. echo "*** done! ***"
  60. echo "***************"