From cffe00d6ab3406f4c0f1985176ccc730ba092d42 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 23 Jan 2017 14:37:49 +1100 Subject: [PATCH] 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. --- stmhal/Makefile | 3 +++ stmhal/modules/lcd160cr.py | 1 + stmhal/modules/lcd160cr_test.py | 1 + 3 files changed, 5 insertions(+) create mode 120000 stmhal/modules/lcd160cr.py create mode 120000 stmhal/modules/lcd160cr_test.py diff --git a/stmhal/Makefile b/stmhal/Makefile index 3735172dce..9a9c50f065 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 0000000000..c0e180714d --- /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 0000000000..56f091351b --- /dev/null +++ b/stmhal/modules/lcd160cr_test.py @@ -0,0 +1 @@ +../../drivers/display/lcd160cr_test.py \ No newline at end of file