Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [V3] moarvm: new package
@ 2015-06-05 15:02 Francois Perrad
  2015-06-05 22:26 ` Arnout Vandecappelle
  2015-06-05 22:33 ` [Buildroot] [PATCH v4] " Arnout Vandecappelle
  0 siblings, 2 replies; 8+ messages in thread
From: Francois Perrad @ 2015-06-05 15:02 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/Config.in          |  1 +
 package/moarvm/Config.in   | 12 ++++++++++++
 package/moarvm/moarvm.hash |  2 ++
 package/moarvm/moarvm.mk   | 42 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+)
 create mode 100644 package/moarvm/Config.in
 create mode 100644 package/moarvm/moarvm.hash
 create mode 100644 package/moarvm/moarvm.mk

diff --git a/package/Config.in b/package/Config.in
index e0c2e2a..00c9ce3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -499,6 +499,7 @@ menu "Lua libraries/modules"
 	source "package/xavante/Config.in"
 endmenu
 endif
+	source "package/moarvm/Config.in"
 	source "package/mono/Config.in"
 	source "package/nodejs/Config.in"
 	source "package/perl/Config.in"
diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
new file mode 100644
index 0000000..198a0e1
--- /dev/null
+++ b/package/moarvm/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_MOARVM
+	bool "moarvm"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libuv embedded
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS # libatomic embedded
+	help
+	  Short for "Metamodel On A Runtime", MoarVM is a virtual machine
+	  built especially for Rakudo Perl 6 and the NQP Compiler Toolchain.
+
+	  http://moarvm.com
+
+comment "moarvm needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/moarvm/moarvm.hash b/package/moarvm/moarvm.hash
new file mode 100644
index 0000000..d5cc911
--- /dev/null
+++ b/package/moarvm/moarvm.hash
@@ -0,0 +1,2 @@
+
+sha256  828843eb3da020ee24ff83933b63aebf4aa774b815a3dfa3a758d6334779565e  MoarVM-2015.05.tar.gz
diff --git a/package/moarvm/moarvm.mk b/package/moarvm/moarvm.mk
new file mode 100644
index 0000000..961f843
--- /dev/null
+++ b/package/moarvm/moarvm.mk
@@ -0,0 +1,42 @@
+################################################################################
+#
+# moarvm
+#
+################################################################################
+
+MOARVM_VERSION = 2015.05
+MOARVM_SITE = http://moarvm.com/releases
+MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz
+MOARVM_LICENSE = Artistic-2.0
+MOARVM_LICENSE_FILES = Artistic2.txt
+MOARVM_INSTALL_STAGING = YES
+
+MOARVM_CONF_OPTS = \
+	--build=$(GNU_HOST_NAME) \
+	--host=$(GNU_TARGET_NAME) \
+	--ar="$(TARGET_AR)" \
+	--cc="$(TARGET_CC)" \
+	--ld="$(TARGET_CC)" \
+	--prefix="/usr"
+
+ifeq ($(BR2_ENDIAN),"BIG")
+MOARVM_CONF_OPTS += --big-endian
+endif
+
+define MOARVM_CONFIGURE_CMDS
+	(cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))
+endef
+
+define MOARVM_BUILD_CMDS
+	$(MAKE) -C $(@D)
+endef
+
+define MOARVM_INSTALL_STAGING_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
+endef
+
+define MOARVM_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [V3] moarvm: new package
  2015-06-05 15:02 [Buildroot] [V3] moarvm: new package Francois Perrad
@ 2015-06-05 22:26 ` Arnout Vandecappelle
  2015-06-05 22:33 ` [Buildroot] [PATCH v4] " Arnout Vandecappelle
  1 sibling, 0 replies; 8+ messages in thread
From: Arnout Vandecappelle @ 2015-06-05 22:26 UTC (permalink / raw)
  To: buildroot

On 06/05/15 17:02, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

 Hi Francois,

 I've tried building for ARM, and it tries to execute the generated minilua.

 Also, it is possible to use buildroot's libatomic_ops and libuv.

 I'll send an updated patch.

 Regards,
 Arnout



[snip]

-- 
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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v4] moarvm: new package
  2015-06-05 15:02 [Buildroot] [V3] moarvm: new package Francois Perrad
  2015-06-05 22:26 ` Arnout Vandecappelle
@ 2015-06-05 22:33 ` Arnout Vandecappelle
  2015-06-05 23:47   ` [Buildroot] [PATCH v5] " Arnout Vandecappelle
  2015-06-06  9:03   ` [Buildroot] [PATCH v4] " François Perrad
  1 sibling, 2 replies; 8+ messages in thread
