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.
This commit is contained in:
Damien George 2017-01-23 14:37:49 +11:00
parent e72e343908
commit cffe00d6ab
3 changed files with 5 additions and 0 deletions

View File

@ -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

1
stmhal/modules/lcd160cr.py Symbolic link
View File

@ -0,0 +1 @@
../../drivers/display/lcd160cr.py

View File

@ -0,0 +1 @@
../../drivers/display/lcd160cr_test.py