[yocto] [meta-raspberrypi][PATCH 1/2] Choose correct ABI version of graphics binaries

Andrei Gherzan andrei at gherzan.ro
Sat Feb 9 14:59:59 PST 2013


On Wed, Jan 30, 2013 at 11:51 PM, Philipp Wagner
<lists at philipp-wagner.com>wrote:

> From: Philipp Wagner <mail at philipp-wagner.com>
>
> Depending on the used calling convention use the hardfp or
> the softfp binary graphics libraries.
>
> Signed-off-by: Philipp Wagner <mail at philipp-wagner.com>
> ---
>  conf/machine/include/rpi-default-providers.inc |   10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/conf/machine/include/rpi-default-providers.inc
> b/conf/machine/include/rpi-default-providers.inc
> index ce963b3..83292df 100644
> --- a/conf/machine/include/rpi-default-providers.inc
> +++ b/conf/machine/include/rpi-default-providers.inc
> @@ -2,7 +2,11 @@
>
>  PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi"
>  PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
> -PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp"
> -PREFERRED_PROVIDER_virtual/libgles2 ?= "vc-graphics-hardfp"
> -PREFERRED_PROVIDER_virtual/libgl ?= "vc-graphics-hardfp"
>  PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-raspberrypi"
> +
> +# The graphics libraries are closed source and provided as binaries with
> either
> +# hardfp and softfp calling conventions. We need to choose the one that
> fits
> +# in with the rest of the system.
> +PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains("TUNE_FEATURES",
> "callconvention-hard", "vc-graphics-hardfp", "vc-graphics", d)}"
> +PREFERRED_PROVIDER_virtual/libgles2 ?=
> "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard",
> "vc-graphics-hardfp", "vc-graphics", d)}"
> +PREFERRED_PROVIDER_virtual/libgl ?=
> "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard",
> "vc-graphics-hardfp", "vc-graphics", d)}"
>

I like this change but I think the best way would be to switch to userland.
So we can compile our own libraries. I sent some patches so please give
them a try.

-- 
*Andrei Gherzan*
m: +40.744.478.414 |  f: +40.31.816.28.12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130210/0a4b7ed9/attachment.html>


More information about the yocto mailing list