diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-09-20 10:19:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-20 10:19:58 -0700 |
| commit | 13a9c446ee43c5d36078cbbfb69a53497f669cfc (patch) | |
| tree | 42b11aec695b626445bad1b35ca0440d5e35a47e | |
| parent | 19c6c96929a8efd4694bd9148f8251a61bc33907 (diff) | |
| parent | 7cea0784946d57e8fe8c2c6b8ef08161016c3c48 (diff) | |
Merge pull request #2171 from hierophect/stm32-find-fix
STM32: fix illegal option error on mac builds
| -rwxr-xr-x | ports/stm32f4/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32f4/Makefile b/ports/stm32f4/Makefile index 89c515b89..5c80f2aa7 100755 --- a/ports/stm32f4/Makefile +++ b/ports/stm32f4/Makefile @@ -222,9 +222,10 @@ SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE)) $(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL)) - +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) $(SUPERVISOR_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_STM32:.c=.o)) |
