Skip to contentSkip to conversation

package/turbolua: new package

PATCH Superseded Marcin Niestroj 3 participants 6 messages Apr 8, 2016 – Apr 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/turbolua: new package

Hi,

This is the third attempt for adding turbolua. Changes include mostly Thomas and Arnout suggestions.

Changes v2 -> v3:
* Do not use SSL variable, set TURBOLUA_MAKE_OPTS instead
* Remove dependency on !BR2_ARM_INSTRUCTIONS_THUMB2, as it is not clear what is the reason of crashes on Thumb2 target
* Bump to upstream HEAD version to correctly pass LDFLAGS

Changes v1 -> v2:
* Use TARGET_CONFIGURE_OPTS instead of CC and LD only
* Bump to upstream HEAD version to handle TARGET_CONFIGURE_OPTS correctly
* Add comment for dependency on disabled Thumb2
* Reduce help block column size in Config.in
* Add URL of the project homepage
* Disable SSL support when OpenSSL is not selected

Marcin Niestroj (1):
package/turbolua: new package

 package/Config.in              |  1 +
 package/turbolua/Config.in     | 15 +++++++++++++++
 package/turbolua/turbolua.hash |  2 ++
 package/turbolua/turbolua.mk   | 27 +++++++++++++++++++++++++++
 4 files changed, 45 insertions(+)
 create mode 100644 package/turbolua/Config.in
 create mode 100644 package/turbolua/turbolua.hash
 create mode 100644 package/turbolua/turbolua.mk
Signature · 1 line
2.8.0
#1 lore raw

PATCH v3 1/1 package/turbolua: new package

---
 package/Config.in              |  1 +
 package/turbolua/Config.in     | 15 +++++++++++++++
 package/turbolua/turbolua.hash |  2 ++
 package/turbolua/turbolua.mk   | 27 +++++++++++++++++++++++++++
 4 files changed, 45 insertions(+)
 create mode 100644 package/turbolua/Config.in
 create mode 100644 package/turbolua/turbolua.hash
 create mode 100644 package/turbolua/turbolua.mk
package/Config.in +1 -0
index 64822bf..3d6eaf1 100644
@@ -542,6 +542,7 @@ menu "Lua libraries/modules"
 	source "package/lzlib/Config.in"
 	source "package/orbit/Config.in"
 	source "package/rings/Config.in"
+	source "package/turbolua/Config.in"
 	source "package/wsapi/Config.in"
 	source "package/xavante/Config.in"
 endmenu
package/turbolua/Config.in new file +15 -0
new file mode 100644
index 0000000..8753dbd
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_TURBOLUA
+	bool "turbolua"
+	depends on BR2_PACKAGE_LUAJIT
+	help
+	  Turbo.lua is a framework built for LuaJIT 2 to simplify the
+	  task of building fast and scalable network applications. It
+	  uses a event-driven, non-blocking, no thread design to deliver
+	  excellent performance and minimal footprint to high-load
+	  applications while also providing excellent support for
+	  embedded uses. The toolkit can be used for HTTP REST API?s,
+	  traditional dynamic web pages through templating, open
+	  connections like WebSockets, or just as high level building
+	  blocks for native speed network applications.
+
+	  http://www.turbolua.org
package/turbolua/turbolua.hash new file +2 -0
new file mode 100644
index 0000000..ea7898c
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 4f7e3121fcc25a5867a264a6f09acf641c904668f5822b1533881f40a3b863ea turbolua-91db237a6690f4a659cbdee2ebbbbc9741d8ea4c.tar.gz
package/turbolua/turbolua.mk new file +27 -0
new file mode 100644
index 0000000..cf66e70
@@ -0,0 +1,27 @@
+################################################################################
+#
+# turbolua
+#
+################################################################################
+
+TURBOLUA_VERSION = 91db237a6690f4a659cbdee2ebbbbc9741d8ea4c
+TURBOLUA_SITE = $(call github,kernelsauce,turbo,$(TURBOLUA_VERSION))
+TURBOLUA_DEPENDENCIES = luajit
+TURBOLUA_LICENSE = Apache-2.0
+TURBOLUA_LICENSE_FILES = LICENSE
+
+TURBOLUA_MAKE_OPTS = \
+	$(TARGET_CONFIGURE_OPTS) \
+	SSL=$(if $(BR2_PACKAGE_OPENSSL),openssl,none) \
+	LUAJIT_VERSION="$(LUAJIT_VERSION)"
+
+define TURBOLUA_BUILD_CMDS
+	$(MAKE) $(TURBOLUA_MAKE_OPTS) -C $(@D) all
+endef
+
+define TURBOLUA_INSTALL_TARGET_CMDS
+	$(MAKE) $(TURBOLUA_MAKE_OPTS) LDCONFIG=true \
+		PREFIX="$(TARGET_DIR)/usr" -C $(@D) install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.8.0
#2 lore raw

