summaryrefslogtreecommitdiffstatshomepage
path: root/zephyr
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-21 16:13:32 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-21 16:13:32 +0300
commit1459f8142919352b5615751566d443e0c319bc8e (patch)
tree373dd8e75a8eb5f3a7a6d964e38b5824496b6617 /zephyr
parentf1f2a3cebf607f920cfa44f6aeffe847844edb02 (diff)
downloadmicropython-1459f8142919352b5615751566d443e0c319bc8e.tar.gz
micropython-1459f8142919352b5615751566d443e0c319bc8e.zip
zephyr: Add separate Zephyr config for "minimal" build.
In anticipation of enabling more features in the default build. Also, fix compilation of minimal build.
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/Makefile2
-rw-r--r--zephyr/mpconfigport_minimal.h1
-rw-r--r--zephyr/prj_minimal.conf6
3 files changed, 8 insertions, 1 deletions
diff --git a/zephyr/Makefile b/zephyr/Makefile
index 9ddf121250..1d247af1a1 100644
--- a/zephyr/Makefile
+++ b/zephyr/Makefile
@@ -84,7 +84,7 @@ $(Z_SYSGEN_H):
-$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) CONF_FILE=$(CONF_FILE)
minimal:
- $(MAKE) BOARD=$(BOARD) CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_minimal.h>"' FROZEN_DIR=
+ $(MAKE) BOARD=$(BOARD) CONF_FILE=prj_minimal.conf CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_minimal.h>"' FROZEN_DIR=
# Clean Zephyr things too
clean: z_clean
diff --git a/zephyr/mpconfigport_minimal.h b/zephyr/mpconfigport_minimal.h
index 4ecc03afb8..459b0816ca 100644
--- a/zephyr/mpconfigport_minimal.h
+++ b/zephyr/mpconfigport_minimal.h
@@ -37,6 +37,7 @@
#define MICROPY_ENABLE_GC (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_AUTO_INDENT (1)
+#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_CPYTHON_COMPAT (0)
#define MICROPY_PY_ASYNC_AWAIT (0)
#define MICROPY_PY_ATTRTUPLE (0)
diff --git a/zephyr/prj_minimal.conf b/zephyr/prj_minimal.conf
new file mode 100644
index 0000000000..5d6b353ba3
--- /dev/null
+++ b/zephyr/prj_minimal.conf
@@ -0,0 +1,6 @@
+CONFIG_STDOUT_CONSOLE=y
+CONFIG_CONSOLE_HANDLER=y
+CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS=y
+CONFIG_NEWLIB_LIBC=y
+CONFIG_FLOAT=y
+CONFIG_MAIN_STACK_SIZE=4096