Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02DCEC64ED6 for ; Tue, 28 Feb 2023 15:37:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 98D84611D0; Tue, 28 Feb 2023 15:37:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 98D84611D0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zr48Zl9l6Doz; Tue, 28 Feb 2023 15:37:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id C1516611C9; Tue, 28 Feb 2023 15:37:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C1516611C9 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 475A41BF2AA for ; Tue, 28 Feb 2023 15:36:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1F4F661171 for ; Tue, 28 Feb 2023 15:36:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1F4F661171 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I6fuNNPVHFZd for ; Tue, 28 Feb 2023 15:36:29 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp3.osuosl.org (Postfix) with ESMTP id 3F0676117B for ; Tue, 28 Feb 2023 15:36:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3F0676117B Received: by busybox.osuosl.org (Postfix, from userid 4053) id 2F57186CCC; Tue, 28 Feb 2023 15:36:29 +0000 (UTC) From: Peter Korsgaard To: buildroot@buildroot.org Date: Tue, 28 Feb 2023 16:33:13 +0100 X-Git-Refname: refs/heads/2022.02.x X-Git-Oldrev: 4070181b570640876d1966015cac22757ab50e7e X-Git-Newrev: 3430a8c853cce5cab1c7bb7a9975fd494b3e1ee8 X-Patchwork-Hint: ignore Message-Id: <20230228153629.2F57186CCC@busybox.osuosl.org> Subject: [Buildroot] [git commit branch/2022.02.x] package/wolfssl: handle ARM Thumb situation X-BeenThere: buildroot@buildroot.org 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" commit: https://git.buildroot.net/buildroot/commit/?id=3430a8c853cce5cab1c7bb7a9975fd494b3e1ee8 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x By default on ARM32, wolfssl uses assembly instructions that are not supported on Thumb (original Thumb, not Thumb 2), causing a build failure: /tmp/ccgn33X7.s:299: Error: selected processor does not support `umlal r4,r5,r10,ip' in Thumb mode /tmp/ccgn33X7.s:386: Error: instruction not supported in Thumb16 mode -- `adds r4,r4,r6' /tmp/ccgn33X7.s:387: Error: unshifted register required -- `adc r3,r3,#0' /tmp/ccgn33X7.s:395: Error: instruction not supported in Thumb16 mode -- `adds r4,r4,r6' Fix that by passing --with-arm-target=thumb, which tells wolfssl to use a different set of assembly routines. Fixes: http://autobuild.buildroot.net/results/907/907a5967439c3157c426023b0be1e613092d7bfe/ Signed-off-by: Thomas Petazzoni (cherry picked from commit f79a9c775ff0a59027f274a237d98b5f8d31c022) Signed-off-by: Peter Korsgaard --- package/wolfssl/wolfssl.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/wolfssl/wolfssl.mk b/package/wolfssl/wolfssl.mk index f415e11bb5..8f6cba56ec 100644 --- a/package/wolfssl/wolfssl.mk +++ b/package/wolfssl/wolfssl.mk @@ -43,4 +43,8 @@ else WOLFSSL_CONF_OPTS += --disable-armasm endif +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y) +WOLFSSL_CONF_OPTS += --with-arm-target=thumb +endif + $(eval $(autotools-package)) _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot