Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] erlang: add option to enable SMP support
@ 2013-12-12 15:09 Frank Hunleth
  2013-12-12 22:37 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Hunleth @ 2013-12-12 15:09 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
Changes v1 -> v2:
  - added sign-off

 package/erlang/Config.in | 10 ++++++++++
 package/erlang/erlang.mk |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/package/erlang/Config.in b/package/erlang/Config.in
index 27206f3..9edb90b 100644
--- a/package/erlang/Config.in
+++ b/package/erlang/Config.in
@@ -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
diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
index 32d18e4..67010a2 100644
--- a/package/erlang/erlang.mk
+++ b/package/erlang/erlang.mk
@@ -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
 
-- 
1.8.3.2

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

end of thread, other threads:[~2013-12-12 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12 15:09 [Buildroot] [PATCH v2] erlang: add option to enable SMP support Frank Hunleth
2013-12-12 22:37 ` Arnout Vandecappelle

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