erlang: add option to enable SMP support
PATCH 1/1 erlang: add option to enable SMP support
Erlang builds two emulators depending on whether SMP is supported or not. If it is known that the target does not support SMP, turning off the SMP emulator saves compile time and reduces the size of the installation.
--- package/erlang/Config.in | 10 ++++++++++ package/erlang/erlang.mk | 4 ++++ 2 files changed, 14 insertions(+)
package/erlang/Config.in +10 -0
@@ -10,6 +10,16 @@ config BR2_PACKAGE_ERLANG http://www.erlang.org +config BR2_PACKAGE_ERLANG_SMP + bool "enable SMP support" + depends on BR2_PACKAGE_ERLANG + help + Erlang provides both a UP and an SMP emulator. The UP emulator + is always built, and this option enables compilation of the SMP + emulator. The choice of which emulator to use is made at runtime. + If you do not need SMP support, turning this option off reduces + compile time and the size of the Erlang installation. + config BR2_PACKAGE_ERLANG_MEGACO bool "install megaco application" depends on BR2_PACKAGE_ERLANG
package/erlang/erlang.mk +4 -0
@@ -43,6 +43,10 @@ ERLANG_CONF_OPT += --enable-shared-zlib ERLANG_DEPENDENCIES += zlib endif +ifneq ($(BR2_PACKAGE_ERLANG_SMP),y) +ERLANG_CONF_OPT += --disable-smp-support +endif + # Remove source, example, gs and wx files from the target ERLANG_REMOVE_PACKAGES = gs wx
Signature · 1 line
1.8.3.2
PATCH 1/1 erlang: add option to enable SMP support
Hi Frank,
Quoted 4 lines · Frank Hunleth
Erlang builds two emulators depending on whether SMP is supported or not. If it is known that the target does not support SMP, turning off the SMP emulator saves compile time and reduces the size of the installation.
Missing sign-off.
Is there an option on only build (or at least install) the SMP version?
baruch
Quoted 40 lines
--- package/erlang/Config.in | 10 ++++++++++ package/erlang/erlang.mk | 4 ++++ 2 files changed, 14 insertions(+)package/erlang/Config.in +10
-0@@ -10,6 +10,16 @@ config BR2_PACKAGE_ERLANG http://www.erlang.org +config BR2_PACKAGE_ERLANG_SMP + bool "enable SMP support" + depends on BR2_PACKAGE_ERLANG + help + Erlang provides both a UP and an SMP emulator. The UP emulator + is always built, and this option enables compilation of the SMP + emulator. The choice of which emulator to use is made at runtime. + If you do not need SMP support, turning this option off reduces + compile time and the size of the Erlang installation. + config BR2_PACKAGE_ERLANG_MEGACO bool "install megaco application" depends on BR2_PACKAGE_ERLANGpackage/erlang/erlang.mk +4
-0@@ -43,6 +43,10 @@ ERLANG_CONF_OPT += --enable-shared-zlib ERLANG_DEPENDENCIES += zlib endif +ifneq ($(BR2_PACKAGE_ERLANG_SMP),y) +ERLANG_CONF_OPT += --disable-smp-support +endif + # Remove source, example, gs and wx files from the target ERLANG_REMOVE_PACKAGES = gs wx
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 -PATCH 1/1 erlang: add option to enable SMP support
Hi Baruch,
Quoted 9 lines · Baruch Siach
Hi Frank,
Quoted 4 lines · Frank Hunleth
Erlang builds two emulators depending on whether SMP is supported or not. If it is known that the target does not support SMP, turning off the SMP emulator saves compile time and reduces the size of the installation.
Missing sign-off.
Thanks for catching. Fixed in v2.
Quoted 1 line
Is there an option on only build (or at least install) the SMP version?
It doesn't appear that there's an option to only build the SMP version. It looks like if you manually delete the UP version, Erlang still works fine on an SMP system. I must admit, though, that I don't know if this will always work and I'm a little uneasy about doing it without more testing.
Frank