summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-22 11:15:48 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-22 12:48:51 +1100
commit9df6451ec588e0e9bbd2e0f0eb2f177c01abd0f9 (patch)
treeeff7278dd69b32df0391242e0fee794b89175fd1
parent8ca469cae299f8e93dfe721bb915adb217dc4cfe (diff)
ports/{bare-arm,minimal}/Makefile: Only build with core source files.
These ports don't need anything from extmod so don't include those files at all in the build. This speeds up the build by about 10% when building with a single core.
-rw-r--r--ports/bare-arm/Makefile2
-rw-r--r--ports/minimal/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/bare-arm/Makefile b/ports/bare-arm/Makefile
index 0fcd5d027..a515db80e 100644
--- a/ports/bare-arm/Makefile
+++ b/ports/bare-arm/Makefile
@@ -36,7 +36,7 @@ SRC_S = \
# startup_stm32f40xx.s \
gchelper.s \
-OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o))
+OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o))
all: $(BUILD)/firmware.elf
diff --git a/ports/minimal/Makefile b/ports/minimal/Makefile
index ae295d655..e97fb16d8 100644
--- a/ports/minimal/Makefile
+++ b/ports/minimal/Makefile
@@ -47,7 +47,7 @@ SRC_C = \
lib/mp-readline/readline.c \
$(BUILD)/_frozen_mpy.c \
-OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
+OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
ifeq ($(CROSS), 1)
all: $(BUILD)/firmware.dfu