From patchwork Tue Aug 20 18:40:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1150323 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nS4vMhSs"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46CfkB6Lhsz9s7T for ; Wed, 21 Aug 2019 04:40:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 513AF88360; Tue, 20 Aug 2019 18:40:29 +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 rR7ZoZqAaEPr; Tue, 20 Aug 2019 18:40:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A3C6F88383; Tue, 20 Aug 2019 18:40:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id E39C91BF307 for ; Tue, 20 Aug 2019 18:40:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DF9C08692E for ; Tue, 20 Aug 2019 18:40:25 +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 iKu1oc1KgVsP for ; Tue, 20 Aug 2019 18:40:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 1ECD28688B for ; Tue, 20 Aug 2019 18:40:25 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id d16so3543230wme.2 for ; Tue, 20 Aug 2019 11:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jAc6irlct20IZQ7TwgeHhBwi+FFvEPsUNNc7XGNcc9Y=; b=nS4vMhSsiCt5uDPKCvwcS6TcLipueqBxvML0fQSyOEFbGjTrbAhHTkcWNO8nLHb4cF AVfDVpzJ5iyct9RqJhVaeXiw+NTjJKFBk0njlOhRApxrhApvtJ+AfvnCpaY0DDsFw+Ac /a3GNhZiHw35qmqv03us6r4EsLUhL5OVTqFfXp34xdOraOqZIjqerXEukgn0Y6wMnQp+ DZPzk7gelncICE1JzY4cv+UjbyzlXW7LapowM+xIhrQqY66fVa5ibFD73Viisd1MpjgH eVgZG2DDZyl21yXunFqgU7bhkNjH/9LbYHOm0aVWYKqBb4u3om8Ab1hmoxZ5QxfgglTD 4LMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jAc6irlct20IZQ7TwgeHhBwi+FFvEPsUNNc7XGNcc9Y=; b=O53Fqh15ji8u0XIKk8dbJRnvKxL97S1ducFhOLsdrvUdWNgqaZJ216Mip+zCJoWjL8 8dHV04w2GqYWNauIxSy+WxMyb1OJsh2x0ZxmsBCFfiswe2cZQEkZ3EQ3XwwrOprR4ntW eVpwhhG70USmvCZ+6rO0D7fcxAVOYZ33PFy6yobYsfGncIi0UMr69Aapi57PglaJxOtH uQuWLREuxKiQk2e7M6/ACe/j000Lks/XpesN/fbBy6lOUpBtYuslXArfypu70C6XuSuo 6vB3Av57foHXuT3cRp9dDeQmLCwsxEdJ/VrWLTrTxScZ+3Jx4tUpZLBPcjJXbD7J4PcT 5Qhg== X-Gm-Message-State: APjAAAX4t8HRN+6YvoFLF7KGHTLSvOZOXZde5JX/xDM18FfQ4Gkyxmtv Xv6OXXDuo7FVNwtDVGuaOvG/0BVK X-Google-Smtp-Source: APXvYqxKxDaV05SMPJeskz8Lwbj/ukHJGoqHl5fLQjg1GSwIfk6JzEz0LKnzFMeFGcZLWKZkD+Oh5g== X-Received: by 2002:a1c:eb06:: with SMTP id j6mr1579877wmh.76.1566326423104; Tue, 20 Aug 2019 11:40:23 -0700 (PDT) Received: from kali.home (lfbn-ren-1-605-248.w81-53.abo.wanadoo.fr. [81.53.181.248]) by smtp.gmail.com with ESMTPSA id c11sm15991616wrt.25.2019.08.20.11.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 11:40:22 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 20 Aug 2019 20:40:39 +0200 Message-Id: <20190820184039.28611-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/opencv3: disable NEON and VFPv3 options X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Commit a17402e42d8c996af239cfdb536e74188d6c6245 has conditionally enabled NEON and VFPv3 optimizations. However these options are passing -mfpu=neon or -mfpu=vfpv3 to the compiler which raise issues on some targets such as Cortex-A5 with VFPv4-D16 enabled but without NEON and VFPv4. So disable these options as buildroot is already passing -mfpu Fixes: - https://bugs.buildroot.org/show_bug.cgi?id=11996 Signed-off-by: Fabrice Fontaine --- package/opencv3/opencv3.mk | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk index 91efa5c912..d3e795aae1 100644 --- a/package/opencv3/opencv3.mk +++ b/package/opencv3/opencv3.mk @@ -109,17 +109,13 @@ OPENCV3_CONF_OPTS += \ # Hardware support options. # -# * PowerPC support is turned off since its only effect is altering CFLAGS, -# adding '-mcpu=G3 -mtune=G5' to them, which is already handled by Buildroot. +# * PowerPC, NEON and VFPv3 support are turned off since their only effects are +# altering CFLAGS, adding '-mcpu=G3 -mtune=G5', '-mfpu=neon' or '-mfpu=vfpv3' +# to them, which is already handled by Buildroot. OPENCV3_CONF_OPTS += \ -DENABLE_POWERPC=OFF \ - -DENABLE_NEON=$(if $(BR2_ARM_CPU_HAS_NEON),ON,OFF) - -ifeq ($(BR2_ARCH_IS_64):$(BR2_ARM_CPU_HAS_VFPV3),:y) -OPENCV3_CONF_OPTS += -DENABLE_VFPV3=ON -else -OPENCV3_CONF_OPTS += -DENABLE_VFPV3=OFF -endif + -DENABLE_NEON=OFF \ + -DENABLE_VFPV3=OFF # Cuda stuff OPENCV3_CONF_OPTS += \