autodeploy.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_Ge3.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. decition_brain
  30. #decition_brain_ge3
  31. controller_ge3
  32. driver_map_xodrload
  33. tool_xodrobj
  34. ivlog_record
  35. adciv_record
  36. )
  37. for x in ${app_name[@]}
  38. do
  39. echo "deploy $x"
  40. cp ./bin/${x} ./
  41. ./deploy.sh $x
  42. if [ "$?" == 1 ];then
  43. echo "build $x faile"
  44. exit 1
  45. fi
  46. rm ${x}
  47. done
  48. lib_name=(
  49. libmodulecomm.so
  50. libndt_cpu.so
  51. libxmlparam.so
  52. libivfault.so
  53. libivlog.so
  54. libplatformif.so
  55. libivexit.so
  56. libivbacktrace.so
  57. )
  58. for x in ${lib_name[@]}
  59. do
  60. echo "link lib $x"
  61. patchelf --set-rpath '$ORIGIN' ./bin/$x
  62. if [ "$?" != 0 ];then
  63. echo -e "\e[31m patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
  64. exit 1
  65. fi
  66. done
  67. echo "creat IVSysMan.xml"
  68. cp ./other/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  69. cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  70. sed -i "s|xxxxxx|$PRO_DIR/deploy/app|g" ./deploy/app/IVSysMan.xml
  71. cp ./bin/*.so ./deploy/app/lib/
  72. echo ""
  73. echo "***************"
  74. echo "*** done! ***"
  75. echo "***************"