2017-07-15 17:03:24 -04:00
|
|
|
# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
|
|
|
|
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
|
|
|
|
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
|
2017-10-31 18:46:42 -04:00
|
|
|
ifeq ($(CHIP_FAMILY), samd21)
|
2017-07-15 17:03:24 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
|
2017-10-31 18:46:42 -04:00
|
|
|
endif
|
2017-10-23 12:29:17 -04:00
|
|
|
|
2017-10-31 18:46:42 -04:00
|
|
|
ifeq ($(CHIP_FAMILY), samd51)
|
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
|
|
|
|
endif
|
2017-10-23 12:29:17 -04:00
|
|
|
|
2017-10-31 18:46:42 -04:00
|
|
|
INTERNAL_LIBM = 1
|