package/micropython: use append-assignment in conditional code
Since its inception in9646e80fca(micropython: new package), the ppc-specific CFLAGS are simply assigned, and since9fd9f4e675(package/micropython: define MICROPY_NLR_SETJMP for xtensa), the same goes for the xtensa CFLAGS. Although they are mutually exclusive (different archs) and that there is no prior assignment, the customs are to use append assignment in conditional blocks, to avoid accidentally overwriting a valure set previously. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Chris Packham <judge.packham@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
ab906018c9
commit
be4fb117bc
@@ -21,12 +21,12 @@ MICROPYTHON_IGNORE_CVES += CVE-2024-8947
|
||||
# Use fallback implementation for exception handling on architectures that don't
|
||||
# have explicit support.
|
||||
ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),)
|
||||
MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1
|
||||
MICROPYTHON_CFLAGS += -DMICROPY_GCREGS_SETJMP=1
|
||||
endif
|
||||
|
||||
# xtensa has problems with nlr_push, use setjmp based implementation instead
|
||||
ifeq ($(BR2_xtensa),y)
|
||||
MICROPYTHON_CFLAGS = -DMICROPY_NLR_SETJMP=1
|
||||
MICROPYTHON_CFLAGS += -DMICROPY_NLR_SETJMP=1
|
||||
endif
|
||||
|
||||
# https://github.com/micropython/micropython/issues/14115
|
||||
|
||||
Reference in New Issue
Block a user