2015-07-15 20:11:43 +02:00
|
|
|
comment "weston needs udev and a toolchain w/ locale, threads, dynamic library, headers >= 3.0"
|
2014-08-17 21:29:47 +02:00
|
|
|
depends on BR2_ARCH_HAS_ATOMICS
|
2014-09-28 10:48:14 +02:00
|
|
|
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS || \
|
2015-07-15 20:11:43 +02:00
|
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 || BR2_STATIC_LIBS || \
|
|
|
|
!BR2_ENABLE_LOCALE
|
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
|
2015-02-15 16:44:11 +01:00
|
|
|
select BR2_PACKAGE_LIBINPUT
|
2015-07-15 20:11:43 +02:00
|
|
|
depends on BR2_ENABLE_LOCALE # libinput
|
2014-02-07 14:21:33 +01:00
|
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
2014-12-03 22:41:29 +01:00
|
|
|
depends on !BR2_STATIC_LIBS # 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
|
2014-08-17 21:29:47 +02:00
|
|
|
depends on BR2_ARCH_HAS_ATOMICS # cairo
|
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"
|
|
|
|
|
2015-09-06 21:54:19 +02:00
|
|
|
# FreeRDP needs threads and !static, already the case for weston
|
2015-02-21 23:36:24 +01:00
|
|
|
config BR2_PACKAGE_WESTON_RDP
|
|
|
|
bool "RDP compositor"
|
2015-02-23 07:17:52 +01:00
|
|
|
depends on BR2_USE_WCHAR # freerdp
|
2015-09-06 21:54:19 +02:00
|
|
|
depends on BR2_USE_MMU # freerdp, libglib2
|
2015-02-21 23:36:24 +01:00
|
|
|
select BR2_PACKAGE_FREERDP
|
|
|
|
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
help
|
|
|
|
This enables the RDP backend, which allows accessing weston
|
|
|
|
through the network with any RDP-compliant client.
|
|
|
|
|
|
|
|
Please note that one must pass those options to weston for RDP
|
|
|
|
to be functional:
|
|
|
|
--rdp-tls-cert=/path/to/server.crt
|
|
|
|
--rdp-tls-key=/path/to/server.key
|
|
|
|
|
|
|
|
By default, Buildroot installs such files in /etc/freerdp/server/
|
|
|
|
so you may want to change them in a post-build script or a rootfs
|
|
|
|
overlay.
|
|
|
|
|
2015-02-23 07:17:52 +01:00
|
|
|
comment "RDP compositor needs a toolchain w/ wchar"
|
2015-08-20 01:06:22 +02:00
|
|
|
depends on BROKEN # needs FreeRDP master
|
2015-02-23 07:17:52 +01:00
|
|
|
depends on !BR2_USE_WCHAR
|
|
|
|
|
2014-12-20 19:22:41 +01:00
|
|
|
# rpi-userland is an EGL/GLES provider, so we can't select it
|
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"
|
2014-12-20 19:22:41 +01:00
|
|
|
depends on BR2_PACKAGE_RPI_USERLAND
|
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
|
|
|
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
|
2013-04-29 12:26:05 +02:00
|
|
|
endif
|