Skip to content

Commit 4683619

Browse files
Add long integer flags to enable
Code stolen from raspberrypi port
1 parent 605753c commit 4683619

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ports/broadcom/mpconfigport.mk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
2+
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
3+
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
4+
5+
ifeq ($(LONGINT_IMPL),NONE)
6+
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
7+
endif
8+
9+
ifeq ($(LONGINT_IMPL),MPZ)
10+
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
11+
endif
12+
13+
ifeq ($(LONGINT_IMPL),LONGLONG)
14+
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=longlong
15+
endif
16+
17+
# All broadcom ports have longints.
18+
LONGINT_IMPL = MPZ
19+
120
# Typically the first module to create
221
CIRCUITPY_MICROCONTROLLER = 1
322
# Typically the second module to create

0 commit comments

Comments
 (0)