minimal: Add "run" make target to run emulated build with suitable tty config.
This commit is contained in:
parent
5ebabcda41
commit
f41df1e611
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user