Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
040373e4
Commit
040373e4
authored
Apr 16, 2016
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stmhal: For frozen bytecode generation, add dependency of qstr file.
parent
593ffdd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
stmhal/Makefile
stmhal/Makefile
+4
-3
No files found.
stmhal/Makefile
View file @
040373e4
...
...
@@ -282,7 +282,8 @@ endif
ifneq
($(FROZEN_MPY_DIR),)
# To use frozen bytecode, put your .py files in a subdirectory (eg frozen/) and
# then invoke make with FROZEN_MPY_DIR=frozen (be sure to build from scratch).
FROZEN_MPY_FILES
:=
$(
wildcard
$(FROZEN_MPY_DIR)
/
*
.py
)
FROZEN_MPY_PY_FILES
:=
$(
wildcard
$(FROZEN_MPY_DIR)
/
*
.py
)
FROZEN_MPY_MPY_FILES
:=
$(
addprefix
$(BUILD)
/,
$(FROZEN_MPY_PY_FILES:.py=.mpy)
)
CFLAGS
+=
-DMICROPY_QSTR_EXTRA_POOL
=
mp_qstr_frozen_const_pool
CFLAGS
+=
-DMICROPY_MODULE_FROZEN_MPY
OBJ
+=
$(BUILD)
/
$(FROZEN_MPY_DIR)
/frozen_mpy.o
...
...
@@ -293,9 +294,9 @@ $(BUILD)/$(FROZEN_MPY_DIR)/%.mpy: $(FROZEN_MPY_DIR)/%.py
@
$(ECHO)
"MPY
$<
"
$(Q)$(MPY_CROSS)
-o
$@
$^
$(BUILD)/$(FROZEN_MPY_DIR)/frozen_mpy.c
:
$(
addprefix $(BUILD)/
,
$(FROZEN_MPY_FILES:.py=.mpy))
$(BUILD)/$(FROZEN_MPY_DIR)/frozen_mpy.c
:
$(
FROZEN_MPY_MPY_FILES) $(BUILD)/genhdr/qstrdefs.generated.h
@
$(ECHO)
"Creating
$@
"
$(Q)$(PYTHON)
$(MPY_TOOL)
-f
-q
$(BUILD)
/genhdr/qstrdefs.preprocessed.h
$
^
>
$@
$(Q)$(PYTHON)
$(MPY_TOOL)
-f
-q
$(BUILD)
/genhdr/qstrdefs.preprocessed.h
$
(FROZEN_MPY_MPY_FILES)
>
$@
$(BUILD)/$(FROZEN_MPY_DIR)/frozen_mpy.o
:
$(BUILD)/$(FROZEN_MPY_DIR)/frozen_mpy.c
$(
call
compile_c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment