build: deprecate fbdev backend

Rename the build option to "deprecated-backend-fbdev" so that a
previously configured build dir doesn't retain the old setting.
This is consistent with the existing "deprecated-wl-shell" option.
Make the option default to "false".

Print a warning when fbdev is force-enabled.

Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/wayland/weston/-/issues/581
This commit is contained in:
Simon Ser 2022-01-20 13:27:52 +01:00
parent 2839e61018
commit 6338dbd581
4 changed files with 10 additions and 4 deletions

View file

@ -283,6 +283,7 @@ aarch64-debian-container_prep:
-Dwerror=true
-Dtest-skip-is-failure=true
-Dlauncher-libseat=true
-Ddeprecated-backend-fbdev=true
after_script:
- ninja -C "$BUILDDIR" coverage-html > "$BUILDDIR/meson-logs/ninja-coverage-html.txt"
- ninja -C "$BUILDDIR" coverage-xml

View file

@ -893,6 +893,8 @@ fbdev_backend_create(struct weston_compositor *compositor,
seat_id = param->seat_id;
weston_log("initializing fbdev backend\n");
weston_log("warning: the fbdev backend is deprecated, please migrate "
"to the DRM backend\n");
backend = zalloc(sizeof *backend);
if (backend == NULL)

View file

@ -1,7 +1,10 @@
if not get_option('backend-fbdev')
if not get_option('deprecated-backend-fbdev')
subdir_done()
endif
warning('Support for the deprecated fbdev backend is enabled.')
warning('This feature will be removed in a future version.')
config_h.set('BUILD_FBDEV_COMPOSITOR', '1')
srcs_fbdev = [

View file

@ -45,10 +45,10 @@ option(
description: 'Weston backend: X11 (nested)'
)
option(
'backend-fbdev',
'deprecated-backend-fbdev',
type: 'boolean',
value: true,
description: 'Weston backend: fbdev'
value: false,
description: 'Weston backend: fbdev (deprecated)'
)
option(
'backend-default',