imx-gpu-g2d.mk 1.1 KB

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