Skip to content

Commit 6363b5a

Browse files
authored
Merge pull request #2693 from jepler/ulab-enable
ulab: enable on most builds
2 parents df88939 + 03a2b2f commit 6363b5a

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

ports/atmel-samd/mpconfigport.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ endif
4040
# SAMD21 needs separate endpoint pairs for MSC BULK IN and BULK OUT, otherwise it's erratic.
4141
USB_MSC_EP_NUM_OUT = 1
4242

43+
MICROPY_PY_ULAB = 0
44+
4345
endif # samd21
4446

4547
# Put samd51-only choices here.

ports/cxd56/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ OBJ = $(PY_O) $(SUPERVISOR_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
176176
OBJ += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
177177
OBJ += $(addprefix $(BUILD)/, $(SRC_COMMON_HAL_EXPANDED:.c=.o))
178178
OBJ += $(addprefix $(BUILD)/, $(SRC_SHARED_MODULE_EXPANDED:.c=.o))
179+
ifeq ($(INTERNAL_LIBM),1)
180+
OBJ += $(addprefix $(BUILD)/, $(SRC_LIBM:.c=.o))
181+
endif
182+
OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o))
179183

180184
# List of sources for qstr extraction
181185
SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED)

ports/cxd56/mpconfigport.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ CIRCUITPY_NEOPIXEL_WRITE = 0
1818
CIRCUITPY_NVM = 0
1919
CIRCUITPY_DISPLAYIO = 0
2020
CIRCUITPY_FREQUENCYIO = 0
21+
22+
INTERNAL_LIBM = 1

ports/stm32f4/mpconfigport.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,7 @@ endif
7171

7272
CFLAGS += -DMICROPY_CPYTHON_COMPAT=1
7373

74+
MICROPY_PY_ULAB = 1
75+
7476
#ifeq ($(MCU_SUB_VARIANT), stm32f412zx)
7577
#endif

py/circuitpy_mpconfig.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ CIRCUITPY_SERIAL_UART = 0
339339
endif
340340
CFLAGS += -DCIRCUITPY_SERIAL_UART=$(CIRCUITPY_SERIAL_UART)
341341

342+
# ulab numerics library
343+
ifndef MICROPY_PY_ULAB
344+
MICROPY_PY_ULAB = $(CIRCUITPY_FULL_BUILD)
345+
endif
346+
342347
# Enabled micropython.native decorator (experimental)
343348
ifndef CIRCUITPY_ENABLE_MPY_NATIVE
344349
CIRCUITPY_ENABLE_MPY_NATIVE = 0

0 commit comments

Comments
 (0)