Commit 6d899803 authored by Arnout Vandecappelle (Essensium/Mind)'s avatar Arnout Vandecappelle (Essensium/Mind) Committed by Peter Korsgaard
Browse files

weston: improve selection of compositor



The way the compositor was selected in Config.in was counter-intuitive,
because the fbdev backend is selected by default even if a different one
is available.

Instead, select the fbdev backend only if no other one was selected by
the user.

Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[yann.morin.1998@free.fr: don't reorder entries, keep alphabetical sort]
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 1c5ff498
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@ config BR2_PACKAGE_WESTON
	depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
	# Runtime dependency
	select BR2_PACKAGE_XKEYBOARD_CONFIG
	# Make sure at least one compositor is selected.
	select BR2_PACKAGE_WESTON_FBDEV if !BR2_PACKAGE_WESTON_HAS_COMPOSITOR
	help
	  Weston is the reference implementation of a Wayland
	  compositor, and a useful compositor in its own right.
@@ -24,17 +26,12 @@ config BR2_PACKAGE_WESTON

if BR2_PACKAGE_WESTON

# These two options make sure at least one compositor is selected.
# Helper to make sure at least one compositor is selected.
config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
	bool
config BR2_PACKAGE_WESTON_NEEDS_ONE_COMPOSITOR
	def_bool y
	depends on ! BR2_PACKAGE_WESTON_HAS_COMPOSITOR
	select BR2_PACKAGE_WESTON_FBDEV

config BR2_PACKAGE_WESTON_FBDEV
	bool "fbdev compositor"
	default y

config BR2_PACKAGE_WESTON_RPI
	bool "RPi compositor"