From: Arnout Vandecappelle @ 2015-06-05 22:33 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 [use buildroot's libatomic_ops, libuv and host-luajit; add
  dependencies from libuv]
---
v4 (Arnout): - use buildroot's libatomic_ops, libuv and host-luajit
             - add dependencies from libuv
---
 package/Config.in          |  1 +
 package/moarvm/Config.in   | 19 +++++++++++++++++++
 package/moarvm/moarvm.hash |  2 ++
 package/moarvm/moarvm.mk   | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 68 insertions(+)
 create mode 100644 package/moarvm/Config.in
 create mode 100644 package/moarvm/moarvm.hash
 create mode 100644 package/moarvm/moarvm.mk

diff --git a/package/Config.in b/package/Config.in
index e0c2e2a..00c9ce3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -499,6 +499,7 @@ menu "Lua libraries/modules"
 	source "package/xavante/Config.in"
 endmenu
 endif
+	source "package/moarvm/Config.in"
 	source "package/mono/Config.in"
 	source "package/nodejs/Config.in"
 	source "package/perl/Config.in"
diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
new file mode 100644
index 0000000..8657345
--- /dev/null
+++ b/package/moarvm/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_MOARVM
+	bool "moarvm"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
+	depends on !BR2_STATIC_LIBS # libuv
+	depends on BR2_USE_MMU # libuv
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS # libatomic_ops
+	select BR2_PACKAGE_LIBUV
+	select BR2_PACKAGE_LIBATOMIC_OPS
+	help
+	  Short for "Metamodel On A Runtime", MoarVM is a virtual machine
+	  built especially for Rakudo Perl 6 and the NQP Compiler Toolchain.
+
+	  http://moarvm.com
+
+comment "moarvm needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
+
diff --git a/package/moarvm/moarvm.hash b/package/moarvm/moarvm.hash
new file mode 100644
index 0000000..d5cc911
--- /dev/null
+++ b/package/moarvm/moarvm.hash
@@ -0,0 +1,2 @@
+
+sha256  828843eb3da020ee24ff83933b63aebf4aa774b815a3dfa3a758d6334779565e  MoarVM-2015.05.tar.gz
diff --git a/package/moarvm/moarvm.mk b/package/moarvm/moarvm.mk
new file mode 100644
index 0000000..5889436
--- /dev/null
+++ b/package/moarvm/moarvm.mk
@@ -0,0 +1,46 @@
+################################################################################
+#
+# moarvm
+#
+################################################################################
+
+MOARVM_VERSION = 2015.05
+MOARVM_SITE = http://moarvm.com/releases
+MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz
+MOARVM_LICENSE = Artistic-2.0
+MOARVM_LICENSE_FILES = Artistic2.txt
+MOARVM_INSTALL_STAGING = YES
+MOARVM_DEPENDENCIES = host-luajit libuv libatomic_ops
+
+MOARVM_CONF_OPTS = \
+	--build=$(GNU_HOST_NAME) \
+	--host=$(GNU_TARGET_NAME) \
+	--ar="$(TARGET_AR)" \
+	--cc="$(TARGET_CC)" \
+	--ld="$(TARGET_CC)" \
+	--prefix="/usr" \
+	--lua=$(HOST_DIR)/usr/bin/luajit \
+	--has-libuv \
+	--has-libatomic
+
+ifeq ($(BR2_ENDIAN),"BIG")
+MOARVM_CONF_OPTS += --big-endian
+endif
+
+define MOARVM_CONFIGURE_CMDS
+	(cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))
+endef
+
+define MOARVM_BUILD_CMDS
+	$(MAKE) -C $(@D)
+endef
+
+define MOARVM_INSTALL_STAGING_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
+endef
+
+define MOARVM_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v5] moarvm: new package
  2015-06-05 22:33 ` [Buildroot] [PATCH v4] " Arnout Vandecappelle
@ 2015-06-05 23:47   ` Arnout Vandecappelle
  2015-06-09 21:56     ` Thomas Petazzoni
  2015-06-06  9:03   ` [Buildroot] [PATCH v4] " François Perrad
  1 sibling, 1 reply; 8+ messages in thread
From: Arnout Vandecappelle @ 2015-06-05 23:47 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 [use buildroot's libatomic_ops, libuv and host-luajit; add
  dependencies from libuv]
---
v5 (Arnout): - add dynamic library to to comment
v4 (Arnout): - use buildroot's libatomic_ops, libuv and host-luajit
             - add dependencies from libuv
---
 package/Config.in          |  1 +
 package/moarvm/Config.in   | 19 +++++++++++++++++++
 package/moarvm/moarvm.hash |  2 ++
 package/moarvm/moarvm.mk   | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 68 insertions(+)
 create mode 100644 package/moarvm/Config.in
 create mode 100644 package/moarvm/moarvm.hash
 create mode 100644 package/moarvm/moarvm.mk

diff --git a/package/Config.in b/package/Config.in
index e0c2e2a..00c9ce3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -499,6 +499,7 @@ menu "Lua libraries/modules"
 	source "package/xavante/Config.in"
 endmenu
 endif
+	source "package/moarvm/Config.in"
 	source "package/mono/Config.in"
 	source "package/nodejs/Config.in"
 	source "package/perl/Config.in"
diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
new file mode 100644
index 0000000..95f3752
--- /dev/null
+++ b/package/moarvm/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_MOARVM
+	bool "moarvm"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
+	depends on !BR2_STATIC_LIBS # libuv
+	depends on BR2_USE_MMU # libuv
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS # libatomic_ops
+	select BR2_PACKAGE_LIBUV
+	select BR2_PACKAGE_LIBATOMIC_OPS
+	help
+	  Short for "Metamodel On A Runtime", MoarVM is a virtual machine
+	  built especially for Rakudo Perl 6 and the NQP Compiler Toolchain.
+
+	  http://moarvm.com
+
+comment "moarvm needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
+
diff --git a/package/moarvm/moarvm.hash b/package/moarvm/moarvm.hash
new file mode 100644
index 0000000..d5cc911
--- /dev/null
+++ b/package/moarvm/moarvm.hash
@@ -0,0 +1,2 @@
+
+sha256  828843eb3da020ee24ff83933b63aebf4aa774b815a3dfa3a758d6334779565e  MoarVM-2015.05.tar.gz
diff --git a/package/moarvm/moarvm.mk b/package/moarvm/moarvm.mk
new file mode 100644
index 0000000..5889436
--- /dev/null
+++ b/package/moarvm/moarvm.mk
@@ -0,0 +1,46 @@
+################################################################################
+#
+# moarvm
+#
+################################################################################
+
+MOARVM_VERSION = 2015.05
+MOARVM_SITE = http://moarvm.com/releases
+MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz
+MOARVM_LICENSE = Artistic-2.0
+MOARVM_LICENSE_FILES = Artistic2.txt
+MOARVM_INSTALL_STAGING = YES
+MOARVM_DEPENDENCIES = host-luajit libuv libatomic_ops
+
+MOARVM_CONF_OPTS = \
+	--build=$(GNU_HOST_NAME) \
+	--host=$(GNU_TARGET_NAME) \
+	--ar="$(TARGET_AR)" \
+	--cc="$(TARGET_CC)" \
+	--ld="$(TARGET_CC)" \
+	--prefix="/usr" \
+	--lua=$(HOST_DIR)/usr/bin/luajit \
+	--has-libuv \
+	--has-libatomic
+
+ifeq ($(BR2_ENDIAN),"BIG")
+MOARVM_CONF_OPTS += --big-endian
+endif
+
+define MOARVM_CONFIGURE_CMDS
+	(cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))
+endef
+
+define MOARVM_BUILD_CMDS
+	$(MAKE) -C $(@D)
+endef
+
+define MOARVM_INSTALL_STAGING_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
+endef
+
+define MOARVM_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v4] moarvm: new package
  2015-06-05 22:33 ` [Buildroot] [PATCH v4] " Arnout Vandecappelle
  2015-06-05 23:47   ` [Buildroot] [PATCH v5] " Arnout Vandecappelle
@ 2015-06-06  9:03   ` François Perrad
  2015-06-06 15:05     ` Thomas Petazzoni
  1 sibling, 1 reply; 8+ messages in thread
From: François Perrad @ 2015-06-06  9:03 UTC (permalink / raw)
  To: buildroot

