Sfoglia il codice sorgente

micropython: Set MICROPY_GCREGS_SETJMP=1 for xtensa and sh

These architectures don't have explicit exception handling support in
micropython but can use the setjmp fallback behaviour instead.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Chris Packham 10 anni fa
parent
commit
4685485ef7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      package/micropython/micropython.mk

+ 1 - 1
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