autodeploy.sh 1.8 KB

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