2662089721
Up until now, the G2D libraries were included inside the imx-gpu-viv package. However, since next version of the i.MX will use a new hardware IP to do 2D rendering (DPU), the GPU 2D libraries have been separated from the 3D GPU package. Tested with the following commands: # /usr/share/examples/g2d_samples/g2d_multiblit_test # /usr/share/examples/g2d_samples/g2d_overlay_test # /usr/share/examples/g2d_samples/g2d_test # gst-launch-1.0 videotestsrc ! imxg2dvideosink Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# imx-gpu-g2d
|
|
#
|
|
################################################################################
|
|
|
|
IMX_GPU_G2D_VERSION = 6.2.2.p0
|
|
IMX_GPU_G2D_SITE = $(FREESCALE_IMX_SITE)
|
|
IMX_GPU_G2D_SOURCE = imx-gpu-g2d-$(IMX_GPU_G2D_VERSION).bin
|
|
IMX_GPU_G2D_DEPENDENCIES = imx-gpu-viv
|
|
IMX_GPU_G2D_INSTALL_STAGING = YES
|
|
|
|
IMX_GPU_G2D_LICENSE = NXP Semiconductor Software License Agreement
|
|
IMX_GPU_G2D_LICENSE_FILES = EULA COPYING
|
|
IMX_GPU_G2D_REDISTRIBUTE = NO
|
|
|
|
define IMX_GPU_G2D_EXTRACT_CMDS
|
|
$(call FREESCALE_IMX_EXTRACT_HELPER,$(DL_DIR)/$(IMX_GPU_G2D_SOURCE))
|
|
endef
|
|
|
|
define IMX_GPU_G2D_INSTALL_STAGING_CMDS
|
|
cp -a $(@D)/g2d/usr/* $(STAGING_DIR)/usr
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES),y)
|
|
define IMX_GPU_G2D_INSTALL_EXAMPLES
|
|
mkdir -p $(TARGET_DIR)/usr/share/examples/
|
|
cp -a $(@D)/gpu-demos/opt/* $(TARGET_DIR)/usr/share/examples/
|
|
endef
|
|
endif
|
|
|
|
define IMX_GPU_G2D_INSTALL_TARGET_CMDS
|
|
$(IMX_GPU_G2D_INSTALL_EXAMPLES)
|
|
cp -a $(@D)/g2d/usr/lib $(TARGET_DIR)/usr
|
|
endef
|
|
|
|
$(eval $(generic-package))
|