yocto_copy_image.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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/image
  42. cp -r $ISP8000L $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  43. # gpu_bxm_4_64
  44. GPU_SRC=$BUILD_DIR/gpu-bxm-4-64/1.0-r0/git
  45. cp -r $GPU_SRC/../image $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/gpu_bxm_4_64
  46. # libgal-viv
  47. G2D_SRC=$BUILD_DIR/libgal-viv/6.4.6.9-r0/git
  48. cp -r $G2D_SRC/build/sdk $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/libgal-viv-sdk
  49. # libcsi-g2d
  50. G2D_HAL_SRC=$BUILD_DIR/libcsi-g2d/1.0.0-r0/git
  51. cp -r $G2D_HAL_SRC/build $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/libcsi-g2d-sdk