* [Buildroot] [V2] moarvm: new package
@ 2015-06-04 20:01 Francois Perrad
2015-06-05 5:50 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Francois Perrad @ 2015-06-04 20:01 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
package/Config.in | 1 +
package/moarvm/Config.in | 14 ++++++++++++++
package/moarvm/moarvm.hash | 2 ++
package/moarvm/moarvm.mk | 42 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 59 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..4427e55
--- /dev/null
+++ b/package/moarvm/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MOARVM
+ bool "moarvm"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
+ help
+ MoarVM (short for Metamodel On A Runtime Virtual Machine) is
+ a runtime built for the 6model object system. It is primarily aimed
+ at running NQP and Rakudo Perl 6, but should be able to serve as
+ a backend for any compilers built using 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] 4+ messages in thread
* [Buildroot] [V2] moarvm: new package
2015-06-04 20:01 [Buildroot] [V2] moarvm: new package Francois Perrad
@ 2015-06-05 5:50 ` Thomas Petazzoni
2015-06-05 7:21 ` François Perrad
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-06-05 5:50 UTC (permalink / raw)
To: buildroot
Dear Francois Perrad,
On Thu, 4 Jun 2015 22:01:12 +0200, Francois Perrad wrote:
> diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
> new file mode 100644
> index 0000000..4427e55
> --- /dev/null
> +++ b/package/moarvm/Config.in
> @@ -0,0 +1,14 @@
> +config BR2_PACKAGE_MOARVM
> + bool "moarvm"
> + depends on BR2_TOOLCHAIN_HAS_THREADS
> + depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
You don't use libatomic, so: why?
> + help
> + MoarVM (short for Metamodel On A Runtime Virtual Machine) is
> + a runtime built for the 6model object system. It is primarily aimed
> + at running NQP and Rakudo Perl 6, but should be able to serve as
> + a backend for any compilers built using the NQP compiler toolchain.
I think the lines of the help text are slightly too long.
> +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))
Is using the system provided Perl OK or should we use host-perl instead?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [V2] moarvm: new package
2015-06-05 5:50 ` Thomas Petazzoni
@ 2015-06-05 7:21 ` François Perrad
2015-06-05 13:36 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: François Perrad @ 2015-06-05 7:21 UTC (permalink / raw)
To: buildroot
2015-06-05 7:50 GMT+02:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Francois Perrad,
>
> On Thu, 4 Jun 2015 22:01:12 +0200, Francois Perrad wrote:
>
>> diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
>> new file mode 100644
>> index 0000000..4427e55
>> --- /dev/null
>> +++ b/package/moarvm/Config.in
>> @@ -0,0 +1,14 @@
>> +config BR2_PACKAGE_MOARVM
>> + bool "moarvm"
>> + depends on BR2_TOOLCHAIN_HAS_THREADS
>> + depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
>
> You don't use libatomic, so: why?
>
The MoarVM tarball embeds its own copy of libatomic.
>> + help
>> + MoarVM (short for Metamodel On A Runtime Virtual Machine) is
>> + a runtime built for the 6model object system. It is primarily aimed
>> + at running NQP and Rakudo Perl 6, but should be able to serve as
>> + a backend for any compilers built using the NQP compiler toolchain.
>
> I think the lines of the help text are slightly too long.
>
>> +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))
>
> Is using the system provided Perl OK or should we use host-perl instead?
>
Work with the system perl.
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [V2] moarvm: new package
2015-06-05 7:21 ` François Perrad
@ 2015-06-05 13:36 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-06-05 13:36 UTC (permalink / raw)
To: buildroot
Dear Fran?ois Perrad,
On Fri, 5 Jun 2015 09:21:16 +0200, Fran?ois Perrad wrote:
> >> diff --git a/package/moarvm/Config.in b/package/moarvm/Config.in
> >> new file mode 100644
> >> index 0000000..4427e55
> >> --- /dev/null
> >> +++ b/package/moarvm/Config.in
> >> @@ -0,0 +1,14 @@
> >> +config BR2_PACKAGE_MOARVM
> >> + bool "moarvm"
> >> + depends on BR2_TOOLCHAIN_HAS_THREADS
> >> + depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
> >
> > You don't use libatomic, so: why?
> >
>
> The MoarVM tarball embeds its own copy of libatomic.
Ah, ok. Since this is not trivial/obvious, please add a comment above
this 'depends on'.
> > Is using the system provided Perl OK or should we use host-perl instead?
> >
>
> Work with the system perl.
Ok, we'll see if this is effectively true when we'll start building in
the autobuilders with various different/old versions of Perl. But no
need to worry about this now, the autobuilders will tell us what they
think :-)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-05 13:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 20:01 [Buildroot] [V2] moarvm: new package Francois Perrad
2015-06-05 5:50 ` Thomas Petazzoni
2015-06-05 7:21 ` François Perrad
2015-06-05 13:36 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox