Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian
@ 2015-12-08 14:18 Vicente Olivert Riera
  2015-12-08 14:18 ` [Buildroot] [PATCH 2/2] nodejs: build for the right MIPS architecture variant Vicente Olivert Riera
  2015-12-12 17:27 ` [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-12-08 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/nodejs/nodejs.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index 7b6ae6b..edf8bac 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -56,6 +56,8 @@ ifeq ($(BR2_i386),y)
 NODEJS_CPU = ia32
 else ifeq ($(BR2_x86_64),y)
 NODEJS_CPU = x64
+else ifeq ($(BR2_mips),y)
+NODEJS_CPU = mips
 else ifeq ($(BR2_mipsel),y)
 NODEJS_CPU = mipsel
 else ifeq ($(BR2_arm),y)
-- 
2.4.10

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

* [Buildroot] [PATCH 2/2] nodejs: build for the right MIPS architecture variant
  2015-12-08 14:18 [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian Vicente Olivert Riera
@ 2015-12-08 14:18 ` Vicente Olivert Riera
  2015-12-08 14:24   ` [Buildroot] [PATCH v2 " Vicente Olivert Riera
  2015-12-12 17:27 ` [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-12-08 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/nodejs/nodejs.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index edf8bac..7ede89d 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -66,6 +66,18 @@ NODEJS_CPU = arm
 NODEJS_ARM_FP = $(call qstrip,$(BR2_GCC_TARGET_FLOAT_ABI))
 endif
 
+# MIPS architecture specific options
+ifeq ($(BR2_mips)$(BR2_mipsel),y)
+ifeq ($(BR2_mips_32r6),y)
+NODEJS_MIPS_ARCH_VARIANT = r6
+NODEJS_MIPS_FPU_MODE = fp64
+else ifeq ($(BR2_mips_32r2),y)
+NODEJS_MIPS_ARCH_VARIANT = r2
+else ifeq ($(BR2_mips_32),y)
+NODEJS_MIPS_ARCH_VARIANT = r1
+endif
+endif
+
 define NODEJS_CONFIGURE_CMDS
 	(cd $(@D); \
 		$(TARGET_CONFIGURE_OPTS) \
@@ -81,6 +93,8 @@ define NODEJS_CONFIGURE_CMDS
 		--without-etw \
 		--dest-cpu=$(NODEJS_CPU) \
 		$(if $(NODEJS_ARM_FP),--with-arm-float-abi=$(NODEJS_ARM_FP)) \
+		$(if $(NODEJS_MIPS_ARCH_VARIANT),--with-mips-arch-variant=$(NODEJS_MIPS_ARCH_VARIANT)) \
+		$(if $(NODEJS_MIPS_FPU_MODE),--with-mips-fpu-mode=$(NODEJS_MIPS_FPU_MODE)) \
 		--dest-os=linux \
 	)
 endef
-- 
2.4.10

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

* [Buildroot] [PATCH v2 2/2] nodejs: build for the right MIPS architecture variant
  2015-12-08 14:18 ` [Buildroot] [PATCH 2/2] nodejs: build for the right MIPS architecture variant Vicente Olivert Riera
@ 2015-12-08 14:24   ` Vicente Olivert Riera
  0 siblings, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-12-08 14:24 UTC (permalink / raw)
  To: buildroot

Fixes:

  http://autobuild.buildroot.net/results/faa/faae16b543e146b230256d7653d181fb895c83fc/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
Changes v1 -> v2:
 - Add autobuild failure URL.

 package/nodejs/nodejs.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index edf8bac..7ede89d 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -66,6 +66,18 @@ NODEJS_CPU = arm
 NODEJS_ARM_FP = $(call qstrip,$(BR2_GCC_TARGET_FLOAT_ABI))
 endif
 
+# MIPS architecture specific options
+ifeq ($(BR2_mips)$(BR2_mipsel),y)
+ifeq ($(BR2_mips_32r6),y)
+NODEJS_MIPS_ARCH_VARIANT = r6
+NODEJS_MIPS_FPU_MODE = fp64
+else ifeq ($(BR2_mips_32r2),y)
+NODEJS_MIPS_ARCH_VARIANT = r2
+else ifeq ($(BR2_mips_32),y)
+NODEJS_MIPS_ARCH_VARIANT = r1
+endif
+endif
+
 define NODEJS_CONFIGURE_CMDS
 	(cd $(@D); \
 		$(TARGET_CONFIGURE_OPTS) \
@@ -81,6 +93,8 @@ define NODEJS_CONFIGURE_CMDS
 		--without-etw \
 		--dest-cpu=$(NODEJS_CPU) \
 		$(if $(NODEJS_ARM_FP),--with-arm-float-abi=$(NODEJS_ARM_FP)) \
+		$(if $(NODEJS_MIPS_ARCH_VARIANT),--with-mips-arch-variant=$(NODEJS_MIPS_ARCH_VARIANT)) \
+		$(if $(NODEJS_MIPS_FPU_MODE),--with-mips-fpu-mode=$(NODEJS_MIPS_FPU_MODE)) \
 		--dest-os=linux \
 	)
 endef
-- 
2.4.10

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

* [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian
  2015-12-08 14:18 [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian Vicente Olivert Riera
  2015-12-08 14:18 ` [Buildroot] [PATCH 2/2] nodejs: build for the right MIPS architecture variant Vicente Olivert Riera
@ 2015-12-12 17:27 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-12-12 17:27 UTC (permalink / raw)
  To: buildroot

Dear Vicente Olivert Riera,

On Tue, 8 Dec 2015 14:18:14 +0000, Vicente Olivert Riera wrote:
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
>  package/nodejs/nodejs.mk | 2 ++
>  1 file changed, 2 insertions(+)

Both applied, 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-12-12 17:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-08 14:18 [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian Vicente Olivert Riera
2015-12-08 14:18 ` [Buildroot] [PATCH 2/2] nodejs: build for the right MIPS architecture variant Vicente Olivert Riera
2015-12-08 14:24   ` [Buildroot] [PATCH v2 " Vicente Olivert Riera
2015-12-12 17:27 ` [Buildroot] [PATCH 1/2] nodejs: add support for MIPS big endian Thomas Petazzoni

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