summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2016-11-14 13:15:45 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2016-11-18 16:18:12 -0800
commit3cfa5b993da0668f3b5d7c958c56b8a8b596c163 (patch)
tree895f3b8414443352a121567f6fb96a326abbffc0 /py
parent6e30b8ea9249d796cad440e84e92db280de8a911 (diff)
py: Change frozen build to not use -printf which isn't available on Mac OSX.
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index ea647e86f..a5c1fe9f6 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -6,7 +6,7 @@ endif
# This file expects that OBJ contains a list of all of the object files.
# The directory portion of each object file is used to locate the source
-# and should not contain any ..'s but rather be relative to the top of the
+# and should not contain any ..'s but rather be relative to the top of the
# tree.
#
# So for example, py/map.c would have an object file name py/map.o
@@ -108,7 +108,7 @@ endif
ifneq ($(FROZEN_MPY_DIR),)
# make a list of all the .py files that need compiling and freezing
-FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py' -printf '%P\n')
+FROZEN_MPY_PY_FILES := $(notdir $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py'))
FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/frozen_mpy/,$(FROZEN_MPY_PY_FILES:.py=.mpy))
# to build .mpy files from .py files