autodeploy.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_problue.xml"
  3. check_result=`whereis patchelf | awk '{print $2}'`
  4. if [ ! $check_result ];then
  5. echo -e "\e[31m no found patchelf, Plz install patchelf first\e[0m"
  6. exit 1
  7. fi
  8. app_name=(
  9. #driver_lidar_rs16
  10. #driver_lidar_vlp16
  11. driver_gps_hcp2
  12. driver_gps_ins550d
  13. driver_can_nvidia_agx
  14. #driver_can_kvaser
  15. driver_can_vci
  16. driver_map_trace
  17. detection_radar_delphi_esr_front
  18. detection_radar_delphi_esr_rear
  19. detection_lidar_distributed_server
  20. #detection_lidar_grid
  21. #view_pointcloud
  22. view_gps
  23. view_rawcan
  24. view_radar
  25. IVSysMan
  26. ivmapmake
  27. view_ivlog
  28. tool_querymsg
  29. detection_chassis
  30. ui_ads_hmi
  31. decition_brain
  32. #decition_brain_ge3
  33. fusion_radar_merge
  34. controller_problue
  35. driver_map_xodrload
  36. tool_xodrobj
  37. ivlog_record
  38. adciv_record
  39. )
  40. for x in ${app_name[@]}
  41. do
  42. echo "deploy $x"
  43. cp ./bin/${x} ./
  44. ./deploy.sh $x
  45. if [ "$?" == 1 ];then
  46. exit 1
  47. fi
  48. rm ${x}
  49. done
  50. lib_name=(
  51. libmodulecomm.so
  52. libndt_cpu.so
  53. libxmlparam.so
  54. libivfault.so
  55. libivlog.so
  56. libivexit.so
  57. libplatformif.so
  58. )
  59. for x in ${lib_name[@]}
  60. do
  61. echo "link lib $x"
  62. patchelf --set-rpath '$ORIGIN' ./bin/$x
  63. if [ "$?" != 0 ];then
  64. echo -e "\e[31m autodeploy.sh: patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
  65. exit 1
  66. fi
  67. done
  68. echo "creat IVSysMan.xml"
  69. #cp ./other/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  70. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  71. #sed -i "s|xxxxxx|$PRO_DIR/deploy/app|g" ./deploy/app/IVSysMan.xml
  72. cp ./bin/*.so ./deploy/app/lib/
  73. echo ""
  74. echo "***************"
  75. echo "*** done! ***"
  76. echo "***************"