Commit Graph

99 Commits

Author SHA1 Message Date
Hugo Hromic
237e0c79c6 userland: bumped version and backport khronos typedef for EGL_EXT_image_dma_buf_import
The `gstreamer1.0-plugins-base` package version `1.14` uses `EGL_EXT_image_dma_buf_import`, which
expects the `EGLuint64KHR` typedef that is present in recent versions of Khronos.
However, the older version included in userland does not provide it.

This patch backports the missing typedef from recent Khronos into userland.
See: <https://www.khronos.org/registry/EGL/api/EGL/eglext.h>

Submitted to userland in <https://github.com/raspberrypi/userland/pull/467>

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-05-14 14:35:43 +01:00
Hugo Hromic
de8912cbcb wayland: do not install libwayland-egl from wayland
Wayland was updated recently in Poky, and now includes `libwayland-egl`:

    commit 8097bf7012a0d97d3b8b48eceb5dc20cc4ae7ca9
    Author: Denys Dmytriyenko <denys@ti.com>
    Date:   Tue Apr 10 15:06:09 2018 -0400

        wayland: upgrade to 1.15.0

        Official announcement:
        https://lists.freedesktop.org/archives/wayland-devel/2018-April/037767.html

        | libwayland-egl is now part of libwayland, and will presumably be removed
        | from mesa in the not too distant future.

        Update mesa recipe by removing corresponding libwayland-egl entries.

        (From OE-Core rev: 6e5952fcfc13ff4b63c9376bd41a1dbba957f425)

        Signed-off-by: Denys Dmytriyenko <denys@ti.com>
        Signed-off-by: Ross Burton <ross.burton@intel.com>
        Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

However, the `userland` ships its own version of the library (see issue #243).
Until further testing, for now discard the version in `wayland` in favour of the version in `userland`.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-05-14 10:33:19 +01:00
Khem Raj
cf9971fa8b xserver-xf86-config: Disable glamor for vc4 in general
We need this fix across 32bit and 64bit with vc4/mesa

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-04 22:08:38 +01:00
Paul Barker
9b2cbacb07 Drop unnecessary dependencies and tasks
We have a few recipes which only deploy files that go into the boot partition
and do not create packages to be installed into the rootfs. These recipes don't
need to run the usual packaging tasks so we can drop them to speed up the build
a little.

We also have a bunch of recipes that don't need the usual toolchain as they just
copy files or invoke native commands like `mkimage`. So to speed up the build a
little more we can set INHIBIT_DEFAULT_DEPS to avoid an unnecessary dependency
on the toolchain.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Andreas Müller
963761aac3 mesa: enable dri3 explicitly
Currently oe-core enables dri3 only for x11 AND vulcan. Although patch enabling
dri3 by default in oe-core was sent out, make sure here dri3 is enabled -
whatever oe-core suggest in the future.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2018-04-06 12:33:40 +01:00
Khem Raj
790e100a90 userland: Add wayland support for libbrcmEGL
These renames are recently added
dd98890106

Some packages e.g. libSDL2 has started using the new names
and are resulting in undefined symbols e.g.

| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/libsdl2-mixer/2.0.2-r0/recipe-sysroot/usr/lib/libb
rcmEGL.so: undefined reference to `wl_resource_post_error'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 20:31:12 -08:00
Khem Raj
712558c64e userland: Update to master as of 20180219
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 20:31:12 -08:00
Jeff Wannamaker
ee668d8072 userland: Update to latest master
Add patch to allow multiple wayland clients per process

userland has limit of one wayland client per process and thereby allow compositors
to launch multiple wayland client apps

Signed-off-by: Jeff Wannamaker <jeff_wannamaker@cable.comcast.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-02-02 11:13:24 +00:00
Paul Barker
337a419c0e userland: Use commit date as PV
This gives us a package version which can be reliably expected to move forwards
not backwards.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-12-18 19:20:43 +00:00
Khem Raj
9b1a796cb7 userland: Update to latest revision
Forward port patches as needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-11-15 10:47:39 +00:00
Francesco Giancane
76f5a7df71 userland: RPROVIDES is missing libegl
userland package is the Raspberry Pi provider for the openGL stack.
If selected, it shall provide the gles2 and egl stacks in conjunction
with mesa-gl.

libegl was missing in the RPROVIDES variable, thus some run-time
dependencies were not met when using userland as provider.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>
2017-10-28 11:45:19 +02:00
Francesco Giancane
a1cfeb3324 weston: remove rpi-backend configuration switch
rpi-backend.so was an attempt to create a specialized
weston backend to be used on raspberry pi like platforms.

At the moment, this backend's support has been dropped in favor
of using the standard drm backend, as the vc4 driver is now mainline
in mesa and in kernel (for kernel support).

As a result, weston on raspberry pi does not require the rpi-backend.so
anymore, nor it is buildable (weston's configure complains about
unrecognized configuration switch).

This patch enables weston to natively run on the DRM backend.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>
2017-10-20 15:54:06 +01:00
Khem Raj
f2896b0e5c xserver-xf86-config: Disable glamor for the modesetting driver on pi64
Fixes a xorg server crash with musl see details
https://github.com/voidlinux/void-packages/issues/6091

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-09-20 15:50:20 +01:00
Andrei Gherzan
91f59ae288 userland: Update to current master HEAD
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2017-09-08 18:47:41 +01:00
Martin Jansa
56d0bdb5fe recipe: anchor regexps in COMPATIBLE_MACHINE
* bitbake is using re.match, so raspberrypi actually matches with anything
  ^raspberrypi.* which currently works, but it will also match with hypothetical
  raspberrypi-is-no-more-this-is-banana-now MACHINE which isn't intended by
  this COMPATIBLE_MACHINE.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-27 10:56:34 +02:00
Martin Jansa
ab4006bb2e weston: use just one append and one bb.utils.contains
* drop duplicated --enable-rpi-compositor and WESTON_NATIVE_BACKEND=rpi-backend.so
* use rpi override, adding --enable-rpi-compositor unconditionally breaks other MACHINEs with:
  configure: WARNING: unrecognized options: --enable-rpi-compositor
* use just one append and one bb.utils.contains to save some bitbake cycles while parsing

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-27 10:56:34 +02:00
Andrea Galbusera
1e1b50c55d userland: Add missing EGL_CAST defines
Needed by libepoxy

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2017-07-14 14:35:59 +01:00
Khem Raj
4f2dd0f0e8 userland: Update to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-05-24 16:20:58 +01:00
Khem Raj
d9e94b87a7
mesa-gl: Enable gbm for rpi
weston needs gbm support which is not
in userland

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-05-11 18:18:08 +01:00
Khem Raj
2aa6b1a637
userland: Add missing GLES2 defines
Needed by weston

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-05-11 18:18:05 +01:00
Khem Raj
7e941bb1ed eglinfo-fb: Mark is userland specific
It does not yet compile/work with vc4 open graphics driver

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-04-17 02:20:21 +01:00
Khem Raj
1a42bce360 userland: Upgrade to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-04-17 02:20:15 +01:00
Khem Raj
e070005aa8 userland: Do not provide libgl
libgl is actually provided by mesa-gl and this
casued unneeded conflict between these two
packages resulting in sato image reporting missing
libGL.so.1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-03-11 13:34:46 -08:00
Andreas Müller
52bec45b67 xserver-xf86-config: remove evdev configuration
xorg-xserver recommends xf86-input-libinput since oe-core's commit

| commit 2d005faff6341a81a2afae28860101ba9db51ae8
| Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
| Date:   Wed Oct 26 11:37:38 2016 +0300
|
|    conf: Use xf86-input-libinput by default
| ...

As nice side effect warnings for missing evdev in Xorg.0.log are gone.

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2017-03-11 04:39:15 -08:00
Khem Raj
a23003794f userland: Update to latest
Forward port the patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-03-11 04:39:13 -08:00
Khem Raj
d01bf8751b userland: Upgrade to latest and implement triple buffering for wayland
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:53:04 +01:00
Khem Raj
1bf09a45a9 userland: Fix building on aarch64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-12-29 19:33:20 +01:00
Khem Raj
90c45b48f6 userland: Update to latest
* Regenerate forward patches
* Remove upstreamed ones

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-12-29 19:33:17 +01:00
Khem Raj
a5f95f4233 userland: Bump to latest and add ASNEEDED = ""
ASNEEDED does not work with userland libraries as
noted in see
https://lists.yoctoproject.org/pipermail/yocto/2014-June/019933.html

Helps with running kodi using gles2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-11-08 12:26:24 +01:00
Khem Raj
6c755af275 weston: Unify bbappends for weston into single file
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-11-08 12:02:38 +01:00
Khem Raj
b9e6f04ce6 userland: Update to latest master tip
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-11-08 11:59:38 +01:00
Andreas Müller
c62e088a65 eglinfo-x11: align to VC4
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-10-14 14:50:12 +02:00
Andreas Müller
8d17669588 xorg align for vc4
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-10-14 14:49:04 +02:00
Andreas Müller
3b9aebd6ae mesa: align for vc4
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-10-14 14:49:04 +02:00
Khem Raj
585838e7a2 userland: Upgrade to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-10-13 10:40:16 +02:00
Khem Raj
ac6f357271 weston: Fix typo with override
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-09-21 17:15:02 +01:00
Carlos Alberto Lopez Perez
ed84c2c8a2 vc4graphics: Support X11 with the VC4 driver.
* We need to use the X11 modesetting driver with VC4.

  * We need to build at least the mesa swrast DRI driver.
   (its already the default so don't overwrite it to empty)

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-09-21 17:14:59 +01:00
Khem Raj
55388a5101 firmware, userland: Bump to latest
firmware -> 20160726

userland -> 20160728

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-09-21 17:14:57 +01:00
Herve Jourdain
6b4de2bb90 mesa_%.bbappend: new file to add the correct configuration options to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:25 +01:00
Herve Jourdain
bee7643b6c weston/weston_%.bbappend: modify configuration options to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:23 +01:00
Herve Jourdain
72b9635c66 wayland/weston_%.bbappend: modify configuration options to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:21 +01:00
Scott Ellis
cc64d6324d userland: Add bash to RDEPENDS
WARNING: userland-git-r5 do_package_qa: QA Issue: /usr/bin/dtoverlay-post
contained in package userland requires /bin/bash, but no providers found
in RDEPENDS_userland? [file-rdeps]

Signed-off-by: Scott Ellis <scott@jumpnowtek.com>
2016-08-29 20:59:42 +01:00
Khem Raj
5cac5e67f8 userland: Upgrade to latest tip
Drop upstream applied patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-07-08 14:25:53 +01:00
Khem Raj
f7af12910f userland: Update to tip of tree
Drop the patch which is upstreamed slightly differently
use VMCS_INSTALL_PREFIX to /usr via EXTRA_OECMAKE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-05-19 17:14:04 +02:00
Tom Doehring
bfc46bdd55 userland: Fix passing of wayland-native to cmake while configuring
While having 'wayland' set DISTRO_FEATURES 'wayland-native' is handled as a cmake parameter which breaks the do_configure:

$ cat /data/builds/rpi3-sandbox/tmp/work/raspberrypi2-poky-linux-gnueab i/userland/git-r5/temp/run.do_configure
 cmake \
          ${OECMAKE_SITEFILE} \
          [...]
          -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed'                  wayland-native \
          -Wno-dev

$ CMake Error: The source directory "/data/builds/rpi3-sandbox/tmp/work/raspberrypi2-poky-linux-gnueabi/userland/git-r5/build/wayland-native" does not exist.
| Specify --help for usage, or press the help button on the CMake GUI.

Assuming that wayland-native should only be defined as a DEPENDS package this patch moves it to the correct PACKAGECONFIG position.

Signed-off-by: Tom Doehring <toolmmy@gmail.com>
Signed-off-by: toolmmy <toolmmy@gmail.com>
2016-04-20 22:57:56 +02:00
Khem Raj
3645b27848 userland: Make vchostif as shared library
This helps in using this library when building
with PIE binaries

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-04-13 05:16:57 +02:00
Khem Raj
f1b7034077 userland: Fix a build regression in builds not using wayland
Update userland to latest

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-04-13 05:16:26 +02:00
Andrei Gherzan
4f8930b9d0 userland: In case of wayland configuration build needs wayland-native
Building wayland support requires availability of wayland-scanner to avoid
build errors like:

| /bin/sh:
| /home/andrei/work/yocto/build-rpi-master/tmp/sysroots/x86_64-linux/usr/bin/wayland-scanner:
| No such file or directory

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-04-13 05:12:13 +02:00
Petter Mabäcker
9797874a23 pitft: Add support for pitft28r
The support for PiTFT 28 inch resistive touchscreen is optional
and can be enabled by adding below in local.conf:

MACHINE_FEATURES += "pitft pitft28r"

While at it also fix a minor typo in README.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:16:02 +02:00
Khem Raj
84af6e7de3 userland: Fix tearing effect seen with wayland compositors
Introduce EGL flush in few more places

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-04-01 13:27:59 +02:00