[meta-freescale] [meta-fsl-arm][PATCH 4/4] gpu-viv-bin-mx6q: Add dri.pc

Otavio Salvador otavio at ossystems.com.br
Mon Jan 14 03:58:45 PST 2013


On Sun, Jan 13, 2013 at 2:28 PM, Andrei Gherzan
<andrei.gherzan at windriver.com> wrote:
> This is need when compiling packages like xserver-xorg with dri support.
>
> Signed-off-by: Andrei Gherzan <andrei.gherzan at windriver.com>
> ---
>  .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |   13 ++++++++++---
>  .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc       |   11 +++++++++++
>  2 files changed, 21 insertions(+), 3 deletions(-)
>  create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc
>
> diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
> index 1f63a0b..ed69e88 100644
> --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
> +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
> @@ -7,11 +7,14 @@ LICENSE = "Proprietary"
>  LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=092bc28e13d678ceaebe1a40559275fb"
>  PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6"
>
> -INC_PR = "r1"
> +INC_PR = "r2"
>
>  inherit fsl-eula-unpack
>
> -SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
> +SRC_URI = " \
> +    ${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
> +    file://dri.pc \
> +    "

Please don't change the format in same patch. Besides I see no reason
to break the first line... do you?

>  PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
>         libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \
> @@ -62,6 +65,10 @@ do_install () {
>
>      find ${D}${libdir} -type f -exec chmod 644 {} \;
>      find ${D}${includedir} -type f -exec chmod 644 {} \;
> +
> +    # Install dri.pc
> +    install -d ${D}${libdir}/pkgconfig
> +    cp -ax ${WORKDIR}/dri.pc ${D}${libdir}/pkgconfig
>  }
>
>  S = "${WORKDIR}/${PN}-${PV}"
> @@ -140,7 +147,7 @@ FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}"
>  FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}"
>
>  FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}"
> -FILES_libvivante-dri-mx6-dev = ""
> +FILES_libvivante-dri-mx6-dev = "${libdir}/pkgconfig"
>  FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}"
>
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
> diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc
> new file mode 100644
> index 0000000..537c533
> --- /dev/null
> +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc
> @@ -0,0 +1,11 @@
> +prefix=/usr
> +exec_prefix=${prefix}
> +libdir=/usr/lib
> +includedir=/usr/include
> +dridriverdir=${libdir}/dri
> +
> +Name: dri
> +Description: Vivante Direct Rendering Infrastructure
> +Version: 8.0.0
> +Requires.private: libdrm >= 2.4.24
> +Cflags: -I${includedir}

The patch looks fine; I will await for the v2 of the patchset.

Regards,

--
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



More information about the meta-freescale mailing list