p900_deplay.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_vv7-6511.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_radio_p900
  13. #driver_can_nvidia_agx
  14. #driver_can_kvaser
  15. #driver_can_vci
  16. #driver_map_trace
  17. #detection_radar_delphi_esr
  18. #detection_lidar_grid
  19. #view_pointcloud
  20. #view_gps
  21. #view_rawcan
  22. #view_radar
  23. #IVSysMan
  24. #ivmapmake
  25. #view_ivlog
  26. #tool_querymsg
  27. #detection_chassis
  28. #ui_ads_hmi
  29. #tool_mapcreat
  30. #decition_brain
  31. #decition_brain_ge3
  32. #controller_ge3
  33. #controller_vv7
  34. #driver_map_xodrload
  35. #tool_xodrobj
  36. #ivlog_record
  37. #adciv_record
  38. )
  39. for x in ${app_name[@]}
  40. do
  41. echo "deploy $x"
  42. cp ./bin/${x} ./
  43. ./deploy.sh $x
  44. if [ "$?" == 1 ];then
  45. exit 1
  46. fi
  47. rm ${x}
  48. done
  49. :<<!
  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. !
  74. echo ""
  75. echo "***************"
  76. echo "*** done! ***"
  77. echo "***************"