From patchwork Thu Dec 12 14:01:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 300666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 5697F2C007C for ; Fri, 13 Dec 2013 01:09:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 47929857A3; Thu, 12 Dec 2013 14:09:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cAs2qmzIPjxA; Thu, 12 Dec 2013 14:09:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EFDE581E67; Thu, 12 Dec 2013 14:09:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 73E6E1BFA70 for ; Thu, 12 Dec 2013 14:09:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6FA2B8BDE6 for ; Thu, 12 Dec 2013 14:09:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RQT8tDCRfyQU for ; Thu, 12 Dec 2013 14:09:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by whitealder.osuosl.org (Postfix) with ESMTPS id 723CF83815 for ; Thu, 12 Dec 2013 14:09:22 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id o15so1682801qap.3 for ; Thu, 12 Dec 2013 06:09:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PKn54YeGBhjvNj/MmoRwNHAolr8HeGAXbMcf2xQS9l8=; b=Pbvdu3jKN6cbJRMudl4z1RtfHlw4t+3Up4eZeT/9Dq+De9BTKKcWM6zYXC2Ry2jgIr g/j4NasikZdx6/wm+IMkbRLKqGMVu/j5Sn0OuEKc5OYy8vUhdrlpgvKJY6p/CJeJbqlE R+djDOZpQ7XDa+0910Wt7tdeWR9c0xddHadupxWgqDDTyvQF87zJcgzwYFeBGdLOzhNS PtvrBz0YUddQdHpNSLEg06Mln3iqJEF8pcixTZ7WuxbF3jPIi0Ypawd4stUHAg0EyAcT 7GngkYm/cwqZ1SXx1HgBYlnO41O5g5ELs7DmcLHvWhVY4BzSXuDINTdzrKNj1Fsbr9MB MNfw== X-Gm-Message-State: ALoCoQmJ3YT9/uf/ZpI52KYc0NGKMR0zcG8N2MFqtdqARPmXg6TUT6BunlefU4HnFE/+FbaKSGv7 X-Received: by 10.229.13.133 with SMTP id c5mr6043022qca.22.1386856927910; Thu, 12 Dec 2013 06:02:07 -0800 (PST) Received: from halfmarathon.home.hunleth.com (c-68-50-186-80.hsd1.dc.comcast.net. [68.50.186.80]) by mx.google.com with ESMTPSA id z16sm56894058qab.3.2013.12.12.06.02.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Dec 2013 06:02:06 -0800 (PST) From: Frank Hunleth To: buildroot@busybox.net Date: Thu, 12 Dec 2013 09:01:42 -0500 Message-Id: <1386856902-23162-1-git-send-email-fhunleth@troodon-software.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCH] erlang: add option to enable SMP support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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(+) 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