2015-06-06 0:33 GMT+02:00 Arnout Vandecappelle (Essensium/Mind)
<arnout@mind.be>:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>  [use buildroot's libatomic_ops, libuv and host-luajit; add
>   dependencies from libuv]
> ---
> v4 (Arnout): - use buildroot's libatomic_ops, libuv and host-luajit
>              - add dependencies from libuv
> ---
>  package/Config.in          |  1 +
>  package/moarvm/Config.in   | 19 +++++++++++++++++++
>  package/moarvm/moarvm.hash |  2 ++
>  package/moarvm/moarvm.mk   | 46 ++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 68 insertions(+)
>  create mode 100644 package/moarvm/Config.in
>  create mode 100644 package/moarvm/moarvm.hash
>  create mode 100644 package/moarvm/moarvm.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index e0c2e2a..00c9ce3 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -499,6 +499,7 @@ menu "Lua libraries/modules"
>         source "package/xavante/Config.in"
>  endmenu
>  endif
> +       source "package/moarvm/Config.in"
>         source "package/mono/Config.in"
>         source "package/nodejs/Config.in"
>         source "package/perl/Config.in"
> diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
> new file mode 100644
> index 0000000..8657345
> --- /dev/null
> +++ b/package/moarvm/Config.in
> @@ -0,0 +1,19 @@
> +config BR2_PACKAGE_MOARVM
> +       bool "moarvm"
> +       depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
> +       depends on !BR2_STATIC_LIBS # libuv
> +       depends on BR2_USE_MMU # libuv
> +       depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS # libatomic_ops
> +       select BR2_PACKAGE_LIBUV
> +       select BR2_PACKAGE_LIBATOMIC_OPS
> +       help
> +         Short for "Metamodel On A Runtime", MoarVM is a virtual machine
> +         built especially for Rakudo Perl 6 and the NQP Compiler Toolchain.
> +
> +         http://moarvm.com
> +
> +comment "moarvm needs a toolchain w/ threads"
> +       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> +       depends on BR2_USE_MMU
> +       depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
> +
> diff --git a/package/moarvm/moarvm.hash b/package/moarvm/moarvm.hash
> new file mode 100644
> index 0000000..d5cc911
> --- /dev/null
> +++ b/package/moarvm/moarvm.hash
> @@ -0,0 +1,2 @@
> +
> +sha256  828843eb3da020ee24ff83933b63aebf4aa774b815a3dfa3a758d6334779565e  MoarVM-2015.05.tar.gz
> diff --git a/package/moarvm/moarvm.mk b/package/moarvm/moarvm.mk
> new file mode 100644
> index 0000000..5889436
> --- /dev/null
> +++ b/package/moarvm/moarvm.mk
> @@ -0,0 +1,46 @@
> +################################################################################
> +#
> +# moarvm
> +#
> +################################################################################
> +
> +MOARVM_VERSION = 2015.05
> +MOARVM_SITE = http://moarvm.com/releases
> +MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz
> +MOARVM_LICENSE = Artistic-2.0
> +MOARVM_LICENSE_FILES = Artistic2.txt
> +MOARVM_INSTALL_STAGING = YES
> +MOARVM_DEPENDENCIES = host-luajit libuv libatomic_ops

host-luajit seems overkill.

Fran?ois

> +
> +MOARVM_CONF_OPTS = \
> +       --build=$(GNU_HOST_NAME) \
> +       --host=$(GNU_TARGET_NAME) \
> +       --ar="$(TARGET_AR)" \
> +       --cc="$(TARGET_CC)" \
> +       --ld="$(TARGET_CC)" \
> +       --prefix="/usr" \
> +       --lua=$(HOST_DIR)/usr/bin/luajit \
> +       --has-libuv \
> +       --has-libatomic
> +
> +ifeq ($(BR2_ENDIAN),"BIG")
> +MOARVM_CONF_OPTS += --big-endian
> +endif
> +
> +define MOARVM_CONFIGURE_CMDS
> +       (cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))
> +endef
> +
> +define MOARVM_BUILD_CMDS
> +       $(MAKE) -C $(@D)
> +endef
> +
> +define MOARVM_INSTALL_STAGING_CMDS
> +       $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
> +endef
> +
> +define MOARVM_INSTALL_TARGET_CMDS
> +       $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
> +endef
> +
> +$(eval $(generic-package))
> --
> 2.1.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v4] moarvm: new package
  2015-06-06  9:03   ` [Buildroot] [PATCH v4] " François Perrad
@ 2015-06-06 15:05     ` Thomas Petazzoni
  2015-06-06 16:17       ` François Perrad
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2015-06-06 15:05 UTC (permalink / raw)
  To: buildroot

Dear Fran?ois Perrad,

On Sat, 6 Jun 2015 11:03:38 +0200, Fran?ois Perrad wrote:

> > +MOARVM_DEPENDENCIES = host-luajit libuv libatomic_ops
> 
> host-luajit seems overkill.

Why? Lua is not part of the core dependencies of Buildroot, which are
mandatory to run Buildroot. So if it's not part of these core
dependencies, and used for the build process of moarvm, then it should
be added as a dependency of that package.

Otherwise the build will fail for users that don't have Luajit
installed on their machine, like is the case for several of the
autobuilders.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v4] moarvm: new package
  2015-06-06 15:05     ` Thomas Petazzoni
