2014-03-01 15:53:06 +01:00
|
|
|
comment "weston needs udev and a toolchain w/ threads, headers >= 3.0"
|
2013-11-16 10:58:13 +01:00
|
|
|
depends on !BR2_avr32
|
2014-03-01 15:53:06 +01:00
|
|
|
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
2013-04-29 12:26:05 +02:00
|
|
|
|
|
|
|
config BR2_PACKAGE_WESTON
|
|
|
|
bool "weston"
|
|
|
|
select BR2_PACKAGE_WAYLAND
|
2014-06-09 14:15:39 +02:00
|
|
|
select BR2_PACKAGE_LIBXKBCOMMON
|
2013-04-29 12:26:05 +02:00
|
|
|
select BR2_PACKAGE_CAIRO
|
|
|
|
select BR2_PACKAGE_CAIRO_PNG
|
|
|
|
select BR2_PACKAGE_LIBPNG
|
|
|
|
select BR2_PACKAGE_JPEG
|
|
|
|
select BR2_PACKAGE_MTDEV
|
2014-02-07 14:21:33 +01:00
|
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
2013-11-16 10:58:13 +01:00
|
|
|
depends on !BR2_avr32 # wayland
|
2013-08-12 19:34:37 +02:00
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
|
2014-03-01 15:53:06 +01:00
|
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
2013-04-29 12:26:05 +02:00
|
|
|
# Runtime dependency
|
|
|
|
select BR2_PACKAGE_XKEYBOARD_CONFIG
|
2013-10-14 19:13:27 +02:00
|
|
|
# Make sure at least one compositor is selected.
|
|
|
|
select BR2_PACKAGE_WESTON_FBDEV if !BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
2013-04-29 12:26:05 +02:00
|
|
|
help
|
|
|
|
Weston is the reference implementation of a Wayland
|
|
|
|
compositor, and a useful compositor in its own right.
|
|
|
|
Weston has various backends that lets it run on Linux kernel
|
|
|
|
modesetting and evdev input as well as under X11.
|
|
|
|
|
|
|
|
http://wayland.freedesktop.org/
|
|
|
|
|
|
|
|
if BR2_PACKAGE_WESTON
|
|
|
|
|
2013-10-14 19:13:27 +02:00
|
|
|
# Helper to make sure at least one compositor is selected.
|
2013-10-10 23:05:23 +02:00
|
|
|
config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
bool
|
|
|
|
|
2013-04-29 12:26:05 +02:00
|
|
|
config BR2_PACKAGE_WESTON_FBDEV
|
|
|
|
bool "fbdev compositor"
|
|
|
|
|
2013-10-14 19:13:28 +02:00
|
|
|
comment "RPi compositor needs a toolchain w/ C++, largefile, threads"
|
|
|
|
depends on BR2_arm
|
|
|
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
|
package/weston: add RPi compositor
Procedure highly inspired by:
http://wayland.freedesktop.org/raspberrypi.html
The resulting weston works almost flawlessly, but requires a bit
of love:
- /boot/config.txt must include this line: dispmanx_offline=1
- at least 128MiB of RAM must be allocated to the GPU
- after 24-or-so terminal-clients are connected, the screen
turns black. Exiting a client restores the screen
It seems increasing/decreasing the amount of memory allocated to
the GPU makes the clients limit to wobble above/below 24 clients
at a time. YMMV, as they say...
Without dispmanx_offline=1, the limit is much below 24, at around 13.
But changing the amount of memory allocated to the GPU does not change
this limit in this case. YMMV, again.
Anyway, there are not many different clients available, besides the
terminal client, since all other clients are EGL-based, and there
is (yet) no EGL support (for weston!) on the RPi. So the tests were
made only with the terminal client.
The system is rather smooth, but spwaning too many clients in a
rapid-fire is sure to exhibit some lag. Resizing windows is a bit
jerky, but moving them along is fine.
Note: the config option has a depends on THREADS due to rpi-userland,
even though weston itself already inherits the same dependency from
wayland. But better be clean and safe.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-10-10 23:05:25 +02:00
|
|
|
config BR2_PACKAGE_WESTON_RPI
|
|
|
|
bool "RPi compositor"
|
|
|
|
depends on BR2_arm # rpi-userland
|
|
|
|
depends on BR2_INSTALL_LIBSTDCPP # rpi-userland
|
|
|
|
depends on BR2_LARGEFILE # rpi-userland
|
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # rpi-userland
|
|
|
|
select BR2_PACKAGE_RPI_USERLAND
|
|
|
|
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
|
2013-04-29 12:26:05 +02:00
|
|
|
endif
|