87741ae2c2
The following xorg.conf was used in order to force the use of the vivante module: https://github.com/Freescale/meta-freescale/blob/master/recipes-graphics/xorg-xserver/xserver-xf86-config/mx6/xorg.conf Note that the X server must be started with the "noreset" option to avoid crashes when closing X apps. Tested with: # X -noreset & # cd /usr/share/examples/viv_samples/vdk/ # DISPLAY=:0 ./tutorial7 Note that this package patch is removed as now upstream: https://source.codeaurora.org/external/imx/xf86-video-imx-vivante/commit/?id=70ebd67c Cc: Jérôme Pouiller <jezz@sysmic.org> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
36 lines
1.5 KiB
Makefile
36 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# xdriver_xf86-video-imx-viv
|
|
#
|
|
################################################################################
|
|
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_VERSION = rel_imx_4.9.x_1.0.0_ga
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_SITE = https://source.codeaurora.org/external/imx/xf86-video-imx-vivante
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_SITE_METHOD = git
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_DEPENDENCIES = imx-gpu-viv imx-gpu-g2d xserver_xorg-server \
|
|
xproto_xproto xproto_xf86driproto libdrm
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_LICENSE = MIT
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_LICENSE_FILES = COPYING-MIT
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_INSTALL_STAGING = YES
|
|
XDRIVER_XF86_VIDEO_IMX_VIV_MAKE_CMD = $(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D)/EXA/src -f makefile.linux
|
|
|
|
define XDRIVER_XF86_VIDEO_IMX_VIV_BUILD_CMDS
|
|
$(XDRIVER_XF86_VIDEO_IMX_VIV_MAKE_CMD) sysroot=$(STAGING_DIR) \
|
|
BUSID_HAS_NUMBER=1 BUILD_IN_YOCTO=1 XSERVER_GREATER_THAN_13=1 \
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
|
endef
|
|
|
|
define XDRIVER_XF86_VIDEO_IMX_VIV_INSTALL_STAGING_CMDS
|
|
$(XDRIVER_XF86_VIDEO_IMX_VIV_MAKE_CMD) prefix=$(STAGING_DIR)/usr install
|
|
$(INSTALL) -D -m 644 $(@D)/EXA/src/vivante_gal/vivante_priv.h \
|
|
$(STAGING_DIR)/usr/include/vivante_priv.h
|
|
$(INSTALL) -D -m 644 $(@D)/EXA/src/vivante_gal/vivante_gal.h \
|
|
$(STAGING_DIR)/usr/include/vivante_gal.h
|
|
endef
|
|
|
|
define XDRIVER_XF86_VIDEO_IMX_VIV_INSTALL_TARGET_CMDS
|
|
$(XDRIVER_XF86_VIDEO_IMX_VIV_MAKE_CMD) prefix=$(TARGET_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|