diff options
Diffstat (limited to 'recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb')
-rw-r--r-- | recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb new file mode 100644 index 0000000..67d8863 --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb | |||
@@ -0,0 +1,62 @@ | |||
1 | # Copyright (C) 2012-2014 Freescale Semiconductor | ||
2 | # Copyright (C) 2012-2014 O.S. Systems Software LTDA. | ||
3 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
4 | |||
5 | require recipes-graphics/xorg-driver/xorg-driver-video.inc | ||
6 | |||
7 | PE = "3" | ||
8 | |||
9 | inherit autotools-brokensep | ||
10 | |||
11 | DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q pixman" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://EXA/src/vivante_fbdev/vivante.h;endline=19;md5=641ac6e6d013833e36290797f4d7089c" | ||
14 | |||
15 | SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz" | ||
16 | |||
17 | SRC_URI[md5sum] = "697d9a3fb244eb95eae4207bf2d9c321" | ||
18 | SRC_URI[sha256sum] = "9178c6b721e55645bedf6d2cfaf836f5c6e2684673215358a6b6845c10a7a085" | ||
19 | |||
20 | EXTRA_OEMAKE += "-C EXA/src -f makefile.linux prefix=${D}/usr \ | ||
21 | sysroot=${STAGING_DIR_TARGET} \ | ||
22 | BUSID_HAS_NUMBER=1 \ | ||
23 | BUILD_IN_YOCTO=1 \ | ||
24 | XSERVER_GREATER_THAN_13=1" | ||
25 | |||
26 | CFLAGS += "-I${STAGING_INCDIR}/xorg \ | ||
27 | -I${STAGING_INCDIR}/drm \ | ||
28 | -I../../DRI_1.10.4/src" | ||
29 | |||
30 | S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}/" | ||
31 | |||
32 | # FIXME: The Freescale provided Makefile has hardcodec include paths | ||
33 | # and this does not work in case prefix is different than /usr, | ||
34 | # sed it. | ||
35 | do_configure_prepend () { | ||
36 | sed -i 's,$(sysroot)/usr/include,${STAGING_INCDIR},g' \ | ||
37 | ${S}EXA/src/makefile.linux | ||
38 | } | ||
39 | |||
40 | # FIXME: This is need as Freescale didn't use standard Makefile filename | ||
41 | # thus oe_runmame thinks nothing is need to be done, use ln to | ||
42 | # workaround it. | ||
43 | base_do_compile () { | ||
44 | oe_runmake || die "make failed" | ||
45 | } | ||
46 | |||
47 | do_install_append () { | ||
48 | install -d ${D}${includedir} | ||
49 | cp -axr ${S}/EXA/src/vivante_gal/vivante_priv.h ${D}${includedir} | ||
50 | cp -axr ${S}/EXA/src/vivante_gal/vivante_gal.h ${D}${includedir} | ||
51 | find ${D}${includedir} -type f -exec chmod 660 {} \; | ||
52 | } | ||
53 | |||
54 | RDEPENDS_${PN} += "libvivante-dri-mx6 \ | ||
55 | xserver-xorg-module-exa \ | ||
56 | mesa-driver-swrast \ | ||
57 | xserver-xorg-extension-dri \ | ||
58 | xserver-xorg-extension-dri2 \ | ||
59 | xserver-xorg-extension-glx" | ||
60 | |||
61 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
62 | COMPATIBLE_MACHINE = "(mx6)" | ||