2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-29 12:26:05 +02:00
|
|
|
#
|
|
|
|
# weston
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-29 12:26:05 +02:00
|
|
|
|
2014-09-20 19:09:55 +02:00
|
|
|
WESTON_VERSION = 1.6.0
|
2014-07-31 10:46:58 +02:00
|
|
|
WESTON_SITE = http://wayland.freedesktop.org/releases
|
2013-10-09 00:09:48 +02:00
|
|
|
WESTON_SOURCE = weston-$(WESTON_VERSION).tar.xz
|
2013-04-29 12:26:05 +02:00
|
|
|
WESTON_LICENSE = MIT
|
|
|
|
WESTON_LICENSE_FILES = COPYING
|
|
|
|
|
2014-06-09 14:15:39 +02:00
|
|
|
WESTON_DEPENDENCIES = host-pkgconf wayland libxkbcommon pixman libpng \
|
2013-05-24 15:44:49 +02:00
|
|
|
jpeg mtdev udev cairo
|
2013-10-10 23:05:21 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS = \
|
2014-01-30 22:07:19 +01:00
|
|
|
--with-dtddir=$(STAGING_DIR)/usr/share/wayland \
|
2013-04-29 12:26:05 +02:00
|
|
|
--disable-egl \
|
2013-10-10 23:05:19 +02:00
|
|
|
--disable-simple-egl-clients \
|
2013-04-29 12:26:05 +02:00
|
|
|
--disable-xwayland \
|
|
|
|
--disable-x11-compositor \
|
|
|
|
--disable-drm-compositor \
|
|
|
|
--disable-wayland-compositor \
|
|
|
|
--disable-headless-compositor \
|
|
|
|
--disable-weston-launch \
|
2014-04-06 23:54:35 +02:00
|
|
|
--disable-colord
|
|
|
|
|
2014-06-02 22:27:24 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBINPUT),y)
|
|
|
|
WESTON_DEPENDENCIES += libinput
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --enable-libinput-backend
|
2014-06-02 22:27:24 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --disable-libinput-backend
|
2014-06-02 22:27:24 +02:00
|
|
|
endif
|
|
|
|
|
2014-04-06 23:54:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
|
|
|
WESTON_DEPENDENCIES += libunwind
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --disable-libunwind
|
2014-04-06 23:54:35 +02:00
|
|
|
endif
|
2013-04-29 12:26:05 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WESTON_FBDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --enable-fbdev-compositor
|
2013-04-29 12:26:05 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --disable-fbdev-compositor
|
2013-04-29 12:26:05 +02:00
|
|
|
endif
|
|
|
|
|
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
|
|
|
ifeq ($(BR2_PACKAGE_WESTON_RPI),y)
|
|
|
|
WESTON_DEPENDENCIES += rpi-userland
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --enable-rpi-compositor \
|
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
|
|
|
--disable-resize-optimization \
|
|
|
|
--disable-setuid-install \
|
|
|
|
--disable-xwayland-test \
|
|
|
|
--disable-simple-egl-clients \
|
|
|
|
WESTON_NATIVE_BACKEND=rpi-backend.so
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
WESTON_CONF_OPTS += --disable-rpi-compositor
|
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
|
|
|
endif # BR2_PACKAGE_WESTON_RPI
|
|
|
|
|
2013-04-29 12:26:05 +02:00
|
|
|
$(eval $(autotools-package))
|