diff options
| author | kaasasolut <git@kaasa.com> | 2018-02-02 09:29:55 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-07-18 17:12:25 +1000 |
| commit | c1cd7e5155c7dccac60985f2758951199eaf8b74 (patch) | |
| tree | a5b539e1abf9fde5ceac7784d9e0a84e87b4a054 | |
| parent | 725267df091f1620e4be98f4f8521fbaa4d1f575 (diff) | |
nrf: Only search for frozen files if FROZEN_MPY_DIR is set
| -rw-r--r-- | ports/nrf/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 25076020d..cffbbefe1 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -206,8 +206,10 @@ SRC_C += \ device/$(MCU_VARIANT)/system_$(MCU_SUB_VARIANT).c \ device/$(MCU_VARIANT)/startup_$(MCU_SUB_VARIANT).c \ +ifneq ($(FROZEN_MPY_DIR),) FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py') FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/,$(FROZEN_MPY_PY_FILES:.py=.mpy)) +endif OBJ += $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_LIB:.c=.o)) |