PATCH v3 1/1 package/turbolua: new package

Quoted 34 lines · Marcin Niestroj
---
  package/Config.in              |  1 +
  package/turbolua/Config.in     | 15 +++++++++++++++
  package/turbolua/turbolua.hash |  2 ++
  package/turbolua/turbolua.mk   | 27 +++++++++++++++++++++++++++
  4 files changed, 45 insertions(+)

create mode 100644 package/turbolua/Config.in create mode 100644 package/turbolua/turbolua.hash create mode 100644 package/turbolua/turbolua.mk

package/Config.in +1 -0
index 64822bf..3d6eaf1 100644
@@ -542,6 +542,7 @@ menu "Lua libraries/modules"
  	source "package/lzlib/Config.in"
  	source "package/orbit/Config.in"
  	source "package/rings/Config.in"
+	source "package/turbolua/Config.in"
  	source "package/wsapi/Config.in"
  	source "package/xavante/Config.in"
  endmenu
package/turbolua/Config.in new file +5 -0
new file mode 100644
index 0000000..8753dbd
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_TURBOLUA
+	bool "turbolua"
+	depends on BR2_PACKAGE_LUAJIT
+	help
+	  Turbo.lua is a framework built for LuaJIT 2 to simplify the

package/turbolua/Config.in line 15

Quoted 10 lines
package/turbolua/Config.in new file +10 -0
+	  task of building fast and scalable network applications. It
+	  uses a event-driven, non-blocking, no thread design to deliver
+	  excellent performance and minimal footprint to high-load
+	  applications while also providing excellent support for
+	  embedded uses. The toolkit can be used for HTTP REST API?s,
+	  traditional dynamic web pages through templating, open
+	  connections like WebSockets, or just as high level building
+	  blocks for native speed network applications.
+
+	  http://www.turbolua.org

This is missing:

comment "turbolua needs LuaJIT"
depends on !BR2_PACKAGE_LUAJIT

With that:

Regards,
Arnout

Quoted 42 lines
package/turbolua/turbolua.hash new file +2 -0
new file mode 100644
index 0000000..ea7898c
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 4f7e3121fcc25a5867a264a6f09acf641c904668f5822b1533881f40a3b863ea turbolua-91db237a6690f4a659cbdee2ebbbbc9741d8ea4c.tar.gz
package/turbolua/turbolua.mk new file +27 -0
new file mode 100644
index 0000000..cf66e70
@@ -0,0 +1,27 @@
+################################################################################
+#
+# turbolua
+#
+################################################################################
+
+TURBOLUA_VERSION = 91db237a6690f4a659cbdee2ebbbbc9741d8ea4c
+TURBOLUA_SITE = $(call github,kernelsauce,turbo,$(TURBOLUA_VERSION))
+TURBOLUA_DEPENDENCIES = luajit
+TURBOLUA_LICENSE = Apache-2.0
+TURBOLUA_LICENSE_FILES = LICENSE
+
+TURBOLUA_MAKE_OPTS = \
+	$(TARGET_CONFIGURE_OPTS) \
+	SSL=$(if $(BR2_PACKAGE_OPENSSL),openssl,none) \
+	LUAJIT_VERSION="$(LUAJIT_VERSION)"
+
+define TURBOLUA_BUILD_CMDS
+	$(MAKE) $(TURBOLUA_MAKE_OPTS) -C $(@D) all
+endef
+
+define TURBOLUA_INSTALL_TARGET_CMDS
+	$(MAKE) $(TURBOLUA_MAKE_OPTS) LDCONFIG=true \
+		PREFIX="$(TARGET_DIR)/usr" -C $(@D) install
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#3 lore raw

PATCH v4 1/1 package/turbolua: new package

In reply to Marcin Niestroj

---
Changes v3 -> v4:
* Show comment when LuaJIT is not selected (suggested by Arnout)

Changes v2 -> v3:
* Do not use SSL variable, set TURBOLUA_MAKE_OPTS instead
* Remove dependency on !BR2_ARM_INSTRUCTIONS_THUMB2, as it is not clear what is the reason of crashes on Thumb2 target
* Bump to upstream HEAD version to correctly pass LDFLAGS

Changes v1 -> v2:
* Use TARGET_CONFIGURE_OPTS instead of CC and LD only
* Bump to upstream HEAD version to handle TARGET_CONFIGURE_OPTS correctly
* Add comment for dependency on disabled Thumb2
* Reduce help block column size in Config.in
* Add URL of the project homepage
* Disable SSL support when OpenSSL is not selected

---
 package/Config.in              |  1 +
 package/turbolua/Config.in     | 18 ++++++++++++++++++
 package/turbolua/turbolua.hash |  2 ++
 package/turbolua/turbolua.mk   | 27 +++++++++++++++++++++++++++
 4 files changed, 48 insertions(+)
 create mode 100644 package/turbolua/Config.in
 create mode 100644 package/turbolua/turbolua.hash
 create mode 100644 package/turbolua/turbolua.mk
