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

This commit is contained in:
Paul Sokolovsky 2015-01-13 04:07:03 +02:00
parent 5ebabcda41
commit f41df1e611

View File

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