lua: embed sub-options into a if...endif instead of depends on
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 17 Jul 2012 19:28:32 +0000 (21:28 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 17 Jul 2012 19:28:32 +0000 (21:28 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/lua/Config.in

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