Skip to contentSkip to conversation

erlang: enable host-erlang for x86/x86_64 architectures only

PATCH New Johan Oudinet 2 participants 3 messages Feb 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 erlang: enable host-erlang for x86/x86_64 architectures only

And make erlang depends on host-erlang.

---
 package/erlang/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/erlang/Config.in +7 -0
index 96af5516fd..bf745555e8 100644
@@ -1,9 +1,16 @@
+config BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
+	bool
+	default y if BR2_HOSTARCH = "x86_64"
+	default y if BR2_HOSTARCH = "x86"
+
 config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS
 	bool
 	# see HOWTO/INSTALL.md for Erlang's supported platforms
 	# when using its native atomic ops implementation
 	default y if BR2_i386 || BR2_x86_64 || BR2_powerpc || \
 		BR2_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel
+	# erlang needs host-erlang
+	depends on BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
 
 comment "erlang needs a toolchain w/ dynamic library"
 	depends on BR2_USE_MMU # fork()
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 erlang: enable host-erlang for x86/x86_64 architectures only

Hi Johan,

Quoted 1 line · Johan Oudinet

And make erlang depends on host-erlang.

A reference to the autobuilder failure would be nice.

Quoted 16 lines
---
 package/erlang/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/erlang/Config.in +5 -0
index 96af5516fd..bf745555e8 100644
@@ -1,9 +1,16 @@
+config BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
+	bool
+	default y if BR2_HOSTARCH = "x86_64"
+	default y if BR2_HOSTARCH = "x86"
+
 config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS

package/erlang/Config.in line 16

Quoted 10 lines
package/erlang/Config.in +2 -0
 	bool
 	# see HOWTO/INSTALL.md for Erlang's supported platforms
 	# when using its native atomic ops implementation
 	default y if BR2_i386 || BR2_x86_64 || BR2_powerpc || \
 		BR2_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel
+	# erlang needs host-erlang
+	depends on BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
 
 comment "erlang needs a toolchain w/ dynamic library"
 	depends on BR2_USE_MMU # fork()

This comment also needs the new dependency.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 erlang: enable host-erlang for x86/x86_64 architectures only

Quoted 6 lines · Baruch Siach

Hi Johan,

Quoted 1 line · Johan Oudinet

And make erlang depends on host-erlang.

A reference to the autobuilder failure would be nice.

Thanks Baruch. I'll include the references in the V2.

Quoted 24 lines
Quoted 24 lines
---
 package/erlang/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/erlang/Config.in +7 -0
index 96af5516fd..bf745555e8 100644
@@ -1,9 +1,16 @@
+config BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
+     bool
+     default y if BR2_HOSTARCH = "x86_64"
+     default y if BR2_HOSTARCH = "x86"
+
 config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS
      bool
      # see HOWTO/INSTALL.md for Erlang's supported platforms
      # when using its native atomic ops implementation
      default y if BR2_i386 || BR2_x86_64 || BR2_powerpc || \
              BR2_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel
+     # erlang needs host-erlang
+     depends on BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
 
Quoted 5 lines

package/erlang/Config.in line 16

Quoted 2 lines
package/erlang/Config.in +0 -0
 comment "erlang needs a toolchain w/ dynamic library"
      depends on BR2_USE_MMU # fork()

This comment also needs the new dependency.

I don't think so.
It already depends on BR2_PACKAGE_ERLANG_ARCH_SUPPORTS, which now depends on BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS.

Signature · 1 line
Johan