imx-gpu-g2d.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ################################################################################
  2. #
  3. # imx-gpu-g2d
  4. #
  5. ################################################################################
  6. IMX_GPU_G2D_VERSION = 6.2.2.p0
  7. IMX_GPU_G2D_SITE = $(FREESCALE_IMX_SITE)
  8. IMX_GPU_G2D_SOURCE = imx-gpu-g2d-$(IMX_GPU_G2D_VERSION).bin
  9. IMX_GPU_G2D_DEPENDENCIES = imx-gpu-viv
  10. IMX_GPU_G2D_INSTALL_STAGING = YES
  11. IMX_GPU_G2D_LICENSE = NXP Semiconductor Software License Agreement
  12. IMX_GPU_G2D_LICENSE_FILES = EULA COPYING
  13. IMX_GPU_G2D_REDISTRIBUTE = NO
  14. define IMX_GPU_G2D_EXTRACT_CMDS
  15. $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_GPU_G2D_DL_DIR)/$(IMX_GPU_G2D_SOURCE))
  16. endef
  17. define IMX_GPU_G2D_INSTALL_STAGING_CMDS
  18. cp -a $(@D)/g2d/usr/* $(STAGING_DIR)/usr
  19. endef
  20. ifeq ($(BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES),y)
  21. define IMX_GPU_G2D_INSTALL_EXAMPLES
  22. mkdir -p $(TARGET_DIR)/usr/share/examples/
  23. cp -a $(@D)/gpu-demos/opt/* $(TARGET_DIR)/usr/share/examples/
  24. endef
  25. endif
  26. define IMX_GPU_G2D_INSTALL_TARGET_CMDS
  27. $(IMX_GPU_G2D_INSTALL_EXAMPLES)
  28. cp -a $(@D)/g2d/usr/lib $(TARGET_DIR)/usr
  29. endef
  30. $(eval $(generic-package))