Skip to contentSkip to conversation

erlang: enable compilation on mipsel

PATCH New Frank Hunleth 2 participants 4 messages Jun 21, 2016 – Jun 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 erlang: enable compilation on mipsel

Erlang works fine on mipsel platforms so add it to the supported list.

---

As a side note, one would hope that Erlang would work fine on mips, mips64 and mipsel64, but I haven't found documentation of this yet and I can't verify it myself on real hw.

 package/erlang/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/erlang/Config.in +1 -1
index 56cee54..11407db 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS
 	# 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_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel
 
 comment "erlang needs a toolchain w/ dynamic library"
 	depends on BR2_USE_MMU # fork()

--
2.5.0

#1 lore raw

PATCH 1/1 erlang: enable compilation on mipsel

Hello,

Quoted 8 lines · Frank Hunleth

Erlang works fine on mipsel platforms so add it to the supported list.

---

As a side note, one would hope that Erlang would work fine on mips, mips64 and mipsel64, but I haven't found documentation of this yet and I can't verify it myself on real hw.

We have very good Qemu defconfigs in Buildroot, for all of mips, mipsel, mips64el and mips64:

$ ls -1 configs/qemu_mips*
configs/qemu_mips64el_malta_defconfig
configs/qemu_mips64_malta_defconfig
configs/qemu_mipsel_malta_defconfig
configs/qemu_mips_malta_defconfig

These allow to very easily test things on those architectures even when hardware is not available.

Note that I'm not saying that you *have* to test Erlang on all those architectures, I'm perfectly fine with enabling it on mipsel today, and enabling it later on other architectures when people need that. I just wanted to take this opportunity to mention the Qemu defconfigs, that are very regularly maintained and updated by Gustavo.

Best regards,

Thomas

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

PATCH 1/1 erlang: enable compilation on mipsel

Hi Thomas,

Quoted 22 lines · Thomas Petazzoni

Hello,

Quoted 8 lines · Frank Hunleth

Erlang works fine on mipsel platforms so add it to the supported list.

---

As a side note, one would hope that Erlang would work fine on mips, mips64 and mipsel64, but I haven't found documentation of this yet and I can't verify it myself on real hw.

We have very good Qemu defconfigs in Buildroot, for all of mips, mipsel, mips64el and mips64:

$ ls -1 configs/qemu_mips*
configs/qemu_mips64el_malta_defconfig
configs/qemu_mips64_malta_defconfig
configs/qemu_mipsel_malta_defconfig
configs/qemu_mips_malta_defconfig
Quoted 8 lines

These allow to very easily test things on those architectures even when hardware is not available.

Note that I'm not saying that you *have* to test Erlang on all those architectures, I'm perfectly fine with enabling it on mipsel today, and enabling it later on other architectures when people need that. I just wanted to take this opportunity to mention the Qemu defconfigs, that are very regularly maintained and updated by Gustavo.

Good point. I have found the qemu configs to be really useful in verifying that projects build and for simple testing. My stumbling block has been that many of the interesting things that I want to try out with Erlang require it to act like a server. For that to work, I would need to start qemu so that it has its own IP address and that Erlang can bind to an externally visible port. I know that this is possible, but I've struggled with the qemu docs enough that I've always gone to real hardware for testing. I realize that this is now completely off topic, but if someone knows of a step-by-step way of setting this up for a BR qemu config, I'd try again. (Yes - I've seen the Arch wiki qemu docs)

Best regards,
Frank

#3 lore raw

PATCH 1/1 erlang: enable compilation on mipsel

In reply to Frank Hunleth

Hello,

Quoted 4 lines · Frank Hunleth

Erlang works fine on mipsel platforms so add it to the supported list.

---

Applied to master, thanks.

Thomas

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