Преглед изворни кода

x11r7: fix kconfig dependencies

Most of X.org (E.G. libX11) needs WCHAR support, so ensure that
the toplevel BR2_PACKAGE_XORG7 cannot get enabled unless we have
WCHAR support in the toolchain.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard пре 16 година
родитељ
комит
b1ba675c85
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      package/x11r7/Config.in

+ 5 - 2
package/x11r7/Config.in

@@ -4,10 +4,14 @@ menuconfig BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_LIBPNG
 	select BR2_PACKAGE_LIBPNG
 	select BR2_PACKAGE_EXPAT
 	select BR2_PACKAGE_EXPAT
 	select BR2_PACKAGE_FONTCONFIG
 	select BR2_PACKAGE_FONTCONFIG
+	depends on BR2_USE_WCHAR
 	help
 	help
 	  Support for X11R7 libraries, servers, drivers, and/or
 	  Support for X11R7 libraries, servers, drivers, and/or
 	  applications in the target.
 	  applications in the target.
 
 
+comment "X.org requires a toolchain with WCHAR support"
+        depends on !BR2_USE_WCHAR
+
 if BR2_PACKAGE_XORG7
 if BR2_PACKAGE_XORG7
 
 
 choice
 choice
@@ -19,11 +23,10 @@ choice
 config BR2_PACKAGE_XSERVER_xorg
 config BR2_PACKAGE_XSERVER_xorg
 	bool "Modular X.org"
 	bool "Modular X.org"
 	# depending on BR2_ENABLE_LOCALE gives a recursion error with dbus
 	# depending on BR2_ENABLE_LOCALE gives a recursion error with dbus
-	depends on BR2_USE_WCHAR && BR2_LARGEFILE && BR2_INSTALL_LIBSTDCPP # && BR2_ENABLE_LOCALE
+	depends on BR2_LARGEFILE && BR2_INSTALL_LIBSTDCPP # && BR2_ENABLE_LOCALE
 
 
 config BR2_PACKAGE_XSERVER_tinyx
 config BR2_PACKAGE_XSERVER_tinyx
 	bool "TinyX"
 	bool "TinyX"
-	depends on BR2_USE_WCHAR
 
 
 endchoice
 endchoice