* [Buildroot] [PATCH] micropython: Invert fallback detection logic
@ 2015-09-21 0:03 Chris Packham
2015-09-21 3:31 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Chris Packham @ 2015-09-21 0:03 UTC (permalink / raw)
To: 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 <judge.packham@gmail.com>
---
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.
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 f2ad5bf..e351843 100644
--- a/package/micropython/micropython.mk
+++ b/package/micropython/micropython.mk
@@ -13,7 +13,7 @@ MICROPYTHON_PATCH = https://github.com/micropython/micropython/commit/8b4fb4fe14
# Use fallback implementation for exception handling on architectures that don't
# have explicit support.
-ifeq ($(BR2_powerpc)$(BR2_sh)$(BR2_xtensa),y)
+ifneq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),y)
MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1
endif
--
2.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] micropython: Invert fallback detection logic
2015-09-21 0:03 [Buildroot] [PATCH] micropython: Invert fallback detection logic Chris Packham
@ 2015-09-21 3:31 ` Baruch Siach
2015-09-21 4:27 ` [Buildroot] [PATCHv2] " Chris Packham
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2015-09-21 3:31 UTC (permalink / raw)
To: buildroot
Hi Chris,
On Mon, Sep 21, 2015 at 12:03:02PM +1200, Chris Packham wrote:
> 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 <judge.packham@gmail.com>
> ---
> 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.
>
> 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 f2ad5bf..e351843 100644
> --- a/package/micropython/micropython.mk
> +++ b/package/micropython/micropython.mk
> @@ -13,7 +13,7 @@ MICROPYTHON_PATCH = https://github.com/micropython/micropython/commit/8b4fb4fe14
>
> # Use fallback implementation for exception handling on architectures that don't
> # have explicit support.
> -ifeq ($(BR2_powerpc)$(BR2_sh)$(BR2_xtensa),y)
> +ifneq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),y)
We prefer positive logic, like (untested):
ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),)
baruch
> MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1
> endif
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCHv2] micropython: Invert fallback detection logic
2015-09-21 3:31 ` Baruch Siach
@ 2015-09-21 4:27 ` Chris Packham
0 siblings, 0 replies; 3+ messages in thread
From: Chris Packham @ 2015-09-21 4:27 UTC (permalink / raw)
To: 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 <judge.packham@gmail.com>
---
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)
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 f2ad5bf..f8f1e80 100644
--- a/package/micropython/micropython.mk
+++ b/package/micropython/micropython.mk
@@ -13,7 +13,7 @@ MICROPYTHON_PATCH = https://github.com/micropython/micropython/commit/8b4fb4fe14
# 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
--
2.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-21 4:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 0:03 [Buildroot] [PATCH] micropython: Invert fallback detection logic Chris Packham
2015-09-21 3:31 ` Baruch Siach
2015-09-21 4:27 ` [Buildroot] [PATCHv2] " Chris Packham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox