diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-13 04:07:03 +0200 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-13 04:07:03 +0200 |
| commit | f41df1e611aed26d8a3127cdf4e1a40649d0361a (patch) | |
| tree | 7c5700a37dc4df1045277aaa650ac33b8c37f60f | |
| parent | 5ebabcda4134dfac94967e43e7791354202c5b45 (diff) | |
minimal: Add "run" make target to run emulated build with suitable tty config.
| -rw-r--r-- | minimal/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/minimal/Makefile b/minimal/Makefile index 65a40a250..4719ebaec 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 |
