Skip to content

Commit 13a9c44

Browse files
authored
Merge pull request adafruit#2171 from hierophect/stm32-find-fix
STM32: fix illegal option error on mac builds
2 parents 19c6c96 + 7cea078 commit 13a9c44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ports/stm32f4/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,10 @@ SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE))
222222
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
223223

224224

225-
225+
ifneq ($(FROZEN_MPY_DIR),)
226226
FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py')
227227
FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/,$(FROZEN_MPY_PY_FILES:.py=.mpy))
228+
endif
228229

229230
OBJ += $(PY_O) $(SUPERVISOR_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
230231
OBJ += $(addprefix $(BUILD)/, $(SRC_STM32:.c=.o))

0 commit comments

Comments
 (0)