autodeploy.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. cd ../../
  9. app_name=(
  10. controller_changan_shenlan_v2
  11. decition_brain_sf_changan_shenlan
  12. laneline_decition_brain_sf_changan_shenlan
  13. fusion_gpsndt
  14. fusion_pointcloud_shenlan
  15. driver_camera_ioctl
  16. driver_camera_usb
  17. driver_can_nvidia_agx
  18. driver_gps_hcp2
  19. driver_lidar_leishen32
  20. driver_lidar_leishen_c16
  21. driver_lidar_leishen_c16
  22. driver_service_maintain
  23. driver_grpc_server
  24. driver_map_xodrload
  25. driver_ota_client
  26. detection_chassis
  27. detection_lidar_grid
  28. detection_lidar_ukf_pda
  29. detection_radar_conti_sr308
  30. detection_radar_delphi_esr
  31. adciv_record
  32. adcndtmultimapping
  33. bqev_multilidarcalib
  34. bqev_pcdview
  35. ivmapmake
  36. view_ivlog
  37. map_collectfromveh
  38. map_lanetoxodr
  39. picview
  40. pointcloudviewer
  41. simple_planning_simulator
  42. tool_chassis_check
  43. tool_configivsysman
  44. tool_config_lidar_leishen
  45. tool_xodrobj
  46. view_gps
  47. view_pcdmap
  48. view_radar
  49. ui_ads_hmi
  50. ivlog_record
  51. IVSysMan
  52. laneATT_trt
  53. )
  54. for x in ${app_name[@]}
  55. do
  56. echo "deploy $x"
  57. cp ./bin/${x} ./
  58. ./deploy.sh $x
  59. if [ "$?" == 1 ];then
  60. exit 1
  61. fi
  62. rm ${x}
  63. done
  64. lib_name=(
  65. libmodulecomm.so
  66. libndt_cpu.so
  67. libxmlparam.so
  68. libivfault.so
  69. libivlog.so
  70. libivexit.so
  71. libplatformif.so
  72. )
  73. for x in ${lib_name[@]}
  74. do
  75. echo "link lib $x"
  76. patchelf --set-rpath '$ORIGIN' ./bin/$x
  77. if [ "$?" != 0 ];then
  78. echo -e "\e[31m autodeploy.sh: patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
  79. exit 1
  80. fi
  81. done
  82. #echo "creat IVSysMan.xml"
  83. #cp ./other/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  84. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  85. #sed -i "s|xxxxxx|$PRO_DIR/deploy/app|g" ./deploy/app/IVSysMan.xml
  86. cp ./bin/*.so ./deploy/app/lib/
  87. echo ""
  88. echo "***************"
  89. echo "*** done! ***"
  90. echo "***************"