summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-03-09 15:52:55 -0500
committerJeff Epler <jepler@gmail.com>2020-03-09 15:54:40 -0500
commite128d770f15112bf6e0c91c1b38674313a60e433 (patch)
tree4b129d83724edd86a0a29ade872b98ba7a4dedcd
parent83d5da95b7d2555466dfe24c292ce9b2b7e5b597 (diff)
cdx56: prepare to enable ulab
This involves fixing support for SRC_MOD and enabling INTERNAL_LIBM including adding support for SRC_LIBM.
-rw-r--r--ports/cxd56/Makefile4
-rw-r--r--ports/cxd56/mpconfigport.mk2
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/cxd56/Makefile b/ports/cxd56/Makefile
index a0782c4e9..e2fce976d 100644
--- a/ports/cxd56/Makefile
+++ b/ports/cxd56/Makefile
@@ -176,6 +176,10 @@ OBJ = $(PY_O) $(SUPERVISOR_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_COMMON_HAL_EXPANDED:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_SHARED_MODULE_EXPANDED:.c=.o))
+ifeq ($(INTERNAL_LIBM),1)
+OBJ += $(addprefix $(BUILD)/, $(SRC_LIBM:.c=.o))
+endif
+OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o))
# List of sources for qstr extraction
SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED)
diff --git a/ports/cxd56/mpconfigport.mk b/ports/cxd56/mpconfigport.mk
index a418ae8e9..ad3d0e72d 100644
--- a/ports/cxd56/mpconfigport.mk
+++ b/ports/cxd56/mpconfigport.mk
@@ -18,3 +18,5 @@ CIRCUITPY_NEOPIXEL_WRITE = 0
CIRCUITPY_NVM = 0
CIRCUITPY_DISPLAYIO = 0
CIRCUITPY_FREQUENCYIO = 0
+
+INTERNAL_LIBM = 1