diff options
| author | Damien George | 2017-01-23 14:37:49 +1100 |
|---|---|---|
| committer | Damien George | 2017-01-23 14:37:49 +1100 |
| commit | cffe00d6ab3406f4c0f1985176ccc730ba092d42 (patch) | |
| tree | 9b81006fce2885bae82d9c81507583514ffed3f9 | |
| parent | e72e3439086ca16d376d939a60bafa95f7da6748 (diff) | |
stmhal: Add default frozen-bytecode directory and link lcd160cr driver.
stmhal will now be built by default with frozen bytecode from scripts
stored in the stmhal/modules/ directory. This can be disabled or
changed to another directory by overridding the make variable
FROZEN_MPY_DIR.
| -rw-r--r-- | stmhal/Makefile | 3 | ||||
| l--------- | stmhal/modules/lcd160cr.py | 1 | ||||
| l--------- | stmhal/modules/lcd160cr_test.py | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile index 3735172dc..9a9c50f06 100644 --- a/stmhal/Makefile +++ b/stmhal/Makefile @@ -15,6 +15,9 @@ include boards/$(BOARD)/mpconfigboard.mk # qstr definitions (must come before including py.mk) QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h $(BUILD)/modstm_qstr.h +# directory containing scripts to be frozen as bytecode +FROZEN_MPY_DIR ?= modules + # include py core make definitions include ../py/py.mk diff --git a/stmhal/modules/lcd160cr.py b/stmhal/modules/lcd160cr.py new file mode 120000 index 000000000..c0e180714 --- /dev/null +++ b/stmhal/modules/lcd160cr.py @@ -0,0 +1 @@ +../../drivers/display/lcd160cr.py
\ No newline at end of file diff --git a/stmhal/modules/lcd160cr_test.py b/stmhal/modules/lcd160cr_test.py new file mode 120000 index 000000000..56f091351 --- /dev/null +++ b/stmhal/modules/lcd160cr_test.py @@ -0,0 +1 @@ +../../drivers/display/lcd160cr_test.py
\ No newline at end of file |
