yocto_copy_image.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-a-val
  19. PROJECT=light-fm-bsp-v1.2.3
  20. export YOCTO_DIR=`pwd`
  21. if [ ! -d "yocto_rootfs_proprietary" ]
  22. then
  23. mkdir yocto_rootfs_proprietary
  24. fi
  25. export LIGHT_SDK_PROPRIETARY_YOCTO_DIR=$YOCTO_DIR/yocto_rootfs_proprietary
  26. export LOCAL_ROOTFS_DIR=$YOCTO_DIR/thead-build/light-fm/tmp-glibc/work/$MACHINE-oe-linux/light-fm-image/1.0-r0/rootfs
  27. export BUILD_DIR=$YOCTO_DIR/thead-build/light-fm/tmp-glibc/work/riscv64-oe-linux
  28. # start to copy images:
  29. # npu_ax3386
  30. NPU_SRC=$BUILD_DIR/npu-ax3386/1.0-r0/git
  31. cp -r $NPU_SRC/output/rootfs/bsp/npu $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/
  32. # fce_thead
  33. FCE_SRC=$BUILD_DIR/thead-fce/1.0-r0/git
  34. cp -r $FCE_SRC/output/rootfs/bsp/fce $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/
  35. # thead_ddr_pmu
  36. DDR_PMU=$BUILD_DIR/thead-ddr-pmu/1.0-r0/git
  37. cp -r $DDR_PMU/output/rootfs/bsp/ddr-pmu $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/
  38. # vpu_openmax_il
  39. VPU_OPENMAX_IL=$BUILD_DIR/vpu-omxil/1.0-r0/image
  40. cp -r $VPU_OPENMAX_IL $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/vpu-omxil
  41. # isp_isp8000l
  42. ISP8000L=$BUILD_DIR/isp-isp8000l/1.0-r0/image
  43. cp -r $ISP8000L $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/isp-isp8000l
  44. # gpu_bxm_4_64
  45. GPU_SRC=$BUILD_DIR/gpu-bxm-4-64/1.0-r0/git
  46. cp -r $GPU_SRC/../image $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/gpu_bxm_4_64
  47. # libgal-viv
  48. G2D_SRC=$BUILD_DIR/libgal-viv/6.4.6.9-r0/git
  49. cp -r $G2D_SRC/build/sdk $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/libgal-viv-sdk
  50. # libcsi-g2d
  51. G2D_HAL_SRC=$BUILD_DIR/libcsi-g2d/1.0.0-r0/git
  52. cp -r $G2D_HAL_SRC/build $LIGHT_SDK_PROPRIETARY_YOCTO_DIR/libcsi-g2d-sdk