From patchwork Tue Oct 16 11:59:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 191793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 63E322C008B for ; Tue, 16 Oct 2012 22:59:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 042E430937; Tue, 16 Oct 2012 11:59:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TYyhC4lXRQ0o; Tue, 16 Oct 2012 11:59:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7A65D20684; Tue, 16 Oct 2012 11:59:36 +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 431C38F74A for ; Tue, 16 Oct 2012 11:59:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3BF0F8081A for ; Tue, 16 Oct 2012 11:59:34 +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 kbGWdWDVHoUM for ; Tue, 16 Oct 2012 11:59:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [85.10.205.246]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7146385BC5 for ; Tue, 16 Oct 2012 11:59:30 +0000 (UTC) Received: from asgard (host50.186-109-29.telecom.net.ar [186.109.29.50]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id q9GBxMUr027501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Oct 2012 11:59:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1350388767; bh=GO450LcvLWCUz52pQx1QcLiqgndWizcqtUuCsanKzpY=; h=From:To:Cc:Subject:Date; b=gvFzzNQXfF21oD0SOQATLtvtE4qGvWheJiPrP+y8Umt+xWYiGzv8ixJVok/yQYIYx l2rUy9Y/Xq1fo6s+eEhGUtosxVvNA+tYDkmBVST10N/+RdfjJmkAU9F5yGI7/bTlDt 4tILUy5xrwSK/HEXOzFLAX/xCoEXUJsrMQw5JUpo= Received: by asgard (sSMTP sendmail emulation); Tue, 16 Oct 2012 08:59:20 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Tue, 16 Oct 2012 08:59:20 -0300 Message-Id: <1350388760-5447-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.8.6 X-Virus-Scanned: clamav-milter 0.97.5 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] openssl: disable apps for NOMMU 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 The openssl binary uses fork() so disable the option and build for !MMU. Fixes http://autobuild.buildroot.net/results/45a9b84c16caadbf77b6fc43d7a0001c981a4c87/build-end.log Signed-off-by: Gustavo Zacarias --- package/openssl/Config.in | 2 ++ package/openssl/openssl.mk | 9 +++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/package/openssl/Config.in b/package/openssl/Config.in index 6ba644a..2187023 100644 --- a/package/openssl/Config.in +++ b/package/openssl/Config.in @@ -12,6 +12,8 @@ config BR2_PACKAGE_OPENSSL config BR2_PACKAGE_OPENSSL_BIN bool "openssl binary" depends on BR2_PACKAGE_OPENSSL + # uses fork() + depends on BR2_USE_MMU help Install the openssl binary to the target file system. This is a command line tool for doing various crypthographic stuff. diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk index 0917344..d283046 100644 --- a/package/openssl/openssl.mk +++ b/package/openssl/openssl.mk @@ -13,6 +13,15 @@ OPENSSL_DEPENDENCIES = zlib OPENSSL_TARGET_ARCH = generic32 OPENSSL_CFLAGS = $(TARGET_CFLAGS) +ifeq ($(BR2_USE_MMU),) +define OPENSSL_DISABLE_APPS + $(SED) '/^build_apps/! s/build_apps//' $(@D)/Makefile.org + $(Q)touch $(@D)/apps/openssl +endef +endif + +OPENSSL_PRE_CONFIGURE_HOOKS += OPENSSL_DISABLE_APPS + ifeq ($(BR2_PACKAGE_OPENSSL_OCF),y) OPENSSL_CFLAGS += -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS OPENSSL_DEPENDENCIES += ocf-linux