yocto_copy_image.sh 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #!/bin/sh -x
  2. #
  3. # below repo images have proprietary, need Yocto to copy out:
  4. # npu_ax3386
  5. # fce_thead
  6. # thead_ddr_pmu
  7. #
  8. # vpu_vc8000d, vpu_vc8000e
  9. # vpu_openmax_il
  10. #
  11. # isp_isp8000l
  12. #
  13. # gpu_bxm_4_64
  14. #
  15. # libgal-viv
  16. # libcsi-g2d
  17. #
  18. MACHINE=light-fm-bsp-v1.1.0
  19. export YOCTO_DIR=`pwd`
  20. if [ ! -d "yocto_rootfs_proprietary" ]
  21. then
  22. mkdir yocto_rootfs_proprietary
  23. fi
  24. export LIGHT_SDK_PROPRIETARY_YOCTO_DIR=$YOCTO_DIR/yocto_rootfs_proprietary
  25. export LOCAL_ROOTFS_DIR=$YOCTO_DIR/thead-build/light-fm/tmp-glibc/work/$MACHINE-oe-linux/light-fm-image/1.0-r0/rootfs
  26. export BUILD_DIR=$YOCTO_DIR/thead-build/light-fm/tmp-glibc/work/riscv64-oe-linux
  27. # start to copy images:
  28. # npu_ax3386
  29. NPU_SRC=$BUILD_DIR/npu-ax3386/1.0-r0/git
  30. cp -r $NPU_SRC/output/rootfs/bsp/npu $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/
  31. # fce_thead
  32. FCE_SRC=$BUILD_DIR/thead-fce/1.0-r0/git
  33. cp -r $FCE_SRC/output/rootfs/bsp/fce $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/
  34. # thead_ddr_pmu
  35. DDR_PMU=$BUILD_DIR/thead-ddr-pmu/1.0-r0/git
  36. cp -r $DDR_PMU/output/rootfs/bsp/ddr-pmu $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/
  37. # vpu_openmax_il
  38. VPU_OPENMAX_IL=$BUILD_DIR/vpu-omxil/1.0-r0/sysroot-destdir
  39. cp -r $VPU_OPENMAX_IL $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/vpu-omxil
  40. # isp_isp8000l
  41. ISP8000L=$BUILD_DIR/isp-isp8000l/1.0-r0/git
  42. cp -r $ISP8000L/output/rootfs/bsp $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  43. cp -r $ISP8000L/csi_camera_hal_inc/include/hal $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  44. cp -r $ISP8000L/csi_hal/include/common/csi_camera_dev_api.h $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/hal
  45. cp -r $ISP8000L/vi_mem/output/*.so $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/isp/lib
  46. cp -r $ISP8000L/build $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  47. cp -r $ISP8000L/dist $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  48. cp -r $ISP8000L/units/isi/drv/GC5035/source/csi_cfg.sh $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  49. if [ ! -d "$LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/include" ]
  50. then
  51. mkdir $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/include
  52. fi
  53. rm -rf $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/isp/test/ISP8000L_V2008
  54. rm -rf $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/dw200/test/case
  55. rm -rf $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/isp_ry/test/ISP8000_V2009
  56. rm -rf $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/build/riscv64-unknown-linux-gnu/debug/appshell/generated/debug/bin/ISP8000L_V2008
  57. rm -rf $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l/build/riscv64-unknown-linux-gnu/debug/appshell/ISP8000L_V2008
  58. # gpu_bxm_4_64
  59. GPU_SRC=$BUILD_DIR/gpu-bxm-4-64/1.0-r0/git
  60. cp -r $GPU_SRC/../image $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/gpu_bxm_4_64
  61. # libgal-viv
  62. G2D_SRC=$BUILD_DIR/libgal-viv/6.4.6.9-r0/git
  63. cp -r $G2D_SRC/build/sdk $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/libgal-viv-sdk
  64. # libcsi-g2d
  65. G2D_HAL_SRC=$BUILD_DIR/libcsi-g2d/1.0.0-r0/git
  66. cp -r $G2D_HAL_SRC/build $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/libcsi-g2d-sdk