minimal: Add "run" make target to run emulated build with suitable tty config.

pull/1062/head
Paul Sokolovsky 2015-01-13 04:07:03 +02:00
rodzic 5ebabcda41
commit f41df1e611
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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