Fix dependency loop in dbus
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 25 Nov 2007 14:49:45 +0000 (14:49 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 25 Nov 2007 14:49:45 +0000 (14:49 -0000)
package/dbus/Config.in

index 431c2d90e4f58f1a776fac81965abb4066c38b5a..081ff632b690d22b516a790467de5547a5ab1b89 100644 (file)
@@ -1,11 +1,15 @@
 config BR2_PACKAGE_DBUS
        bool "dbus"
        default n
+       depends on BR2_PACKAGE_EXPAT || BR2_PACKAGE_LIBXML2
        help
          The D-Bus message bus system.
 
          http://www.freedesktop.org/wiki/Software/dbus
 
+comment "dbus not available (need expat or libxml2)
+       depends on !BR2_PACKAGE_EXPAT && !BR2_PACKAGE_LIBXML2
+
 choice
        prompt "XML library to use"
        depends BR2_PACKAGE_DBUS
@@ -17,11 +21,11 @@ choice
          Expat is significant smaller.
 
        config BR2_DBUS_EXPAT
-              bool "Expat"
-              select BR2_PACKAGE_EXPAT
+               bool "Expat"
+               depends on BR2_PACKAGE_EXPAT
 
        config BR2_DBUS_LIBXML2
-              bool "libxml2"
-              select BR2_PACKAGE_LIBXML2
+               bool "libxml2"
+               depends on BR2_PACKAGE_LIBXML2
 
 endchoice