From patchwork Fri Dec 7 12:06: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: 204467 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 6D9F82C00C6 for ; Fri, 7 Dec 2012 23:06:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 282C5101CA4; Fri, 7 Dec 2012 12:06:28 +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 JPyIu3kNBTnv; Fri, 7 Dec 2012 12:06:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8EA6A101C41; Fri, 7 Dec 2012 12:06:25 +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 CA3248F753 for ; Fri, 7 Dec 2012 12:06:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7CA588C313 for ; Fri, 7 Dec 2012 12:06:32 +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 rfBV1ryrVryH for ; Fri, 7 Dec 2012 12:06:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9AF2981617 for ; Fri, 7 Dec 2012 12:06:30 +0000 (UTC) Received: from asgard (host201.201-252-64.telecom.net.ar [201.252.64.201]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id qB7C6MiC030761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Dec 2012 12:06:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1354881987; bh=n1JAhWiT1OCo0uZQ9whTlmaRp/XUR0qBv6FsvVzS6QE=; h=From:To:Cc:Subject:Date; b=GPSESw62sDlMJvUf8Sn9WEA16G64OJo/jDBX+ytOXWuv/P0/vrpytwtFUzKgUcJui MIjvzJzj85pkcrMPmd8BvkB5uOcQer/pSQXUNqP3zpEii86yD/yu91Rn09s9nPIGzY vrd8MKWzHv2xmhZCMROl3hs33LzNnQp2ELxOl/MM= Received: by asgard (sSMTP sendmail emulation); Fri, 07 Dec 2012 09:06:21 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Fri, 7 Dec 2012 09:06:20 -0300 Message-Id: <1354881980-24101-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: fix runtime failure on some powerpc variants 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 OpenSSL's assembly optimizations por PowerPC seem to be broken for at least 4xx cores. Thanks go to Jan Schunke for reporting and testing. Signed-off-by: Gustavo Zacarias --- package/openssl/openssl.mk | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk index 265a4fb..160df2e 100644 --- a/package/openssl/openssl.mk +++ b/package/openssl/openssl.mk @@ -38,8 +38,11 @@ endif endif endif ifeq ($(ARCH),powerpc) +# 4xx cores seem to have trouble with openssl's ASM optimizations +ifeq ($(BR2_powerpc_401)$(BR2_powerpc_403)$(BR2_powerpc_405)$(BR2_powerpc_405fp)$(BR2_powerpc_440)$(BR2_powerpc_440fp),) OPENSSL_TARGET_ARCH = ppc endif +endif ifeq ($(ARCH),x86_64) OPENSSL_TARGET_ARCH = x86_64 endif