summaryrefslogtreecommitdiffstatshomepage
path: root/minimal
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-13 04:07:03 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-13 04:07:03 +0200
commitf41df1e611aed26d8a3127cdf4e1a40649d0361a (patch)
tree7c5700a37dc4df1045277aaa650ac33b8c37f60f /minimal
parent5ebabcda4134dfac94967e43e7791354202c5b45 (diff)
downloadmicropython-f41df1e611aed26d8a3127cdf4e1a40649d0361a.tar.gz
micropython-f41df1e611aed26d8a3127cdf4e1a40649d0361a.zip
minimal: Add "run" make target to run emulated build with suitable tty config.
Diffstat (limited to 'minimal')
-rw-r--r--minimal/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/minimal/Makefile b/minimal/Makefile
index 65a40a2507..4719ebaec2 100644
--- a/minimal/Makefile
+++ b/minimal/Makefile
@@ -62,4 +62,13 @@ $(BUILD)/firmware.elf: $(OBJ)
$(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
$(Q)$(SIZE) $@
+# Run emulation build on a POSIX system with suitable terminal settings
+run:
+ stty raw opost -echo
+ build/firmware.elf
+ @echo Resetting terminal...
+# This sleep is useful to spot segfaults
+ sleep 1
+ reset
+
include ../py/mkrules.mk