From patchwork Wed Sep 23 23:43:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 521899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 58959140216 for ; Thu, 24 Sep 2015 09:44:30 +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=ZXQ1xI3J; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9E9C795987; Wed, 23 Sep 2015 23:44: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 Pxj7O3ZQPbej; Wed, 23 Sep 2015 23:44:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 658B9958DC; Wed, 23 Sep 2015 23:44:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D8CC31C1009 for ; Wed, 23 Sep 2015 23:44:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D3A8629A5D for ; Wed, 23 Sep 2015 23:44:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ehw3E8ugeBq for ; Wed, 23 Sep 2015 23:44:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by silver.osuosl.org (Postfix) with ESMTPS id 4B63B27575 for ; Wed, 23 Sep 2015 23:44:23 +0000 (UTC) Received: by padhy16 with SMTP id hy16so54037389pad.1 for ; Wed, 23 Sep 2015 16:44:23 -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=iiKM56F5AnxhhFH3tejLyQ3kAi+HDnDqZZ5m3L/eCbs=; b=ZXQ1xI3JUXTfqdgnrnNXJMI4sThORTnYtAvoAqM3eu+M3g18uI82i4qglf2CnVPpv+ Wd0UBBcJ0Y8dLqd+mjz2/FxkeG6pja8BJ6wsaZfKXVJJHS6nxwZPzM6cF1+h1g0IfBCb Nh7LwvsH+a/bgoHT5X6/mIbarA124OFIDOQclfBVbCmn0ZBMQHBSvmr5HfJJojRnCZbS MoJ+Azuw7Ibc04IHjM+W+i59mB5lJ05fqgU+UHtnoZ17Hl6H3VpMBNMa6tFg3HNq1yKh iu6rPmjun1Jpfejit13zGtAV1BmHoVGjzJpYxmzDkbKI8+DKqhzy5B1RkC2NyVaQ2TYd HEcQ== X-Received: by 10.66.251.136 with SMTP id zk8mr40890049pac.143.1443051862961; Wed, 23 Sep 2015 16:44:22 -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 fb1sm1024541pab.9.2015.09.23.16.44.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Sep 2015 16:44:22 -0700 (PDT) From: Chris Packham To: buildroot@buildroot.org Date: Thu, 24 Sep 2015 11:43:49 +1200 Message-Id: <1443051831-8292-2-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1443051831-8292-1-git-send-email-judge.packham@gmail.com> References: <1443051831-8292-1-git-send-email-judge.packham@gmail.com> Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCHv3 1/3] micropython: Invert fallback detection logic 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" Rather than specifying architectures that do not have explicit support in micropython invert the logic and set MICROPY_GCREGS_SETJMP=1 if the architecture does not have explicit support. MIPS is listed as being supported but this support consists of automatically defining MICROPY_GCREGS_SETJMP 1 based on __mips__ being defined. Signed-off-by: Chris Packham --- This should clean up most of the remaining build failures. Listing the architectures with explicit support makes more sense to me and is certainly a shorter list at the moment. Changes since v1: - Use positive logic ifeq(,) instead of ifneq(,y) Changes since v2: - none 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 7ae88a0..1358864 100644 --- a/package/micropython/micropython.mk +++ b/package/micropython/micropython.mk @@ -15,7 +15,7 @@ MICROPYTHON_PATCH = \ # Use fallback implementation for exception handling on architectures that don't # have explicit support. -ifeq ($(BR2_powerpc)$(BR2_sh)$(BR2_xtensa),y) +ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),) MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1 endif