فهرست منبع

lua: embed sub-options into a if...endif instead of depends on

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas Petazzoni 13 سال پیش
والد
کامیت
b16c6ac474
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      package/lua/Config.in

+ 4 - 3
package/lua/Config.in

@@ -5,16 +5,16 @@ config BR2_PACKAGE_LUA
 
 
 	  http://www.lua.org/
 	  http://www.lua.org/
 
 
+if BR2_PACKAGE_LUA
+
 config BR2_PACKAGE_LUA_COMPILER
 config BR2_PACKAGE_LUA_COMPILER
 	bool "lua compiler"
 	bool "lua compiler"
-	depends on BR2_PACKAGE_LUA
 	select BR2_PACKAGE_LUA_SHARED_LIBRARY
 	select BR2_PACKAGE_LUA_SHARED_LIBRARY
 	help
 	help
 	  Install luac binary
 	  Install luac binary
 
 
 config BR2_PACKAGE_LUA_INTERPRETER
 config BR2_PACKAGE_LUA_INTERPRETER
 	bool "lua interpreter"
 	bool "lua interpreter"
-	depends on BR2_PACKAGE_LUA
 	select BR2_PACKAGE_LUA_SHARED_LIBRARY
 	select BR2_PACKAGE_LUA_SHARED_LIBRARY
 	help
 	help
 	  Install lua binary
 	  Install lua binary
@@ -29,6 +29,7 @@ config BR2_PACKAGE_LUA_INTERPRETER_READLINE
 
 
 config BR2_PACKAGE_LUA_SHARED_LIBRARY
 config BR2_PACKAGE_LUA_SHARED_LIBRARY
 	bool "shared library"
 	bool "shared library"
-	depends on BR2_PACKAGE_LUA
 	help
 	help
 	  Install shared liblua.so
 	  Install shared liblua.so
+
+endif