video-memory.bb 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. DESCRIPTION = "Light Video Memory module driver"
  2. LICENSE = "CLOSED"
  3. COMPATIBLE_MACHINE = "light-*"
  4. SRC_URI = " \
  5. git://git@gitee.com/thead-yocto/video_memory.git;branch=master;protocol=http \
  6. "
  7. THEAD_BSP_TAG ?= "${AUTOREV}"
  8. SRCREV="${THEAD_BSP_TAG}"
  9. S = "${WORKDIR}/git"
  10. DEPENDS += " linux-thead "
  11. export SYSROOT_DIR="${PKG_CONFIG_SYSROOT_DIR}"
  12. export ARCH?="riscv"
  13. export BOARD_NAME="${MACHINEOVERRIDES}"
  14. export CROSS_COMPILE="riscv64-linux-"
  15. export TOOLCHAIN_DIR?="${EXTERNAL_TOOLCHAIN}"
  16. export LINUX_DIR?="${STAGING_KERNEL_BUILDDIR}"
  17. export PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  18. export PROJECT_DIR?="${COREBASE}/.."
  19. export KERNEL_VERSION="$(cat ${BASE_WORKDIR}/kernel_version)"
  20. PARALLEL_MAKEINST = "-j1"
  21. do_install() {
  22. install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
  23. install -d ${D}${libdir}/vidmem
  24. install -d ${D}${includedir}/vidmem
  25. install -d ${D}${datadir}/vidmem/test/bin
  26. install -m 0644 ${S}/output/rootfs/bsp/vidmem/ko/*.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
  27. install -m 0755 ${S}/output/rootfs/bsp/vidmem/lib/*.so ${D}${libdir}
  28. install -m 0755 ${S}/output/rootfs/bsp/vidmem/lib/*.so ${D}${libdir}/vidmem
  29. install -m 0755 ${S}/output/rootfs/bsp/vidmem/test/* ${D}${datadir}/vidmem/test/bin
  30. install -m 0644 ${S}/driver/video_memory.h ${D}${includedir}/vidmem
  31. install -m 0644 ${S}/lib/video_mem.h ${D}${includedir}/vidmem
  32. }
  33. FILES:${PN} = "${base_libdir} ${libdir} ${datadir} ${includedir}"
  34. PACKAGES = "${PN}"
  35. INSANE_SKIP:${PN} += " debug-files "