From patchwork Fri Sep 18 09:19:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 519200 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 532611401B5 for ; Fri, 18 Sep 2015 19:19:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=qKYVvEKt; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5F70D8B464; Fri, 18 Sep 2015 09:19:54 +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 EEilSuftgJD2; Fri, 18 Sep 2015 09:19:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4910D88542; Fri, 18 Sep 2015 09:19:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id BBCF21BFC00 for ; Fri, 18 Sep 2015 09:19:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B522794DDF for ; Fri, 18 Sep 2015 09:19:52 +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 kCpV73Bexv-V for ; Fri, 18 Sep 2015 09:19:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3F35A94DD7 for ; Fri, 18 Sep 2015 09:19:52 +0000 (UTC) Received: by pacfv12 with SMTP id fv12so47033698pac.2 for ; Fri, 18 Sep 2015 02:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5/Odm08+db2AziaDX3O9gvblhU35/A4oVaCgBEz+QQY=; b=qKYVvEKtdYSPZspmi7zjGG5UfoaUKPNSNg1c4YJdieeaMACf7Hv17VqDtjY/EnOQZ/ ItbeveZm3bo/IWXkZPg0H/UtP+xjAaNdzcTyHMSTOnfk67bW/yYyfTepCg7C7AW+088T XDVT5x+BdYI3NbphtqQS3Vyfrv8duFX1/pE7YY0UvjOGuiNhf351PZPI06QRQFvYznqV mCnsXvXUh5tcIoWWVPIc8zctO3KzGRuXRlNab9nPM+MdKyfV/W9KxeEPrpg0eKL84BvP dYpmU65P16pqlub9WORdFyBnU+vulskLe6n5aslhiRxQcwSE+Oq+C5Jtp567QUOhbOE/ aFVg== X-Received: by 10.67.7.71 with SMTP id da7mr6147892pad.69.1442567991661; Fri, 18 Sep 2015 02:19:51 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by smtp.gmail.com with ESMTPSA id v6sm4261235pbs.40.2015.09.18.02.19.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Sep 2015 02:19:51 -0700 (PDT) From: Chris Packham To: buildroot@buildroot.org Date: Fri, 18 Sep 2015 21:19:35 +1200 Message-Id: <1442567975-11176-1-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: References: Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH] micropython: Set MICROPY_GCREGS_SETJMP=1 for xtensa and sh 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" These architectures don't have explicit exception handling support in micropython but can use the setjmp fallback behaviour instead. Signed-off-by: Chris Packham --- package/micropython/micropython.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/micropython/micropython.mk b/package/micropython/micropython.mk index 2d7c924..6266882 100644 --- a/package/micropython/micropython.mk +++ b/package/micropython/micropython.mk @@ -12,7 +12,7 @@ MICROPYTHON_DEPENDENCIES = host-pkgconf libffi # Use fallback implementation for exception handling on architectures that don't # have explicit support. -ifeq ($(BR2_powerpc),y) +ifeq ($(BR2_powerpc)$(BR2_sh)$(BR2_xtensa),y) MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1 endif