From patchwork Sat Dec 27 18:16:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 424242 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 3D3EF1400DE for ; Sun, 28 Dec 2014 05:16:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 752A9869B0; Sat, 27 Dec 2014 18:16:17 +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 K0uUivP6Oa7k; Sat, 27 Dec 2014 18:16:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5264D859CF; Sat, 27 Dec 2014 18:16:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8FCE11C2821 for ; Sat, 27 Dec 2014 18:16:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8AEF6852E2 for ; Sat, 27 Dec 2014 18:16:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TPgHoPAyWFrP for ; Sat, 27 Dec 2014 18:16:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by hemlock.osuosl.org (Postfix) with ESMTPS id C002F848BE for ; Sat, 27 Dec 2014 18:16:12 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id l15so18987941wiw.16 for ; Sat, 27 Dec 2014 10:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ivsgDBIIT+8sZWOQ867pZmcHE9bPhKM7h4aZ5MR9qqc=; b=fr64shSkEmUjoF5JO6EvsfnlGfq/EzixZQiuCblPKvHXI7qKEjx1b6GpQvwuSbjK3u LCGtUYhyfIGZ3B2LXTHaa3OauvcKJUIx7lbV9vdX2V1oNrAAw0yVepEWJE6vXP3LglKm apOKBzcNMJp5rcOkm8xQWhOAEWfmBlAjx54JgfL0CKhYnW55cYQGQ2ZYqJSDb5JP27qX cPq1oQOCO/dxTxRVqR8o2hi/oqRYihcs6nH8xy9wY5/5GcBWZ3zmLEN1x8XbPq4kRPyi fBEl0sjx/lvAboSIzuF8tnvoUUk8qEFMjIbO3f5QUUyK/1fjX3AmzP6pBL5dFTNBdb5E SANA== X-Received: by 10.194.60.70 with SMTP id f6mr55175884wjr.109.1419704171494; Sat, 27 Dec 2014 10:16:11 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id ww4sm22881592wjc.47.2014.12.27.10.16.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Dec 2014 10:16:10 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 27 Dec 2014 19:16:07 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/2] package/freerdp: do not use SSE2 extensions when not available X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Do not let FreeRDP decide whether it can use SE2 opcodes, it may well fail to do so, because the heuristic is not working for cross-compilation. Also, we do have a Kconfig option stating whether we have SSE2 or not, so reuse that. Similar to the recent ARM+Neon fix. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- package/freerdp/freerdp.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/freerdp/freerdp.mk b/package/freerdp/freerdp.mk index c9396b5..a703500 100644 --- a/package/freerdp/freerdp.mk +++ b/package/freerdp/freerdp.mk @@ -69,4 +69,10 @@ else FREERDP_CONF_OPTS += -DWITH_NEON=OFF endif +ifeq ($(BR2_X86_CPU_HAS_SSE2),y) +FREERDP_CONF_OPTS += -DWITH_SSE2=ON +else +FREERDP_CONF_OPTS += -DWITH_SSE2=OFF +endif + $(eval $(cmake-package))