[Buildroot] [PATCH 2/4] package/haserl: do not select Lua, depend on it

Yann E. MORIN yann.morin.1998 at free.fr
Thu Dec 17 22:06:34 UTC 2015


Lua is a provider for the virtual package lua-interpreter, so it cannot
be selected, as explained in the manual.

Turn the 'select' into a 'depends on'; add a comment when Lua is not
enabled.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

---
Note: I haven't check if haserl could use luajit instead of Lua. This
change is just a mechanical change.
---
 package/haserl/Config.in | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/package/haserl/Config.in b/package/haserl/Config.in
index 1620d72..0d8f4e0 100644
--- a/package/haserl/Config.in
+++ b/package/haserl/Config.in
@@ -8,9 +8,15 @@ config BR2_PACKAGE_HASERL
 
 	  http://haserl.sourceforge.net/
 
+if BR2_PACKAGE_HASERL
+
 config BR2_PACKAGE_HASERL_WITH_LUA
 	bool "Lua support"
-	depends on BR2_PACKAGE_HASERL
-	select BR2_PACKAGE_LUA
+	depends on BR2_PACKAGE_LUA
 	help
 	  Enable Lua support for haserl
+
+comment "Lua support needs the Lua interpreter"
+	depends on !BR2_PACKAGE_LUA
+
+endif
-- 
1.9.1



More information about the buildroot mailing list