summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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