package/weston: introduce infrastructure to select other compositors
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 10 Oct 2013 21:05:23 +0000 (23:05 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 10 Oct 2013 22:08:01 +0000 (00:08 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/weston/Config.in

index 56eb135686863767dc3789abe46c3c53d6d73d98..0f168acb437acba00e622465b0ea0753f674c616 100644 (file)
@@ -14,8 +14,6 @@ config BR2_PACKAGE_WESTON
        depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
        # Runtime dependency
        select BR2_PACKAGE_XKEYBOARD_CONFIG
-       # Make sure at least one backend is selected
-       select BR2_PACKAGE_WESTON_FBDEV
        help
          Weston is the reference implementation of a Wayland
          compositor, and a useful compositor in its own right.
@@ -26,7 +24,16 @@ config BR2_PACKAGE_WESTON
 
 if BR2_PACKAGE_WESTON
 
+# These two options 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
 
 endif