package/Config.in +1 -0
index 64822bf..3d6eaf1 100644
@@ -542,6 +542,7 @@ menu "Lua libraries/modules"
 	source "package/lzlib/Config.in"
 	source "package/orbit/Config.in"
 	source "package/rings/Config.in"
+	source "package/turbolua/Config.in"
 	source "package/wsapi/Config.in"
 	source "package/xavante/Config.in"
 endmenu
package/turbolua/Config.in new file +18 -0
new file mode 100644
index 0000000..34f66ef
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_TURBOLUA
+	bool "turbolua"
+	depends on BR2_PACKAGE_LUAJIT
+	help
+	  Turbo.lua is a framework built for LuaJIT 2 to simplify the
+	  task of building fast and scalable network applications. It
+	  uses a event-driven, non-blocking, no thread design to deliver
+	  excellent performance and minimal footprint to high-load
+	  applications while also providing excellent support for
+	  embedded uses. The toolkit can be used for HTTP REST API?s,
+	  traditional dynamic web pages through templating, open
+	  connections like WebSockets, or just as high level building
+	  blocks for native speed network applications.
+
+	  http://www.turbolua.org
+
+comment "turbolua needs LuaJIT"
+	depends on !BR2_PACKAGE_LUAJIT
package/turbolua/turbolua.hash new file +2 -0
new file mode 100644
index 0000000..ea7898c
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 4f7e3121fcc25a5867a264a6f09acf641c904668f5822b1533881f40a3b863ea turbolua-91db237a6690f4a659cbdee2ebbbbc9741d8ea4c.tar.gz
package/turbolua/turbolua.mk new file +27 -0
new file mode 100644
index 0000000..cf66e70
@@ -0,0 +1,27 @@
+################################################################################
+#
+# turbolua
+#
+################################################################################
+
+TURBOLUA_VERSION = 91db237a6690f4a659cbdee2ebbbbc9741d8ea4c
+TURBOLUA_SITE = $(call github,kernelsauce,turbo,$(TURBOLUA_VERSION))
+TURBOLUA_DEPENDENCIES = luajit
+TURBOLUA_LICENSE = Apache-2.0
+TURBOLUA_LICENSE_FILES = LICENSE
+
+TURBOLUA_MAKE_OPTS = \
+	$(TARGET_CONFIGURE_OPTS) \
+	SSL=$(if $(BR2_PACKAGE_OPENSSL),openssl,none) \
+	LUAJIT_VERSION="$(LUAJIT_VERSION)"
+
+define TURBOLUA_BUILD_CMDS
+	$(MAKE) $(TURBOLUA_MAKE_OPTS) -C $(@D) all
+endef
+
+define TURBOLUA_INSTALL_TARGET_CMDS
+	$(MAKE) $(TURBOLUA_MAKE_OPTS) LDCONFIG=true \
+		PREFIX="$(TARGET_DIR)/usr" -C $(@D) install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.8.0
#4 lore raw

PATCH v4 1/1 package/turbolua: new package

Hello,

Quoted 4 lines · Marcin Niestroj

---
Changes v3 -> v4:
* Show comment when LuaJIT is not selected (suggested by Arnout)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

PATCH v3 1/1 package/turbolua: new package

In reply to Marcin Niestroj

Hi Marcin,

Quoted 6 lines · Marcin Niestroj

Hi,

This is the third attempt for adding turbolua. Changes include mostly Thomas and Arnout suggestions.

Changes v2 -> v3:

We normally put the changelog in the patch itself (after the signed-off-by,
below a --- line). Then you don't need to compose a cover letter if it's only a single patch.

Regards,
Arnout

Quoted 26 lines

* Do not use SSL variable, set TURBOLUA_MAKE_OPTS instead
* Remove dependency on !BR2_ARM_INSTRUCTIONS_THUMB2, as it is not clear what is the reason of crashes on Thumb2 target
* Bump to upstream HEAD version to correctly pass LDFLAGS

Changes v1 -> v2:
* Use TARGET_CONFIGURE_OPTS instead of CC and LD only
* Bump to upstream HEAD version to handle TARGET_CONFIGURE_OPTS correctly
* Add comment for dependency on disabled Thumb2
* Reduce help block column size in Config.in
* Add URL of the project homepage
* Disable SSL support when OpenSSL is not selected

Marcin Niestroj (1):
package/turbolua: new package

  package/Config.in              |  1 +
  package/turbolua/Config.in     | 15 +++++++++++++++
  package/turbolua/turbolua.hash |  2 ++
  package/turbolua/turbolua.mk   | 27 +++++++++++++++++++++++++++
  4 files changed, 45 insertions(+)

create mode 100644 package/turbolua/Config.in create mode 100644 package/turbolua/turbolua.hash create mode 100644 package/turbolua/turbolua.mk

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF