Merge pull request #5774 from RetiredWizard/Broadcom-long-integer-enable

Add enable long integer flags to Broadcom
This commit is contained in:
Jeff Epler 2021-12-27 06:35:10 -07:00 committed by GitHub
commit 3dcebf1085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,22 @@
# 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.
ifeq ($(LONGINT_IMPL),NONE)
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
endif
ifeq ($(LONGINT_IMPL),MPZ)
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
endif
ifeq ($(LONGINT_IMPL),LONGLONG)
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=longlong
endif
# All broadcom ports have longints.
LONGINT_IMPL = MPZ
# Typically the first module to create
CIRCUITPY_MICROCONTROLLER = 1
# Typically the second module to create