@ 2015-06-06 16:17       ` François Perrad
  0 siblings, 0 replies; 8+ messages in thread
From: François Perrad @ 2015-06-06 16:17 UTC (permalink / raw)
  To: buildroot

2015-06-06 17:05 GMT+02:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Fran?ois Perrad,
>
> On Sat, 6 Jun 2015 11:03:38 +0200, Fran?ois Perrad wrote:
>
>> > +MOARVM_DEPENDENCIES = host-luajit libuv libatomic_ops
>>
>> host-luajit seems overkill.
>
> Why? Lua is not part of the core dependencies of Buildroot, which are
> mandatory to run Buildroot. So if it's not part of these core
> dependencies, and used for the build process of moarvm, then it should
> be added as a dependency of that package.
>
> Otherwise the build will fail for users that don't have Luajit
> installed on their machine, like is the case for several of the
> autobuilders.
>

Moarvm reuses [DynASM](http://luajit.org/dynasm.html), the JIT engine of LuaJIT.
DynASM needs a Lua interpreter.
This Lua interpreter could be an external interpreter or minilua which
is included in DynASM
(see https://github.com/MoarVM/dynasm/blob/master/minilua.c).
minilua is used in a bootstrap step and is never installed.

Moarvm could be built without --lua option, in this case, the minilua
in Moarvm is compiled and used.

Moarvm could be built with --lua=$(HOST_DIR)/usr/bin/luajit, in this
case, host-luajit is built first, which includes the minilua in
LuaJIT.

In both case, a minilua is built.
host-luajit just slows down the process.

Fran?ois

> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v5] moarvm: new package
  2015-06-05 23:47   ` [Buildroot] [PATCH v5] " Arnout Vandecappelle
@ 2015-06-09 21:56     ` Thomas Petazzoni
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2015-06-09 21:56 UTC (permalink / raw)
  To: buildroot

Dear Arnout Vandecappelle (Essensium/Mind),

On Sat,  6 Jun 2015 01:47:05 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>  [use buildroot's libatomic_ops, libuv and host-luajit; add
>   dependencies from libuv]
> ---
> v5 (Arnout): - add dynamic library to to comment
> v4 (Arnout): - use buildroot's libatomic_ops, libuv and host-luajit
>              - add dependencies from libuv
> ---
>  package/Config.in          |  1 +
>  package/moarvm/Config.in   | 19 +++++++++++++++++++
>  package/moarvm/moarvm.hash |  2 ++
>  package/moarvm/moarvm.mk   | 46 ++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 68 insertions(+)
>  create mode 100644 package/moarvm/Config.in
>  create mode 100644 package/moarvm/moarvm.hash
>  create mode 100644 package/moarvm/moarvm.mk

I've applied, after fixing one little thing.


> diff --git a/package/moarvm/moarvm.hash b/package/moarvm/moarvm.hash
> new file mode 100644
> index 0000000..d5cc911
> --- /dev/null
> +++ b/package/moarvm/moarvm.hash
> @@ -0,0 +1,2 @@
> +
> +sha256  828843eb3da020ee24ff83933b63aebf4aa774b815a3dfa3a758d6334779565e  MoarVM-2015.05.tar.gz

The comment on the origin of the hash was missing. Since I couldn't
find it on the website, I simply added "Locally computed", since I also
verified the hash locally.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-09 21:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05 15:02 [Buildroot] [V3] moarvm: new package Francois Perrad
2015-06-05 22:26 ` Arnout Vandecappelle
2015-06-05 22:33 ` [Buildroot] [PATCH v4] " Arnout Vandecappelle
2015-06-05 23:47   ` [Buildroot] [PATCH v5] " Arnout Vandecappelle
2015-06-09 21:56     ` Thomas Petazzoni
2015-06-06  9:03   ` [Buildroot] [PATCH v4] " François Perrad
2015-06-06 15:05     ` Thomas Petazzoni
2015-06-06 16:17       ` François Perrad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox